PHP Class Ublaboo\DataGrid\Filter\FilterSelect

Inheritance: extends Filter
Show file Open project: ublaboo/datagrid Class Usage Examples

Protected Properties

Property Type Description
$options array
$template string
$translateOptions boolean
$type string

Public Methods

Method Description
__construct ( DataGrid $grid, string $key, string $name, array $options, string $column )
addToFormContainer ( Container $container ) Adds select box to filter form
getCondition ( ) : array Get filter condition
getTranslateOptions ( ) : boolean
setTranslateOptions ( boolean $translateOptions = TRUE ) : static

Protected Methods

Method Description
addControl ( Container $container, string $key, string $name, array $options ) : SelectBox

Method Details

__construct() public method

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

addControl() protected method

protected addControl ( Container $container, string $key, string $name, array $options ) : SelectBox
$container Nette\Forms\Container
$key string
$name string
$options array
return Nette\Forms\Controls\SelectBox

addToFormContainer() public method

Adds select box to filter form
public addToFormContainer ( Container $container )
$container Nette\Forms\Container

getCondition() public method

Get filter condition
public getCondition ( ) : array
return array

getTranslateOptions() public method

public getTranslateOptions ( ) : boolean
return boolean

setTranslateOptions() public method

public setTranslateOptions ( boolean $translateOptions = TRUE ) : static
$translateOptions boolean
return static

Property Details

$options protected property

protected array $options
return array

$template protected property

protected string $template
return string

$translateOptions protected property

protected bool $translateOptions
return boolean

$type protected property

protected string $type
return string