CompareUtil
Table of Contents
Constants
-
PHP_OPERATOR_EQUAL
= 'equal'
-
PHP_OPERATOR_GREATER
= 'greater'
-
PHP_OPERATOR_GREATER_EQUAL
= 'greaterequal'
-
PHP_OPERATOR_IN_ARRAY
= 'inarray'
-
PHP_OPERATOR_IS_NOT_NULL
= 'isnotnull'
-
PHP_OPERATOR_IS_NULL
= 'isnull'
-
PHP_OPERATOR_LIKE
= 'like'
-
PHP_OPERATOR_LOWER
= 'lower'
-
PHP_OPERATOR_LOWER_EQUAL
= 'lowerequal'
-
PHP_OPERATOR_NOT_IN_ARRAY
= 'notinarray'
-
PHP_OPERATOR_UNEQUAL
= 'unequal'
-
PHP_OPERATOR_UNLIKE
= 'unlike'
-
PHP_OPERATORS
= [self::PHP_OPERATOR_EQUAL, self::PHP_OPERATOR_UNEQUAL, self::PHP_OPERATOR_LIKE, self::PHP_OPERATOR_UNLIKE, self::PHP_OPERATOR_IN_ARRAY, self::PHP_OPERATOR_NOT_IN_ARRAY, self::PHP_OPERATOR_LOWER, self::PHP_OPERATOR_LOWER_EQUAL, self::PHP_OPERATOR_GREATER, self::PHP_OPERATOR_GREATER_EQUAL, self::PHP_OPERATOR_IS_NULL, self::PHP_OPERATOR_IS_NOT_NULL]
-
PHP_SINGLE_VALUE_OPERATORS
= [self::PHP_OPERATOR_IS_NULL, self::PHP_OPERATOR_IS_NOT_NULL]
Properties
-
$framework
: ContaoFrameworkInterface
Methods
-
__construct()
: mixed
-
compareSingleValue()
: bool
-
compareValue()
: bool
PHP_OPERATOR_EQUAL
public
mixed
PHP_OPERATOR_EQUAL
= 'equal'
PHP_OPERATOR_GREATER
public
mixed
PHP_OPERATOR_GREATER
= 'greater'
PHP_OPERATOR_GREATER_EQUAL
public
mixed
PHP_OPERATOR_GREATER_EQUAL
= 'greaterequal'
PHP_OPERATOR_IN_ARRAY
public
mixed
PHP_OPERATOR_IN_ARRAY
= 'inarray'
PHP_OPERATOR_IS_NOT_NULL
public
mixed
PHP_OPERATOR_IS_NOT_NULL
= 'isnotnull'
PHP_OPERATOR_IS_NULL
public
mixed
PHP_OPERATOR_IS_NULL
= 'isnull'
PHP_OPERATOR_LIKE
public
mixed
PHP_OPERATOR_LIKE
= 'like'
PHP_OPERATOR_LOWER
public
mixed
PHP_OPERATOR_LOWER
= 'lower'
PHP_OPERATOR_LOWER_EQUAL
public
mixed
PHP_OPERATOR_LOWER_EQUAL
= 'lowerequal'
PHP_OPERATOR_NOT_IN_ARRAY
public
mixed
PHP_OPERATOR_NOT_IN_ARRAY
= 'notinarray'
PHP_OPERATOR_UNEQUAL
public
mixed
PHP_OPERATOR_UNEQUAL
= 'unequal'
PHP_OPERATOR_UNLIKE
public
mixed
PHP_OPERATOR_UNLIKE
= 'unlike'
PHP_OPERATORS
public
mixed
PHP_OPERATORS
= [self::PHP_OPERATOR_EQUAL, self::PHP_OPERATOR_UNEQUAL, self::PHP_OPERATOR_LIKE, self::PHP_OPERATOR_UNLIKE, self::PHP_OPERATOR_IN_ARRAY, self::PHP_OPERATOR_NOT_IN_ARRAY, self::PHP_OPERATOR_LOWER, self::PHP_OPERATOR_LOWER_EQUAL, self::PHP_OPERATOR_GREATER, self::PHP_OPERATOR_GREATER_EQUAL, self::PHP_OPERATOR_IS_NULL, self::PHP_OPERATOR_IS_NOT_NULL]
PHP_SINGLE_VALUE_OPERATORS
public
mixed
PHP_SINGLE_VALUE_OPERATORS
= [self::PHP_OPERATOR_IS_NULL, self::PHP_OPERATOR_IS_NOT_NULL]
$framework
protected
ContaoFrameworkInterface
$framework
__construct()
public
__construct(ContaoFrameworkInterface $framework) : mixed
Parameters
-
$framework
: ContaoFrameworkInterface
-
compareSingleValue()
public
compareSingleValue(mixed $value, string $operator) : bool
Parameters
-
$value
: mixed
-
-
$operator
: string
-
compareValue()
public
compareValue(string $operator, mixed $value1[, mixed $value2 = null ]) : bool
Parameters
-
$operator
: string
-
-
$value1
: mixed
-
-
$value2
: mixed
= null
-