class Condition

Class Condition

Methods

__construct($fieldName, $type, $values)

Condition constructor.

static  Condition
in($fieldName, $array)

IN Condition (in)

static  Condition
range($fieldName, $from, $to)

Range Condition (>=, <=)

static  Condition
concat($fieldName, Condition[] $conditions, string $operator)

Concat Conditions with "AND" or "OR"

static  Condition
like($fieldName, $value, $patternPosition)

Like Condition (%)

static  Condition
match($fieldName, $value)

Match Condition (=)

static  Condition
notMatch($fieldName, $value)

Match Condition (=)

static  Condition
lt($fieldName, $value)

Lower Than Condition (<)

static  Condition
lte($fieldName, $value)

Lower Than Equal Condition (<=)

static  Condition
gt($fieldName, $value)

Greater Than Condition (>)

static  Condition
gte($fieldName, $value)

Greater Than Equal Condition (<=)

static  Condition
compare($fieldName, $value, $operator)

Compare Condition ($operator)

string
getType()

No description

setType( string $type)

No description

mixed
getValues()

No description

setValues( mixed $values)

No description

string
getFieldName()

No description

setFieldName( string $fieldName)

No description

Details

at line line 32
__construct($fieldName, $type, $values)

Condition constructor.

Parameters

$fieldName
$type
$values

at line line 46
static Condition in($fieldName, $array)

IN Condition (in)

Parameters

$fieldName
$array

Return Value

Condition

at line line 60
static Condition range($fieldName, $from, $to)

Range Condition (>=, <=)

Parameters

$fieldName
$from
$to

Return Value

Condition

at line line 73
static Condition concat($fieldName, Condition[] $conditions, string $operator)

Concat Conditions with "AND" or "OR"

Parameters

$fieldName
Condition[] $conditions
string $operator ("AND", "OR")

Return Value

Condition

at line line 86
static Condition like($fieldName, $value, $patternPosition)

Like Condition (%)

Parameters

$fieldName
$value
$patternPosition ("left", "right", "both")

Return Value

Condition

at line line 98
static Condition match($fieldName, $value)

Match Condition (=)

Parameters

$fieldName
$value

Return Value

Condition

at line line 110
static Condition notMatch($fieldName, $value)

Match Condition (=)

Parameters

$fieldName
$value

Return Value

Condition

at line line 122
static Condition lt($fieldName, $value)

Lower Than Condition (<)

Parameters

$fieldName
$value

Return Value

Condition

at line line 134
static Condition lte($fieldName, $value)

Lower Than Equal Condition (<=)

Parameters

$fieldName
$value

Return Value

Condition

at line line 146
static Condition gt($fieldName, $value)

Greater Than Condition (>)

Parameters

$fieldName
$value

Return Value

Condition

at line line 158
static Condition gte($fieldName, $value)

Greater Than Equal Condition (<=)

Parameters

$fieldName
$value

Return Value

Condition

at line line 171
static Condition compare($fieldName, $value, $operator)

Compare Condition ($operator)

Parameters

$fieldName
$value
$operator

Return Value

Condition

at line line 179
string getType()

Return Value

string

at line line 187
setType( string $type)

Parameters

string $type

at line line 195
mixed getValues()

Return Value

mixed

at line line 203
setValues( mixed $values)

Parameters

mixed $values

at line line 211
string getFieldName()

Return Value

string

at line line 219
setFieldName( string $fieldName)

Parameters

string $fieldName