• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/config.php
  • Класс: BitrixImOpenLinesConfig
  • Вызов: Config::available
static function available()
{
	$orm = ModelConfigTable::getList(Array(
		'select' => Array('CNT'),
		'runtime' => array(
			new ExpressionField('CNT', 'COUNT(*)')
		),
	));
	$row = $orm->fetch();
	return ($row['CNT'] > 0);
}