PHP 클래스 Ublaboo\DataGrid\Filter\Filter

상속: extends Nette\Object
파일 보기 프로젝트 열기: ublaboo/datagrid 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
__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

보호된 메소드들

메소드 설명
addAttributes ( BaseControl $input ) : BaseControl

메소드 상세

__construct() 공개 메소드

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

addAttribute() 공개 메소드

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

addAttribute() 공개 메소드

public addAttribute ( string $name, mixed $value ) : static
$name string
$value mixed
리턴 static

addAttributes() 보호된 메소드

protected addAttributes ( BaseControl $input ) : BaseControl
$input Nette\Forms\Controls\BaseControl
리턴 Nette\Forms\Controls\BaseControl

getAttribtues() 공개 메소드

사용 중단: use getAttributes instead
public getAttribtues ( ) : array
리턴 array

getAttributes() 공개 메소드

public getAttributes ( )

getColumn() 공개 메소드

Get filter column
public getColumn ( ) : string
리턴 string

getCondition() 공개 메소드

Get filter condition
public getCondition ( ) : array
리턴 array

getConditionCallback() 공개 메소드

Get custom filter condition
public getConditionCallback ( ) : callable
리턴 callable

getKey() 공개 메소드

Get filter key
public getKey ( ) : mixed
리턴 mixed

getName() 공개 메소드

Get filter name
public getName ( ) : string
리턴 string

getPlaceholder() 공개 메소드

Get html attr placeholder
public getPlaceholder ( ) : string
리턴 string

getTemplate() 공개 메소드

Get filter template path
public getTemplate ( ) : string
리턴 string

getType() 공개 메소드

public getType ( ) : string
리턴 string

getValue() 공개 메소드

Get filter value
public getValue ( ) : mixed
리턴 mixed

hasConditionCallback() 공개 메소드

Tell whether custom condition_callback on filter is set
public hasConditionCallback ( ) : boolean
리턴 boolean

isValueSet() 공개 메소드

Tell whether value has been set in this fitler
public isValueSet ( ) : boolean
리턴 boolean

setCondition() 공개 메소드

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

setPlaceholder() 공개 메소드

Set html attr placeholder
public setPlaceholder ( string $placeholder ) : static
$placeholder string
리턴 static

setTemplate() 공개 메소드

Filter may have its own template
public setTemplate ( string $template ) : static
$template string
리턴 static

setValue() 공개 메소드

Set filter value
public setValue ( mixed $value ) : static
$value mixed
리턴 static

프로퍼티 상세

$attributes 보호되어 있는 프로퍼티

protected array $attributes
리턴 array

$column 보호되어 있는 프로퍼티

protected string|array $column
리턴 string | array

$condition_callback 보호되어 있는 프로퍼티

protected callable $condition_callback
리턴 callable

$grid 보호되어 있는 프로퍼티

protected DataGrid,Ublaboo\DataGrid $grid
리턴 Ublaboo\DataGrid\DataGrid

$key 보호되어 있는 프로퍼티

protected string $key
리턴 string

$name 보호되어 있는 프로퍼티

protected string $name
리턴 string

$template 보호되어 있는 프로퍼티

protected string $template
리턴 string

$type 보호되어 있는 프로퍼티

protected string $type
리턴 string

$value 보호되어 있는 프로퍼티

protected mixed $value
리턴 mixed

$value_set 보호되어 있는 프로퍼티

protected bool $value_set
리턴 boolean