PHP 클래스 Grido\Components\Container

저자: Petr Bugyík
상속: extends Nette\Application\UI\Control
파일 보기 프로젝트 열기: o5/grido 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$hasActions boolean
$hasButtons boolean
$hasColumns boolean
$hasExport boolean
$hasFilters boolean
$hasOperation boolean

공개 메소드들

메소드 설명
addActionEvent ( string $name, string $label, callback $onClick = NULL ) : Grido\Components\Actions\Event
addActionHref ( string $name, string $label, string $destination = NULL, array $arguments = [] ) : Href
addButton ( string $name, string $label = NULL, string $destination = NULL, array $arguments = [] ) : Button
addColumnDate ( string $name, string $label, string $dateFormat = NULL ) : Grido\Components\Columns\Date
addColumnEmail ( string $name, string $label ) : Grido\Components\Columns\Email
addColumnLink ( string $name, string $label ) : Grido\Components\Columns\Link
addColumnNumber ( string $name, string $label, integer $decimals = NULL, string $decPoint = NULL, string $thousandsSep = NULL ) : Grido\Components\Columns\Number
addColumnText ( string $name, string $label ) : Grido\Components\Columns\Text
addFilterCheck ( string $name, string $label ) : Grido\Components\Filters\Check
addFilterCustom ( string $name, Nette\Forms\IControl $formControl ) : Custom
addFilterDate ( string $name, string $label ) : Grido\Components\Filters\Date
addFilterDateRange ( string $name, string $label ) : Grido\Components\Filters\DateRange
addFilterNumber ( string $name, string $label ) : Grido\Components\Filters\Number
addFilterSelect ( string $name, string $label, array $items = NULL ) : Grido\Components\Filters\Select
addFilterText ( string $name, string $label ) : Text
getAction ( string $name, boolean $need = TRUE ) : Action Returns action component.
getButton ( $name, boolean $need = TRUE ) : Button Returns toolbar button component.
getColumn ( string $name, boolean $need = TRUE ) : Editable Returns column component.
getExport ( boolean $need = TRUE ) : Grido\Components\Export Returns export component.
getFilter ( string $name, boolean $need = TRUE ) : Filter Returns filter component.
getOperation ( boolean $need = TRUE ) : Operation Returns operations component.
hasActions ( boolean $useCache = TRUE ) : boolean
hasButtons ( boolean $useCache = TRUE ) : boolean
hasColumns ( boolean $useCache = TRUE ) : boolean
hasExport ( boolean $useCache = TRUE ) : boolean
hasFilters ( boolean $useCache = TRUE ) : boolean
hasOperation ( boolean $useCache = TRUE ) : boolean
setEditableColumns ( callback $callback = NULL ) : Grid Sets all columns as editable.
setExport ( string $label = NULL ) : Grido\Components\Export
setOperation ( array $operations, callback $onSubmit ) : Operation

메소드 상세

addActionEvent() 공개 메소드

public addActionEvent ( string $name, string $label, callback $onClick = NULL ) : Grido\Components\Actions\Event
$name string
$label string
$onClick callback
리턴 Grido\Components\Actions\Event

addActionHref() 공개 메소드

public addActionHref ( string $name, string $label, string $destination = NULL, array $arguments = [] ) : Href
$name string
$label string
$destination string
$arguments array
리턴 Grido\Components\Actions\Href

addButton() 공개 메소드

public addButton ( string $name, string $label = NULL, string $destination = NULL, array $arguments = [] ) : Button
$name string
$label string
$destination string - first param for method $presenter->link()
$arguments array - second param for method $presenter->link()
리턴 Button

addColumnDate() 공개 메소드

public addColumnDate ( string $name, string $label, string $dateFormat = NULL ) : Grido\Components\Columns\Date
$name string
$label string
$dateFormat string
리턴 Grido\Components\Columns\Date

addColumnEmail() 공개 메소드

public addColumnEmail ( string $name, string $label ) : Grido\Components\Columns\Email
$name string
$label string
리턴 Grido\Components\Columns\Email

addColumnNumber() 공개 메소드

public addColumnNumber ( string $name, string $label, integer $decimals = NULL, string $decPoint = NULL, string $thousandsSep = NULL ) : Grido\Components\Columns\Number
$name string
$label string
$decimals integer number of decimal points
$decPoint string separator for the decimal point
$thousandsSep string thousands separator
리턴 Grido\Components\Columns\Number

