Provider::fillTabsData

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. Provider
  4. fillTabsData
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/project/provider.php
  • Класс: BitrixTasksInternalsProjectProvider
  • Вызов: Provider::fillTabsData
public function fillTabsData(array $projects): array
{
	if (!empty($projects))
	{
		$projectIds = array_keys($projects);
		$additionalData = Workgroup::getAdditionalData([
			'ids' => $projectIds,
			'features' => Helper::getMobileFeatures(),
			'mandatoryFeatures' => Helper::getMobileMandatoryFeatures(),
			'currentUserId' => $this->userId,
		]);

		foreach ($projectIds as $id)
		{
			if (!isset($additionalData[$id]))
			{
				continue;
			}

			$projects[$id]['ADDITIONAL_DATA'] = ($additionalData[$id] ?? []);
		}
	}

	return $projects;
}

Добавить комментарий