PHP Class Ublaboo\DataGrid\Filter\FilterText

Inheritance: extends Filter
Afficher le fichier Open project: ublaboo/datagrid Class Usage Examples

Protected Properties

Свойство Type Description
$exact boolean
$split_words_search boolean
$template string
$type string

Méthodes publiques

Méthode Description
addToFormContainer ( Container $container ) Adds text field to filter form
getCondition ( ) : array | callable Return array of conditions to put in result [column1 => value, column2 => value] If more than one column exists in fitler text, than there is OR clause put betweeen their conditions Or callback in case of custom condition callback
hasSplitWordsSearch ( ) : boolean
isExactSearch ( ) : boolean
setExactSearch ( boolean $exact = TRUE ) : FilterText
setSplitWordsSearch ( boolean $split_words_search ) : FilterText

Method Details

addToFormContainer() public méthode

Adds text field to filter form
public addToFormContainer ( Container $container )
$container Nette\Forms\Container

getCondition() public méthode

Return array of conditions to put in result [column1 => value, column2 => value] If more than one column exists in fitler text, than there is OR clause put betweeen their conditions Or callback in case of custom condition callback
public getCondition ( ) : array | callable
Résultat array | callable

hasSplitWordsSearch() public méthode

public hasSplitWordsSearch ( ) : boolean
Résultat boolean

isExactSearch() public méthode

public isExactSearch ( ) : boolean
Résultat boolean

setExactSearch() public méthode

public setExactSearch ( boolean $exact = TRUE ) : FilterText
$exact boolean
Résultat FilterText

setSplitWordsSearch() public méthode

public setSplitWordsSearch ( boolean $split_words_search ) : FilterText
$split_words_search boolean
Résultat FilterText

Property Details

$exact protected_oe property

protected bool $exact
Résultat boolean

$template protected_oe property

protected string $template
Résultat string

$type protected_oe property

protected string $type
Résultat string