Class Operator
Operator's related model
Namespace: Phramework\Models
License: Apache-2.0
Author: Xenofon Spafaridis nohponex@gmail.com
Since: 1.0.0
Located at Models/Operator.php
License: Apache-2.0
Author: Xenofon Spafaridis nohponex@gmail.com
Since: 1.0.0
Located at Models/Operator.php
Methods summary
public static
string[]
|
|
public static
string
|
#
validate( string $operator, string $attributeName = 'operator' )
Check if a string is a valid operator |
public static
integer
|
|
public static
string[2]
|
|
public static
string[]
|
|
public static
string[]
|
|
public static
string[]
|
|
public static
string[]
|
|
public static
string[]
|
Constants summary
string |
OPERATOR_ISSET
|
#
'isset'
|
string |
OPERATOR_NOT_ISSET
|
#
'!isset'
|
string |
OPERATOR_GREATER
|
#
'>'
|
string |
OPERATOR_GREATER_EQUAL
|
#
'>='
|
string |
OPERATOR_LESS
|
#
'<'
|
string |
OPERATOR_LESS_EQUAL
|
#
'<='
|
string |
OPERATOR_EQUAL
|
#
'='
|
string |
OPERATOR_NOT_EQUAL
|
#
'!='
|
string |
OPERATOR_ISNULL
|
#
'ISNULL'
|
string |
OPERATOR_NOT_ISNULL
|
#
'!ISNULL'
|
string |
OPERATOR_EMPTY
|
#
'empty'
|
string |
OPERATOR_NOT_EMPTY
|
#
'!empty'
|
string |
OPERATOR_LIKE
|
#
'~~'
|
string |
OPERATOR_NOT_LIKE
|
#
'!~~'
|
string |
OPERATOR_IN
|
#
'IN'
|
string |
OPERATOR_NOT_IN
|
#
'NOT IN'
|
string |
OPERATOR_IN_ARRAY
∈, is an element of array (URL encoded : |
#
'∈'
|
string |
OPERATOR_NOT_IN_ARRAY
∉, is not an element of array (URL encoded : |
#
'∉'
|
integer |
CLASS_COMPARABLE
|
#
1
|
integer |
CLASS_ORDERABLE
|
#
2
|
integer |
CLASS_LIKE
|
#
4
|
integer |
CLASS_IN_ARRAY
|
#
32
|
integer |
CLASS_NULLABLE
|
#
64
|
integer |
CLASS_JSONOBJECT
|
#
128
|
Properties summary
protected static
string[]
|
$operators
|
#
[
Operator::OPERATOR_EMPTY,
Operator::OPERATOR_EQUAL,
Operator::OPERATOR_GREATER,
Operator::OPERATOR_GREATER_EQUAL,
Operator::OPERATOR_ISSET,
Operator::OPERATOR_LESS,
Operator::OPERATOR_LESS_EQUAL,
Operator::OPERATOR_NOT_EMPTY,
Operator::OPERATOR_NOT_EQUAL,
Operator::OPERATOR_NOT_ISSET,
Operator::OPERATOR_ISNULL,
Operator::OPERATOR_NOT_ISNULL,
Operator::OPERATOR_IN,
Operator::OPERATOR_NOT_IN,
Operator::OPERATOR_LIKE,
Operator::OPERATOR_NOT_LIKE,
Operator::OPERATOR_IN_ARRAY,
Operator::OPERATOR_NOT_IN_ARRAY
]
|