Property | Type | Description | |
---|---|---|---|
$collection | |||
$schema | the schema object | ||
$validFields | |||
$validValues | contains field-to-definitions data structure: "field_name" => [ 1,2,3,4 ] "field_name" => [ "foo", "bar" ] "field_name" => [ "label" => 1, "label2" => 2] |
Method | Description | |
---|---|---|
__construct ( |
||
apply ( array $args ) | ||
applyFromRequest ( $requestPrefix = '_filter_' ) | Apply filters from request parameters. | |
defineContains ( $field ) | ||
defineEndsWith ( $field ) | ||
defineEqual ( $fieldName, $validValues = null ) | ||
defineInSet ( $field, $validValues ) | ||
defineRange ( $field, $validValues = null ) | ||
defineStartsWith ( $field ) | ||
getCollection ( $c ) | ||
setCollection ( $c ) | ||
validateValue ( $validValues, &$val ) |
public __construct ( |
||
$collection |
public applyFromRequest ( $requestPrefix = '_filter_' ) |