Skip to content

Instantly share code, notes, and snippets.

@VSeryoga
Created September 21, 2016 06:45
Show Gist options
  • Save VSeryoga/d3e2b42a2a215549f66c2cf4ac8163a3 to your computer and use it in GitHub Desktop.
Save VSeryoga/d3e2b42a2a215549f66c2cf4ac8163a3 to your computer and use it in GitHub Desktop.
Highloadblock Битрикс
if (CModule::IncludeModule('highloadblock')) {
$arHLBlock = Bitrix\Highloadblock\HighloadBlockTable::getById(1)->fetch();
$obEntity = Bitrix\Highloadblock\HighloadBlockTable::compileEntity($arHLBlock);
$strEntityDataClass = $obEntity->getDataClass();
}
if (CModule::IncludeModule('highloadblock')) {
$rsData = $strEntityDataClass::getList(array(
'select' => array('ID','UF_NAME', 'UF_XML_ID'),
'order' => array('ID' => 'ASC'),
'limit' => '50',
));
while ($arItem = $rsData->Fetch()) {
$arColors[$arItem['UF_XML_ID']] = yandex_text2xml($arItem['UF_NAME']);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment