PHP 클래스 Nextras\Datagrid\Datagrid

상속: extends Nette\Application\UI\Control
파일 보기 프로젝트 열기: nextras/datagrid 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$filter
$onRender of callbacks: function(Datagrid)
$orderColumn
$orderType
$page

보호된 프로퍼티들

프로퍼티 타입 설명
$cellsTemplates array
$columnGetterCallback callable | null
$columns array
$data mixed
$dataSourceCallback callable
$editFormCallback callable | null
$editFormFactory callable | null
$editRowKey mixed
$filterDataSource array
$filterDefaults array
$filterFormFactory callable | null
$paginator Nette\Utils\Paginator
$paginatorItemsCountCallback callable | null
$rowPrimaryKey string
$sendOnlyRowParentSnippet boolean
$translator Nette\Localization\ITranslator

공개 메소드들

메소드 설명
addCellsTemplate ( string | Nette\Bridges\ApplicationLatte\Template $path )
addColumn ( $name, $label = null ) : Column Adds column
createComponentForm ( )
getCellsTemplate ( )
getColumnGetterCallback ( )
getDataSourceCallback ( )
getEditFormCallback ( )
getEditFormFactory ( )
getFilterFormFactory ( )
getRowPrimaryKey ( )
getTranslator ( )
getter ( $row, $column, $need = true )
handleEdit ( $primaryValue, $cancelEditPrimaryValue = null )
handlePaginate ( )
handleSort ( )
invalidateRow ( $primaryValue )
loadState ( array $params )
processForm ( Nette\Application\UI\Form $form )
redrawControl ( $snippet = null )
redrawRow ( $primaryValue )
render ( ) ****************************************************************************
setColumnGetterCallback ( callable $getterCallback = null )
setDataSourceCallback ( callable $dataSourceCallback )
setEditFormCallback ( callable $editFormCallback = null )
setEditFormFactory ( callable $editFormFactory = null )
setFilterFormFactory ( callable $filterFormFactory )
setPagination ( $itemsPerPage, callable $itemsCountCallback = null )
setRowPrimaryKey ( $columnName )
setTranslator ( Nette\Localization\ITranslator $translator )
translate ( $s, $count = null )

보호된 메소드들

메소드 설명
attached ( $presenter ) ****************************************************************************
createTemplate ( $class = null )
getData ( $key = null )

비공개 메소드들

메소드 설명
filterFormFilter ( $values )

메소드 상세

addCellsTemplate() 공개 메소드

public addCellsTemplate ( string | Nette\Bridges\ApplicationLatte\Template $path )
$path string | Nette\Bridges\ApplicationLatte\Template

addColumn() 공개 메소드

Adds column
public addColumn ( $name, $label = null ) : Column
리턴 Column

attached() 보호된 메소드

****************************************************************************
protected attached ( $presenter )

createComponentForm() 공개 메소드

public createComponentForm ( )

createTemplate() 보호된 메소드

protected createTemplate ( $class = null )

getCellsTemplate() 공개 메소드

public getCellsTemplate ( )

getColumnGetterCallback() 공개 메소드

getData() 보호된 메소드

protected getData ( $key = null )

getDataSourceCallback() 공개 메소드

getEditFormCallback() 공개 메소드

public getEditFormCallback ( )

getEditFormFactory() 공개 메소드

public getEditFormFactory ( )

getFilterFormFactory() 공개 메소드

getRowPrimaryKey() 공개 메소드

public getRowPrimaryKey ( )

getTranslator() 공개 메소드

public getTranslator ( )

getter() 공개 메소드

public getter ( $row, $column, $need = true )

handleEdit() 공개 메소드

public handleEdit ( $primaryValue, $cancelEditPrimaryValue = null )

handlePaginate() 공개 메소드

public handlePaginate ( )

handleSort() 공개 메소드

public handleSort ( )

invalidateRow() 공개 메소드

사용 중단:
public invalidateRow ( $primaryValue )

loadState() 공개 메소드

public loadState ( array $params )
$params array

processForm() 공개 메소드

public processForm ( Nette\Application\UI\Form $form )
$form Nette\Application\UI\Form

redrawControl() 공개 메소드

public redrawControl ( $snippet = null )

redrawRow() 공개 메소드

public redrawRow ( $primaryValue )

render() 공개 메소드

****************************************************************************
public render ( )

setColumnGetterCallback() 공개 메소드

public setColumnGetterCallback ( callable $getterCallback = null )
$getterCallback callable

setDataSourceCallback() 공개 메소드

public setDataSourceCallback ( callable $dataSourceCallback )
$dataSourceCallback callable

setEditFormCallback() 공개 메소드

public setEditFormCallback ( callable $editFormCallback = null )
$editFormCallback callable

setEditFormFactory() 공개 메소드

public setEditFormFactory ( callable $editFormFactory = null )
$editFormFactory callable

setFilterFormFactory() 공개 메소드

public setFilterFormFactory ( callable $filterFormFactory )
$filterFormFactory callable

setPagination() 공개 메소드

public setPagination ( $itemsPerPage, callable $itemsCountCallback = null )
$itemsCountCallback callable

setRowPrimaryKey() 공개 메소드

public setRowPrimaryKey ( $columnName )

setTranslator() 공개 메소드

public setTranslator ( Nette\Localization\ITranslator $translator )
$translator Nette\Localization\ITranslator

translate() 공개 메소드

public translate ( $s, $count = null )

프로퍼티 상세

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

protected array $cellsTemplates
리턴 array

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

protected callable|null $columnGetterCallback
리턴 callable | null

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

protected array $columns
리턴 array

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

protected mixed $data
리턴 mixed

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

protected callable $dataSourceCallback
리턴 callable

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

protected callable|null $editFormCallback
리턴 callable | null

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

protected callable|null $editFormFactory
리턴 callable | null

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

protected mixed $editRowKey
리턴 mixed

$filter 공개적으로 프로퍼티

public $filter

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

protected array $filterDataSource
리턴 array

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

protected array $filterDefaults
리턴 array

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

protected callable|null $filterFormFactory
리턴 callable | null

$onRender 공개적으로 프로퍼티

of callbacks: function(Datagrid)
public $onRender

$orderColumn 공개적으로 프로퍼티

public $orderColumn

$orderType 공개적으로 프로퍼티

public $orderType

$page 공개적으로 프로퍼티

public $page

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

protected Paginator,Nette\Utils $paginator
리턴 Nette\Utils\Paginator

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

protected callable|null $paginatorItemsCountCallback
리턴 callable | null

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

protected string $rowPrimaryKey
리턴 string

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

protected bool $sendOnlyRowParentSnippet
리턴 boolean

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

protected ITranslator,Nette\Localization $translator
리턴 Nette\Localization\ITranslator