PHP Class MultiFieldPartialMatchFilter, silvershop-core

Inheritance: extends PartialMatchFilter
Mostrar archivo Open project: burnbright/silverstripe-shop

Protected Properties

Property Type Description
$subfilterModifiers array
$subfilters array

Public Methods

Method Description
__construct ( string $fullName, mixed $value = false, array $modifiers = [], array $otherFields = [] )
apply ( DataQuery $query )
setModifiers ( array $modifiers )
setSubfilters ( array $fieldNames )
setValue ( string $value )

Protected Methods

Method Description
shouldSplitWords ( ) : boolean

Method Details

__construct() public method

public __construct ( string $fullName, mixed $value = false, array $modifiers = [], array $otherFields = [] )
$fullName string Determines the name of the field, as well as the searched database column. Can contain a relation name in dot notation, which will automatically join the necessary tables (e.g. "Comments.Name" to join the "Comments" has-many relationship and search the "Name" column when applying this filter to a SiteTree class).
$value mixed [optional]
$modifiers array [optional]
$otherFields array [optional]

apply() public method

public apply ( DataQuery $query )
$query DataQuery

setModifiers() public method

public setModifiers ( array $modifiers )
$modifiers array

setSubfilters() public method

public setSubfilters ( array $fieldNames )
$fieldNames array

setValue() public method

public setValue ( string $value )
$value string

shouldSplitWords() protected method

protected shouldSplitWords ( ) : boolean
return boolean

Property Details

$subfilterModifiers protected_oe property

protected array $subfilterModifiers
return array

$subfilters protected_oe property

protected array $subfilters
return array