• Модуль: scale
  • Путь к файлу: ~/bitrix/modules/scale/lib/actionschain.php
  • Класс: BitrixScaleActionsChain
  • Вызов: ActionsChain::__construct
public function __construct($actionId, $actionParams, $serverHostname = "", $userParams = array(), $freeParams = array())
{
	if($actionId == '')
		throw new BitrixMainArgumentNullException("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 BitrixMainArgumentTypeException("userParams", "array");

	if(!is_array($freeParams))
		throw new BitrixMainArgumentTypeException("freeParams", "array");

	$this->id = $actionId;
	$this->userParams = $userParams;
	$this->freeParams = $freeParams;
	$this->actionParams = $actionParams;
	$this->serverHostname = $serverHostname;
}