BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
BlueSpice\Data\Filter Class Reference
Inheritance diagram for BlueSpice\Data\Filter:
Collaboration diagram for BlueSpice\Data\Filter:

Public Member Functions

 __construct ($params)
 
 getField ()
 
 getValue ()
 
 getComparison ()
 
 matches ($dataSet)
 

Static Public Member Functions

static newCollectionFromArray ($filters)
 

Public Attributes

const COMPARISON_EQUALS = 'eq'
 
const COMPARISON_NOT_EQUALS = 'neq'
 
const KEY_TYPE = 'type'
 
const KEY_COMPARISON = 'comparison'
 
const KEY_FIELD = 'field'
 
const KEY_VALUE = 'value'
 

Protected Member Functions

 doesMatch ($dataSet)
 

Protected Attributes

 $field = ''
 
 $value = null
 
 $comparison = ''
 

Constructor & Destructor Documentation

BlueSpice\Data\Filter::__construct (   $params)
Parameters
array$params

Member Function Documentation

BlueSpice\Data\Filter::getComparison ( )
Returns
string
BlueSpice\Data\Filter::getField ( )
Returns
string
BlueSpice\Data\Filter::getValue ( )
Returns
mixed
BlueSpice\Data\Filter::matches (   $dataSet)
Parameters
\BlueSpice\Data\Record$dataSet
Returns
boolean
static BlueSpice\Data\Filter::newCollectionFromArray (   $filters)
static
Parameters
stdClass[]|array[]$filters
Returns
Filter[]

The documentation for this class was generated from the following file: