• Модуль: transformer
  • Путь к файлу: ~/bitrix/modules/transformer/lib/command.php
  • Класс: BitrixTransformerCommand
  • Вызов: Command::__construct
public function __construct($command, $params, $module, $callback, $status = self::STATUS_CREATE, $id = '', $guid = '', $time = null, $error = '', $errorCode = 0)
{
	if(empty($command))
	{
		throw new ArgumentNullException('command');
	}
	if(empty($module))
	{
		throw new ArgumentNullException('module');
	}
	if(empty($callback))
	{
		throw new ArgumentNullException('callback');
	}
	$this->command = $command;
	$this->params = $params;
	$this->module = $module;
	$this->callback = $callback;
	$this->status = intval($status);
	$this->id = $id;
	$this->guid = $guid;
	$this->time = $time;
	$this->error = $error;
	$this->errorCode = $errorCode;
	if(isset($params['file']))
	{
		$this->file = $params['file'];
	}
}