• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/entity_expr_field.php
  • Класс: CExprEntityField
  • Вызов: CExprEntityField::checkAggregation
static function checkAggregation($expr)
{
	if (empty(self::$aggrFunctions))
	{
		self::$aggrFunctions = array_unique(array_merge(
			self::$aggrFunctionsMYSQL, self::$aggrFunctionsMSSQL, self::$aggrFunctionsORACLE
		));
	}

	preg_match_all('/(?:^|[^a-z0-9_])('.join('|', self::$aggrFunctions).')[s(]+/i', $expr, $matches);

	return $matches[1];
}