addColumnText() 공개 메소드

public addColumnText ( string $name, string $label ) : Grido\Components\Columns\Text
$name string
$label string
리턴 Grido\Components\Columns\Text

addFilterCheck() 공개 메소드

public addFilterCheck ( string $name, string $label ) : Grido\Components\Filters\Check
$name string
$label string
리턴 Grido\Components\Filters\Check

addFilterCustom() 공개 메소드

public addFilterCustom ( string $name, Nette\Forms\IControl $formControl ) : Custom
$name string
$formControl Nette\Forms\IControl
리턴 Grido\Components\Filters\Custom

addFilterDate() 공개 메소드

public addFilterDate ( string $name, string $label ) : Grido\Components\Filters\Date
$name string
$label string
리턴 Grido\Components\Filters\Date

addFilterDateRange() 공개 메소드

public addFilterDateRange ( string $name, string $label ) : Grido\Components\Filters\DateRange
$name string
$label string
리턴 Grido\Components\Filters\DateRange

addFilterNumber() 공개 메소드

public addFilterNumber ( string $name, string $label ) : Grido\Components\Filters\Number
$name string
$label string
리턴 Grido\Components\Filters\Number

addFilterSelect() 공개 메소드

public addFilterSelect ( string $name, string $label, array $items = NULL ) : Grido\Components\Filters\Select
$name string
$label string
$items array
리턴 Grido\Components\Filters\Select

addFilterText() 공개 메소드

public addFilterText ( string $name, string $label ) : Text
$name string
$label string
리턴 Grido\Components\Filters\Text

getAction() 공개 메소드

Returns action component.
public getAction ( string $name, boolean $need = TRUE ) : Action
$name string
$need boolean
리턴 Grido\Components\Actions\Action

getButton() 공개 메소드

Returns toolbar button component.
public getButton ( $name, boolean $need = TRUE ) : Button
$need boolean
리턴 Button

getColumn() 공개 메소드

Returns column component.
public getColumn ( string $name, boolean $need = TRUE ) : Editable
$name string
$need boolean
리턴 Grido\Components\Columns\Editable

getExport() 공개 메소드

Returns export component.
public getExport ( boolean $need = TRUE ) : Grido\Components\Export
$need boolean
리턴 Grido\Components\Export

getFilter() 공개 메소드

Returns filter component.
public getFilter ( string $name, boolean $need = TRUE ) : Filter
$name string
$need boolean
리턴 Grido\Components\Filters\Filter

getOperation() 공개 메소드

Returns operations component.
public getOperation ( boolean $need = TRUE ) : Operation
$need boolean
리턴 Operation

hasActions() 공개 메소드

public hasActions ( boolean $useCache = TRUE ) : boolean
$useCache boolean
리턴 boolean

hasButtons() 공개 메소드

public hasButtons ( boolean $useCache = TRUE ) : boolean
$useCache boolean
리턴 boolean

hasColumns() 공개 메소드

public hasColumns ( boolean $useCache = TRUE ) : boolean
$useCache boolean
리턴 boolean

hasExport() 공개 메소드

public hasExport ( boolean $useCache = TRUE ) : boolean
$useCache boolean
리턴 boolean

hasFilters() 공개 메소드

public hasFilters ( boolean $useCache = TRUE ) : boolean
$useCache boolean
리턴 boolean

hasOperation() 공개 메소드

public hasOperation ( boolean $useCache = TRUE ) : boolean
$useCache boolean
리턴 boolean

setEditableColumns() 공개 메소드

First parameter is optional and is for implementation of method for saving modified data.
public setEditableColumns ( callback $callback = NULL ) : Grid
$callback callback function($id, $newValue, $oldValue, Editable $column) }
리턴 Grido\Grid

setExport() 공개 메소드

public setExport ( string $label = NULL ) : Grido\Components\Export
$label string of exporting file
리턴 Grido\Components\Export

setOperation() 공개 메소드

public setOperation ( array $operations, callback $onSubmit ) : Operation
$operations array
$onSubmit callback - callback after operation submit
리턴 Operation

프로퍼티 상세

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

protected bool $hasActions
리턴 boolean

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

protected bool $hasButtons
리턴 boolean

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

protected bool $hasColumns
리턴 boolean

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

protected bool $hasExport
리턴 boolean

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

protected bool $hasFilters
리턴 boolean

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

protected bool $hasOperation
리턴 boolean