• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/access/model/templatemodel.php
  • Класс: BitrixTasksAccessModelTemplateModel
  • Вызов: TemplateModel::loadTemplate
private function loadTemplate(): ?array
{
	if (!$this->id)
	{
		return null;
	}
	if ($this->template === null)
	{
		$res = TemplateTable::query()
			->addSelect('ID')
			->addSelect('DESCRIPTION')
			->addSelect('ZOMBIE')
			->addSelect('GROUP_ID')
			->addSelect('REPLICATE')
			->where('ID', $this->id)
			->exec()
			->fetch();

		if ($res)
		{
			$this->template = $res;
		}
	}
	return $this->template;
}