• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/calllist/calllist.php
  • Класс: Bitrix\Crm\CallList\CallList
  • Вызов: CallList::loadItems
protected function loadItems()
{
	$this->items = array();
	$cursor = CallListItemTable::getList(array(
		'filter' => array(
			'=LIST_ID' => $this->id
		),
		'order' => array(
			'LIST_ID' => 'ASC',
			'STATUS_ID' => 'ASC',
			'RANK' => 'ASC'
		)
	));

	while($row = $cursor->fetch())
	{
		$this->items[$row['ELEMENT_ID']] = Item::createFromArray($row, false);
	}
	$this->itemsLoaded = true;
}