• Модуль: forum
  • Путь к файлу: ~/bitrix/modules/forum/lib/comments/entity.php
  • Класс: BitrixForumCommentsEntity
  • Вызов: Entity::getEntityByXmlId
static function getEntityByXmlId($xmlId = "")
{
	$xmlId = mb_strtoupper($xmlId);
	$entities = self::getEntities();
	$result = null;
	foreach ($entities as $entity)
	{
		if (preg_match("/^".$entity["xmlIdPrefix"]."(\d+)/", $xmlId))
		{
			$result = $entity;
			break;
		}
	}
	return $result;
}