PHP Class Ublaboo\DataGrid\Filter\Filter

Inheritance: extends Nette\Object
Afficher le fichier Open project: ublaboo/datagrid Class Usage Examples

Protected Properties

Свойство Type Description
$attributes array
$column string | array
$condition_callback callable
$grid Ublaboo\DataGrid\DataGrid
$key string
$name string
$template string
$type string
$value mixed
$value_set boolean

Méthodes publiques

Méthode Description
__construct ( DataGrid $grid, string $key, string $name, string | array $column )
addAttribute ( string $name, mixed $value )
addAttribute ( string $name, mixed $value ) : static
getAttribtues ( ) : array
getAttributes ( )
getColumn ( ) : string Get filter column
getCondition ( ) : array Get filter condition
getConditionCallback ( ) : callable Get custom filter condition
getKey ( ) : mixed Get filter key
getName ( ) : string Get filter name
getPlaceholder ( ) : string Get html attr placeholder
getTemplate ( ) : string Get filter template path
getType ( ) : string
getValue ( ) : mixed Get filter value
hasConditionCallback ( ) : boolean Tell whether custom condition_callback on filter is set
isValueSet ( ) : boolean Tell whether value has been set in this fitler
setCondition ( callable $condition_callback ) Set custom condition on filter
setPlaceholder ( string $placeholder ) : static Set html attr placeholder
setTemplate ( string $template ) : static Filter may have its own template
setValue ( mixed $value ) : static Set filter value

Méthodes protégées

Méthode Description
addAttributes ( BaseControl $input ) : BaseControl

Method Details

__construct() public méthode

public __construct ( DataGrid $grid, string $key, string $name, string | array $column )
$grid Ublaboo\DataGrid\DataGrid
$key string
$name string
$column string | array

addAttribute() public méthode

public addAttribute ( string $name, mixed $value )
$name string
$value mixed

addAttribute() public méthode

public addAttribute ( string $name, mixed $value ) : static
$name string
$value mixed
Résultat static

addAttributes() protected méthode

protected addAttributes ( BaseControl $input ) : BaseControl
$input Nette\Forms\Controls\BaseControl
Résultat Nette\Forms\Controls\BaseControl

getAttribtues() public méthode

Deprecation: use getAttributes instead
public getAttribtues ( ) : array
Résultat array

getAttributes() public méthode

public getAttributes ( )

getColumn() public méthode

Get filter column
public getColumn ( ) : string
Résultat string

getCondition() public méthode

Get filter condition
public getCondition ( ) : array
Résultat array

getConditionCallback() public méthode

Get custom filter condition
public getConditionCallback ( ) : callable
Résultat callable

getKey() public méthode

Get filter key
public getKey ( ) : mixed
Résultat mixed

getName() public méthode

Get filter name
public getName ( ) : string
Résultat string

getPlaceholder() public méthode

Get html attr placeholder
public getPlaceholder ( ) : string
Résultat string

getTemplate() public méthode

Get filter template path
public getTemplate ( ) : string
Résultat string

getType() public méthode

public getType ( ) : string
Résultat string

getValue() public méthode

Get filter value
public getValue ( ) : mixed
Résultat mixed

hasConditionCallback() public méthode

Tell whether custom condition_callback on filter is set
public hasConditionCallback ( ) : boolean
Résultat boolean

isValueSet() public méthode

Tell whether value has been set in this fitler
public isValueSet ( ) : boolean
Résultat boolean

setCondition() public méthode

Set custom condition on filter
public setCondition ( callable $condition_callback )
$condition_callback callable

setPlaceholder() public méthode

Set html attr placeholder
public setPlaceholder ( string $placeholder ) : static
$placeholder string
Résultat static

setTemplate() public méthode

Filter may have its own template
public setTemplate ( string $template ) : static
$template string
Résultat static

setValue() public méthode

Set filter value
public setValue ( mixed $value ) : static
$value mixed
Résultat static

Property Details

$attributes protected_oe property

protected array $attributes
Résultat array

$column protected_oe property

protected string|array $column
Résultat string | array

$condition_callback protected_oe property

protected callable $condition_callback
Résultat callable

$grid protected_oe property

protected DataGrid,Ublaboo\DataGrid $grid
Résultat Ublaboo\DataGrid\DataGrid

$key protected_oe property

protected string $key
Résultat string

$name protected_oe property

protected string $name
Résultat string

$template protected_oe property

protected string $template
Résultat string

$type protected_oe property

protected string $type
Résultat string

$value protected_oe property

protected mixed $value
Résultat mixed

$value_set protected_oe property

protected bool $value_set
Résultat boolean