- Модуль: lists
- Путь к файлу: ~/bitrix/modules/lists/lib/entity/section.php
- Класс: BitrixListsEntitySection
- Вызов: Section::get
public function get(array $navData = [])
{
$this->param->checkRequiredInputParams(["IBLOCK_TYPE_ID", "IBLOCK_CODE", "IBLOCK_ID"]);
if ($this->param->hasErrors())
{
$this->errorCollection->add($this->param->getErrors());
return [];
}
$sections = [];
$filter = $this->getFilter($this->iblockId);
$select = $this->getSelectList($this->params["SELECT"]);
$queryObject = CIBlockSection::getList([], $filter, false, $select, $navData);
while ($section = $queryObject->fetch())
{
$sections[] = $section;
}
return [$sections, $queryObject];
}