PHP Class Ublaboo\DataGrid\Filter\FilterText

Inheritance: extends Filter
Exibir arquivo Open project: ublaboo/datagrid Class Usage Examples

Protected Properties

Property Type Description
$exact boolean
$split_words_search boolean
$template string
$type string

Public Methods

Method 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 method

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

getCondition() public method

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
return array | callable

hasSplitWordsSearch() public method

public hasSplitWordsSearch ( ) : boolean
return boolean

isExactSearch() public method

public isExactSearch ( ) : boolean
return boolean

setExactSearch() public method

public setExactSearch ( boolean $exact = TRUE ) : FilterText
$exact boolean
return FilterText

setSplitWordsSearch() public method

public setSplitWordsSearch ( boolean $split_words_search ) : FilterText
$split_words_search boolean
return FilterText

Property Details

$exact protected_oe property

protected bool $exact
return boolean

$template protected_oe property

protected string $template
return string

$type protected_oe property

protected string $type
return string