- Модуль: tasks
- Путь к файлу: ~/bitrix/modules/tasks/lib/access/model/taskregistry.php
- Класс: Bitrix\Tasks\Access\Model\TaskRegistry
- Вызов: TaskRegistry::get
public function get(int $taskId, bool $withRelations = false): ?array { if (!array_key_exists($taskId, $this->storage)) { $this->load($taskId, $withRelations); } if ( $withRelations && !isset($this->storage[$taskId]['IN_FAVORITES']) ) { $this->fillFavorites([$taskId]); } if ( $withRelations && !isset($this->storage[$taskId]['MEMBERS']) ) { $this->fillMembers([$taskId]); } return $this->storage[$taskId]; }