...Человеческий поиск в разработке...
- Модуль: tasks
- Путь к файлу: ~/bitrix/modules/tasks/lib/internals/project/provider.php
- Класс: BitrixTasksInternalsProjectProvider
- Вызов: Provider::fillTags
public function fillTags(array $projects): array { $tags = []; $res = WorkgroupTagTable::getList([ 'select' => ['GROUP_ID', 'NAME'], 'filter' => [ 'GROUP_ID' => array_keys($projects), 'GROUP.ACTIVE' => 'Y', ], ]); while ($tag = $res->fetch()) { $tags[$tag['GROUP_ID']][] = $tag['NAME']; } foreach (array_keys($projects) as $projectId) { $projects[$projectId]['TAGS'] = $tags[$projectId]; } return $projects; }