Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
- use Bitrix\Highloadblock as HL;
- use Bitrix\Main\Entity;
- class CSavedSearches extends CBitrixComponent
- {
- public $arResult = array();
- public function __construct () {
- CModule::IncludeModule("highloadblock");
- }
- public function executeComponent()
- {
- $hlblock = HL\HighloadBlockTable::getById(1)->fetch();
- $entity = HL\HighloadBlockTable::compileEntity($hlblock);
- $entity_data_class = $entity->getDataClass();
- $rsProp = $entity_data_class::getList(Array("select" => Array('*')));
- while($arProp = $rsProp->Fetch())
- {
- $arElements[] = $arProp;
- }
- $this->arResult = $arElements;
- echo "<pre>"; print_r($this->arResult); echo "</pre>";
- $this->includeComponentTemplate();
- return $this->arResult;
- }
- }?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement