You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
aliseptik/local/components/era/html.map/class.php

51 lines
1.5 KiB

<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
use Bitrix\Main\Loader;
use Bitrix\Iblock\SectionTable;
use Bitrix\Iblock\ElementTable;
use Sotbit\Seometa\SeoMetaTable;
class HtmlMapComponent extends CBitrixComponent
{
public function executeComponent()
{
// Получаем структуру сайта (разделы, фильтры)
$this->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 '<pre>';
print_r($this->arSotbitPages);
echo '</pre>';
die();
// TODO: Реализовать сбор структуры сайта, разделов, фильтров
// Пример: получить разделы каталога
$tree = [];
// ...
return $tree;
}
}