IMOpenLineTracker::getItems

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. IMOpenLineTracker
  4. getItems
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/channel/imopenlinetracker.php
  • Класс: Bitrix\Crm\Integration\Channel\IMOpenLineTracker
  • Вызов: IMOpenLineTracker::getItems
public function getItems()
{
	if($this->items !== null)
	{
		return $this->items;
	}

	$this->items = array();
	if($this->isEnabled())
	{
		$entity = new ImOpenLines\Config();
		$items = $entity->getList(
			array(
				'select' => array('ID', 'LINE_NAME'),
				'filter' => array('ACTIVE' => 'Y'),
				'order' => array('ID' => 'ASC'),
				'limit' => 50
			)
		);

		foreach($items as $item)
		{
			$this->items[$item['ID']] = $item;
		}
	}
	return $this->items;
}

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