Operation::parse

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. Operation
  4. parse
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/dispatcher/operation.php
  • Класс: BitrixTasksDispatcherOperation
  • Вызов: Operation::parse
public function parse()
{
	// parse out class name and method name
	$this->parsed = $this->parseQueryPath($this->operation['OPERATION']);

	// check arguments presense
	if(!isset($this->operation['ARGUMENTS']))
	{
		$this->operation['ARGUMENTS'] = array();
	}
	elseif(!is_array($this->operation['ARGUMENTS']))
	{
		$this->addParseError('Arguments must be of type array for '.$this->operation['OPERATION']);
	}

	if($this->errors->isEmpty())
	{
		$this->checkClass();
	}

	if($this->errors->isEmpty())
	{
		$this->parsed['SIGNATURE'] = $this->getMethodSignature();
		$this->parsed['ARGUMENTS'] = $this->prepareArguments(); // re-order and check
	}
}

Добавить комментарий