TemplateConverter::getList

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. TemplateConverter
  4. getList
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/update/templateconverter.php
  • Класс: Bitrix\Tasks\Update\TemplateConverter
  • Вызов: TemplateConverter::getList
private function getList(): array
{
	$startId = Option::get('tasks', self::OPTION_KEY, 0, '-');

	$templates = TemplateTable::getList([
		'filter' => [
			'>ID' => $startId,
		],
		'order' => [
			'ID' => 'ASC'
		],
		'limit' => self::LIMIT
	])->fetchCollection();

	$list = [];
	foreach ($templates as $template)
	{
		$list[$template->getId()] = $template->toArray();
	}

	return $list;
}

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