• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/lib/integration/ui/entityselector/templateprovider.php
  • Класс: BitrixBizprocIntegrationUIEntitySelectorTemplateProvider
  • Вызов: TemplateProvider::getItems
public function getItems(array $ids): array
{
	$ids = array_filter(array_map('intval', $ids));
	$templates = $this->getTemplatesByIds($ids);
	$currentUserId = $this->getCurrentUserId();

	$items = [];
	foreach ($templates as $template)
	{
		if ($this->canUserStartWorkflow($currentUserId, $template->getDocumentComplexType()))
		{
			$items[] = $this->makeItem(['id' => $template->getId(), 'title' => $template->getName()], false);
		}
	}

	return $items;
}