arResult['TREE'] = $this->getSiteTree(); $this->includeComponentTemplate(); } private $arSotbitPages = []; private function SotbitSeoPages(){ if (Loader::includeModule('sotbit.seometa')) { $rsSeoPages = SeoMetaTable::getList([ 'filter' => ['ACTIVE' => 'Y'], 'select' => ['ID', 'NAME', 'FILTER_CONDITION', 'NEW_URL', 'REAL_URL'] ]); while ($arSeoPage = $rsSeoPages->fetch()) { // $arSeoPages[] = $arSeoPage; $this->arSotbitPages[] = $arSeoPage; } } // $this->arSotbitPages[] = $arSeoPages; } private function getSiteTree() { echo '
'; print_r($this->arSotbitPages); echo ''; die(); // TODO: Реализовать сбор структуры сайта, разделов, фильтров // Пример: получить разделы каталога $tree = []; // ... return $tree; } }