DataSource::extractDetailsPageUrlParams

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. DataSource
  4. extractDetailsPageUrlParams
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/widget/data/company/datasource.php
  • Класс: Bitrix\Crm\Widget\Data\Company\DataSource
  • Вызов: DataSource::extractDetailsPageUrlParams
static function extractDetailsPageUrlParams(array $request)
{
	if(!(isset($request['WG']) && mb_strtoupper($request['WG']) === 'Y'))
	{
		return array();
	}

	$dataSourceName = isset($request['DS']) ? $request['DS'] : '';
	if($dataSourceName === '')
	{
		return array();
	}

	$result = array('WG' => 'Y', 'DS' => $dataSourceName);
	try
	{
		$filter = self::internalizeFilter($request);
		if(!$filter->isEmpty())
		{
			$result = array_merge($result, self::externalizeFilter($filter));
			if(isset($request['FIELD']))
			{
				$result['FIELD'] = $request['FIELD'];
			}
		}

	}
	catch(Main\ArgumentException $e)
	{
	}

	return $result;
}

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