- Модуль: catalog
- Путь к файлу: ~/bitrix/modules/catalog/lib/controller/catalog.php
- Класс: BitrixCatalogControllerCatalog
- Вызов: Catalog::listAction
public function listAction($select=[], $filter=[], $order=[], $start=0)
{
$result = [];
$catalog = new CCatalog();
$select = empty($select)? ['*']:$select;
$order = empty($order)? ['ID'=>'ASC']:$order;
$r = $catalog::GetList($order, $filter, false, self::getNavData($start), $select);
while ($l = $r->fetch())
{
$result[] = $l;
}
return new Page('CATALOGS', $result, function() use ($filter)
{
return (int)CCatalog::GetList([], $filter, []);
});
}