fetch(); if (!$hlblock) { return null; } $entity = Highloadblock\HighloadBlockTable::compileEntity($hlblock); return $entity->getDataClass(); } /** * Получение DataManager класса управления HLBlock по названию таблицы * * @param string $name * @return \Bitrix\Main\Entity\DataManager|string|null */ public static function getHlClassByTableName(string $name) { try { Loader::includeModule('highloadblock'); $hlblock = Highloadblock\HighloadBlockTable::query() ->addSelect('*') ->where('TABLE_NAME', '=', $name) ->exec() ->fetch(); if (!$hlblock) { return null; } $entity = Highloadblock\HighloadBlockTable::compileEntity($hlblock); return $entity->getDataClass(); } catch (ObjectPropertyException | ArgumentException | SystemException | LoaderException $exception) { AddMessage2Log($exception->getMessage()); return null; } } }