• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/controller/status.php
  • Класс: BitrixSaleControllerStatus
  • Вызов: Status::listAction
public function listAction(PageNavigation $pageNavigation, array $select = [], array $filter = [], array $order = []): Page
{
	$select = empty($select) ? ['*'] : $select;
	$order = empty($order) ? ['ID' => 'ASC'] : $order;

	$items = $this->getEntityTable()::getList(
		[
			'select' => $select,
			'filter' => $filter,
			'order' => $order,
			'offset' => $pageNavigation->getOffset(),
			'limit' => $pageNavigation->getLimit(),
		]
	)->fetchAll();

	return new Page('STATUSES', $items, function() use ($filter)
	{
		return $this->getEntityTable()::getCount([$filter]);
	});
}