• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/item/task/template/access.php
  • Класс: BitrixTasksItemTaskTemplateAccess
  • Вызов: Access::parseGroupCode
private function parseGroupCode()
{
	if($this->entityPrefix == null || $this->entityId == null)
	{
		if($this['GROUP_CODE'] != '')
		{
			$found = array();
			if(preg_match('#^([a-zA-Z_]+)(d+)$#', trim($this['GROUP_CODE']), $found))
			{
				$prefix = (string) $found[1];
				$id = intval($found[2]);

				if($prefix !== '')
				{
					$this->entityPrefix = $prefix;
				}
				if(intval($id))
				{
					$this->entityId = $id;
				}
			}
		}
	}
}