Получение данных из highloadblock

Отправлено planktun от чт, 03/17/2016 - 21:10
CModule::IncludeModule("highloadblock"); // подключить инфоблоки
use Bitrix\Highloadblock as HL;
use Bitrix\Main\Entity; 
$hlblock_id = 1;// id инфоблока
$hlblock = HL\HighloadBlockTable::getById($hlblock_id)->fetch();
 
$entity = HL\HighloadBlockTable::compileEntity($hlblock);
$entity_data_class = $entity->getDataClass();
$rsData = $entity_data_class::getList(array(
"select" => array("*"),
"order" => array("ID" => "ASC"),
 "filter" => array('UF_VLADELETS' => '931bbd31-505d-11e4-9c00-d43d7e98b6aa')
));
$arData = $rsData->Fetch();
$QUANTITY=$arData["UF_KOEFFITSIENT"];
//echo $QUANTITY;
while($arData = $rsData->Fetch())
{
$arResult[] = $arData;
//echo '<pre>',print_r($arData ,true),'</pre>'; 
}
Теги