Dispatcher::tryParseBatchArguments

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. Dispatcher
  4. tryParseBatchArguments
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/dispatcher.php
  • Класс: BitrixTasksDispatcher
  • Вызов: Dispatcher::tryParseBatchArguments
static function tryParseBatchArguments($args)
{
	if (count($args) == 1 && isset($args['cmd']))
	{
		foreach ($args['cmd'] as $key => $url)
		{
			if (!array_key_exists($key, static::$requestData))
			{
				$parsedUrl = parse_url($url);

				if ($parsedUrl['path'] == static::$currentRestMehtod)
				{
					static::$requestData[] = $key;
					parse_str($parsedUrl['query'], $args);
					break;
				}
			}
		}
	}

	return $args;
}

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