uawdijnntqw1x1x1
IP : 216.73.216.163
Hostname : yjpwxulqtt
Kernel : Linux yjpwxulqtt 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,exec,system,passthru,shell_exec,proc_open,popen
OS : Linux
PATH:
/
home
/
user
/
web
/
pansionat-v-yaroslavle.ru
/
public_html
/
bitrix
/
modules
/
.
/
scale
/
lib
/
actionschain.php
/
/
<?php namespace Bitrix\Scale; /** * Class ActionsChain * @package Bitrix\Scale */ class ActionsChain { protected $id = ""; protected $userParams = array(); protected $freeParams = array(); protected $actionParams = array(); protected $resultData = array(); protected $serverHostname = ""; public $results = ""; /** * @param string $actionId * @param array $actionParams * @param string $serverHostname * @param array $userParams * @param array $freeParams * @throws \Bitrix\Main\ArgumentNullException * @throws \Bitrix\Main\ArgumentTypeException */ public function __construct($actionId, $actionParams, $serverHostname = "", $userParams = array(), $freeParams = array()) { if(strlen($actionId) <= 0) throw new \Bitrix\Main\ArgumentNullException("actionId"); if(!is_array($actionParams) || empty($actionParams)) throw new \Exception("Params of action ".$actionId." are not defined correctly!"); if(!isset($actionParams["ACTIONS"]) || !is_array($actionParams["ACTIONS"])) throw new \Exception("Required param ACTIONS of action ".$actionId." are not defined!"); if(!is_array($userParams)) throw new \Bitrix\Main\ArgumentTypeException("userParams", "array"); if(!is_array($freeParams)) throw new \Bitrix\Main\ArgumentTypeException("freeParams", "array"); $this->id = $actionId; $this->userParams = $userParams; $this->freeParams = $freeParams; $this->actionParams = $actionParams; $this->serverHostname = $serverHostname; } public function getResult() { return $this->results; } public function getActionObj($actionId) { return ActionsData::getActionObject($actionId, $this->serverHostname, $this->userParams, $this->freeParams); } public function start($inputParams = array()) { if(!is_array($inputParams)) throw new \Bitrix\Main\ArgumentTypeException("inputParams", "array"); $result = true; foreach($this->actionParams["ACTIONS"] as $actionId) { $action = $this->getActionObj($actionId); if(!$action->start($inputParams)) $result = false; $arRes = $action->getResult(); foreach($arRes as $actId => $res) $this->results[$actId] = $res; if(!$result) break; if(isset($arRes[$actionId]["OUTPUT"]["DATA"]["params"]) && is_array($arRes[$actionId]["OUTPUT"]["DATA"]["params"])) foreach($arRes[$actionId]["OUTPUT"]["DATA"]["params"] as $paramId => $paramValue) if(!isset($inputParams[$paramId])) $inputParams[$paramId] = $paramValue; } return $result; } }
/home/user/web/pansionat-v-yaroslavle.ru/public_html/bitrix/modules/./scale/lib/actionschain.php