\Alddesign\Crudkit\ClassesFilter

Represents an actual filter (with values) on a record.

For Example: amount > 21.4

Summary

Methods
Properties
Constants
__construct()
appendToUrlParams()
$field
$operator
$value
VALID_OPERATORS
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

VALID_OPERATORS

VALID_OPERATORS = array('>', '<', '>=', '<=', '=', '!=', 'contains', 'startswith', 'endswith')

Properties

$field

$field : string

Type

string — The fieldname the filter is applied to

$operator

$operator : string

Type

string — ['>','<','>=','<=','=','!=','contains','startswith','endswith']

$value

$value : string

Type

string — The value

Methods

__construct()

__construct(string  $field, string  $operator, string  $value) 

Constructor.

Parameters

string $field

The fieldname the filter is applied to

string $operator

['>','<','>=','<=','=','!=','contains','startswith','endswith']

string $value

The value

appendToUrlParams()

appendToUrlParams(array  $urlParams, \Alddesign\Crudkit\Classes\int  $filterNo) 

Adds a filter to an url param array.

Parameters

array $urlParams
\Alddesign\Crudkit\Classes\int $filterNo