src/Database/QueryBuilder/StringBuilder.php
/**
	 * Determines if an operator is a function.
	 *
	 * @param string $text
	 * @return bool
	 */
Determines if an operator is a function.
@param string $text
@return bool
Determines if an operator is a function . @param string $text @return bool
public static function isFunction($text) {
		if (is_string($text)) {
			return 1 == preg_match('/^[A-Z]+(\([^)]*\))$/', $text);
		}
		if (is_array($text) && count($text) > 0) {
			return static::isFunction($text[0]);
		}
		return false;
	}
public static function isFunction ( $ text ) { if ( is_string ( $ text ) ) { return 1 == preg_match ( '/^[A-Z]+(\([^)]*\))$/' , $ text ) ; } if ( is_array ( $ text ) && count ( $ text ) > 0 ) { return static :: isFunction ( $ text [ 0 ] ) ; } return false ; }
Determines if an operator is a function.
Determines if an operator is a function .