• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/ui/component/templatehelper.php
  • Класс: BitrixTasksUIComponentcontains
  • Вызов: contains::pickId
public function pickId()
{
	$id = trim((string) ($this->template->__component->arParams['TEMPLATE_CONTROLLER_ID'] ?? ''));
	if($id)
	{
		$id = ToLower($id);
		if(!preg_match('#^[a-z0-9_-]+$#', $id))
		{
			$this->template->__component->getErrors()->addWarning('ILLEGAL_CALL_ID', 'Illegal CALL_ID passed');
			$id = false;
		}
	}

	if(!$id)
	{
		$id = $this->template->__component->getSignature();
	}

	return $id;
}