PHP 클래스 Ublaboo\DataGrid\DataGrid

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

공개 프로퍼티들

프로퍼티 타입 설명
$default_filter array
$default_filter_use_on_reset boolean
$default_sort array
$default_sort_use_on_reset boolean
$filter array
$form_method string Default form method
$icon_prefix string
$onColumnAdd callable[]
$onExport callable[]
$onFiltersAssabled callable[]
$onRedraw callable[]
$onRender callable[]
$page integer
$per_page integer | string
$sort array
$strict_entity_property boolean When set to TRUE, datagrid throws an exception when tring to get related entity within join and entity does not exist
$strict_session_filter_values boolean When set to TRUE, datagrid throws an exception when tring to set filter value, that does not exist (select, multiselect, etc)

보호된 프로퍼티들

프로퍼티 타입 설명
$actions Ublaboo\DataGrid\Column\Action[]
$auto_submit boolean
$can_hide_columns boolean
$collapsible_outer_filters boolean
$column_callbacks array
$columns Column\IColumn[]
$columnsSummary ColumnsSummary
$columns_export_order array
$columns_visibility array
$csv_export boolean
$csv_export_filtered boolean
$dataFilter DataFilter
$dataModel DataModel
$default_per_page integer
$do_paginate boolean
$exports Ublaboo\DataGrid\Export\Export[]
$filter_submit_button Ublaboo\DataGrid\Filter\SubmitButton | null
$filters Ublaboo\DataGrid\Filter\Filter[]
$force_filter_active boolean
$grid_session Nette\Http\SessionSection
$group_action_collection Ublaboo\DataGrid\GroupAction\GroupActionCollection
$has_column_reset boolean
$inlineAdd Ublaboo\DataGrid\InlineEdit\InlineEdit
$inlineEdit Ublaboo\DataGrid\InlineEdit\InlineEdit
$items_detail Ublaboo\DataGrid\Column\ItemDetail
$items_per_page_list array
$multiSort boolean
$original_template string
$outer_filter_rendering boolean
$primary_key string
$redraw_item array
$refresh_url boolean
$remember_state boolean
$rowCallback callable
$row_conditions array
$snippets_set boolean
$some_column_default_hide boolean
$sort_callback callable | null
$sortable boolean
$sortable_handler string
$template_file string
$toolbar_buttons Ublaboo\DataGrid\Toolbar\ToolbarButton[]
$translator mixed
$tree_view_children_callback callable
$tree_view_has_children_callback callable
$tree_view_has_children_column string
$use_happy_components boolean

공개 메소드들

메소드 설명
__construct ( Nette\ComponentModel\IContainer $parent = NULL, string $name = NULL )
addAction ( string $key, string $name, string $href = NULL, array $params = NULL ) : Action Create action
addActionCallback ( string $key, string $name, $callback = NULL ) : Action Create action callback
addColumnCallback ( string $key, callable $callback ) : void
addColumnDateTime ( string $key, string $name, string | null $column = NULL ) : ColumnDateTime Add column with date formating
addColumnLink ( string $key, string $name, $href = NULL, string | null $column = NULL, array $params = NULL ) : ColumnLink Add column with link
addColumnNumber ( string $key, string $name, string | null $column = NULL ) : ColumnNumber Add column with possible number formating
addColumnStatus ( string $key, string $name, string | null $column = NULL ) : ColumnStatus Add column status
addColumnText ( string $key, string $name, string | null $column = NULL ) : Column\ColumnText Add text column with no other formating
addExportCallback ( string $text, callable $callback, boolean $filtered = FALSE ) : Export Add export of type callback
addExportCsv ( string $text, string $csv_file_name, string | null $output_encoding = NULL, string | null $delimiter = NULL, boolean $include_bom = FALSE ) : Export Add already implemented csv export
addExportCsvFiltered ( string $text, string $csv_file_name, string | null $output_encoding = NULL, string | null $delimiter = NULL, boolean $include_bom = FALSE ) : Export Add already implemented csv export, but for filtered data
addFilterDate ( string $key, string $name, string $column = NULL ) : FilterDate Add datepicker filter
addFilterDateRange ( string $key, string $name, string $column = NULL, $name_second = '-' ) : FilterDateRange Add datepicker filter (from - to)
addFilterMultiSelect ( string $key, string $name, array $options, string $column = NULL ) : FilterSelect Add multi select box filter
addFilterRange ( string $key, string $name, string $column = NULL, $name_second = '-' ) : FilterRange Add range filter (from - to)
addFilterSelect ( string $key, string $name, array $options, string $column = NULL ) : FilterSelect Add select box filter
addFilterText ( string $key, string $name, array | string $columns = NULL ) : FilterText Add filter fot text search
addGroupAction ( string $title, array $options = [] ) : GroupAction Alias for add group select action
addGroupSelectAction ( string $title, array $options = [] ) : GroupAction Add group action (select box)
addGroupTextAction ( string $title ) : GroupAction Add group action (text input)
addGroupTextareaAction ( string $title ) : GroupAction Add group action (textarea)
addInlineAdd ( ) : InlineEdit
addInlineEdit ( $primary_where_column = NULL ) : InlineEdit
addMultiAction ( string $key, $name )
addToolbarButton ( string $href, string $text = '', array $params = [] ) : ToolbarButton Add toolbar button
allowRowsAction ( string $key, callable $condition ) : void
allowRowsGroupAction ( callable $condition ) : void
allowRowsInlineEdit ( callable $condition ) : void
assableFilters ( ) : Filter[] Fill array of Filter\Filter[] with values from $this->filter persistent parameter Fill array of Column\Column[] with values from $this->sort persistent parameter
attached ( $presenter ) : void {inheritDoc}
canHideColumns ( ) : boolean Can datagrid hide colums?
createComponentFilter ( ) : Nette\Application\UI\Form FilterAndGroupAction form factory
createComponentPaginator ( ) : DataGridPaginator Paginator factory
deleteSessionData ( $key ) : void Delete session data
deleteSesssionData ( $key ) : void Delete session data
filterSucceeded ( Nette\Application\UI\Form $form ) : void Set $this->filter values after filter form submitted
findDefaultFilter ( ) : void User may set default filter, find it
findDefaultPerPage ( ) : void User may set default "items per page" value, apply it
findDefaultSort ( ) : void User may set default sorting, apply it
findSessionValues ( ) : void Try to restore session stuff
getAction ( string $key ) : Action Get existing action
getColumn ( string $key ) : Column Return existing column
getColumnCallback ( string $key ) : callable | null
getColumns ( ) : Column\IColumn[] Get set of set columns
getColumnsCount ( ) : integer Get count of columns
getColumnsSummary ( ) : ColumnsSummary | null
getColumnsVisibility ( )
getDataSource ( ) : Ublaboo\DataGrid\DataSource\IDataSource | null
getFilter ( string $key ) : Filter Get defined filter
getFilterSubmitButton ( ) : SubmitButton Submit button when no auto-submitting is used
getGroupActionCollection ( ) : GroupActionCollection Get collection of all group actions
getInlineAdd ( ) : InlineEdit | null
getInlineEdit ( ) : InlineEdit | null
getItemDetailForm ( ) : Container | null
getItemsDetail ( ) : array Get items detail parameters
getItemsPerPageList ( ) : array Get associative array of items_per_page_list
getOriginalTemplateFile ( ) : string Get DataGrid original template file
getPaginator ( ) : null | DataGridPaginator Return current paginator class
getParent ( ) : Nette\Application\UI\PresenterComponent
getPerPage ( ) : integer Get parameter per_page
getPrimaryKey ( ) : string Get primary key of datagrid data source
getRowCondition ( string $name, string | null $key = NULL ) : boolean | callable
getSessionData ( string $key = NULL, $default_value = NULL ) : mixed Get session data if functionality is enabled
getSessionSectionName ( ) : string Find some unique session key name
getSortNext ( Column $column ) : array
getSortableHandler ( ) : string Return sortable handle name
getSortableParentPath ( ) : strign
getTemplateFile ( ) : static Get DataGrid template file
getTranslator ( ) : Nette\Localization\ITranslator Get translator for datagrid
handleActionCallback ( $__key, $__id )
handleChangeStatus ( string $id, string $key, string $value ) : void Handler for column status
handleEdit ( mixed $id, mixed $key ) : void Handler for inline editing
handleExport ( integer $id ) : void Handler for export
handleGetChildren ( integer $parent ) : void Handler for getting children of parent item (e.g. category)
handleGetItemDetail ( mixed $id ) : void Handler for getting item detail
handleHideColumn ( string $column ) : void Notice datagrid to not display particular columns
handleInlineEdit ( mixed $id ) : void
handlePage ( integer $page ) : void Handler for changind page (just refresh site with page as persistent paramter set)
handleRefreshState ( ) : void Simply refresh url
handleResetColumnFilter ( string $key ) : void
handleResetFilter ( ) : void Handler for reseting the filter
handleShowAllColumns ( ) : void Tell datagrid to display all columns
handleShowColumn ( string $column ) : void Reveal particular column
handleShowDefaultColumns ( ) : void Tell datagrid to display default columns
handleSort ( array $sort ) : void Handler for sorting
hasAutoSubmit ( ) : boolean
hasCollapsibleOuterFilters ( ) : boolean
hasColumnReset ( ) : boolean
hasColumnsSummary ( ) : boolean Will datagrid show summary in the end?
hasGroupActions ( ) : boolean Has datagrid some group actions?
hasOuterFilterRendering ( ) : boolean Are datagrid filters rendered separately?
hasSomeColumnDefaultHide ( ) Are some of columns hidden bydefault?
hasTreeViewChildrenCallback ( ) : boolean Is tree view children callback set?
isFilterActive ( ) : boolean Is filter active?
isMultiSortEnabled ( ) : boolean Tell wether DataGrid can be sorted by multiple columns
isPaginated ( ) : boolean Tell whether Grid is paginated
isSortable ( ) : boolean Tell whether DataGrid is sortable
isTreeView ( ) : boolean Is tree view set?
redrawItem ( integer $id, mixed $primary_where_column = NULL ) : void Redraw just one row via ajax
reload ( $snippets = [] ) : void Redraw $this
removeAction ( string $key ) : void Remove action
removeColumn ( string $key ) : void Remove column
removeFilter ( string $key ) : void Remove filter
render ( ) : void Render template
resetExportsLinks ( )
saveSessionData ( string $key, mixed $value ) : void Save session data - just if it is enabled
sendNonEmptyFiltersInPayload ( Filter[] $filters ) : void
setAutoSubmit ( boolean $auto = TRUE ) Tell grid filters to by submitted automatically
setCollapsibleOuterFilters ( boolean $collapsible_outer_filters = TRUE )
setColumnReset ( boolean $reset = TRUE ) : static
setColumnsExportOrder ( array $order ) Columns order may be different for export and normal grid
setColumnsHideable ( ) : static Order Grid to set columns hideable.
setColumnsOrder ( array $order ) : static Set order of datagrid columns
setColumnsSummary ( array $columns, callable $rowCallback = NULL ) : ColumnsSummary Set columns to be summarized in the end.
setDataSource ( Ublaboo\DataGrid\DataSource\IDataSource | array | DibiFluent | Selection | Doctrine\ORM\QueryBuilder $source ) : static Set Grid data source
setDefaultFilter ( array $default_filter, boolean $use_on_reset = TRUE ) : static If we want to sent some initial filter
setDefaultPerPage ( $count ) : static Set default "items per page" value in pagination select
setDefaultSort ( array $sort ) : static Set default sorting
setDefaultSort ( array $sort, boolean $use_on_reset = TRUE ) : static Set default sorting
setFilter ( array $filter ) : static Set filter values (force - overwrite user data)
setFilterActive ( ) Tell that filter is active from whatever reasons return static
setFilterContainerDefaults ( Container $container, array $values )
setFilterContainerDefaults ( Container $container, array | Iterator $values ) : void
setItemsDetail ( mixed $detail = TRUE, boolean | null $primary_where_column = NULL ) : ItemDetail Items can have thair detail - toggled
setItemsDetailForm ( callable $callable_set_container ) : static
setItemsPerPageList ( array $items_per_page_list, $include_all = TRUE ) : static Set options of select "items_per_page"
setMultiSortEnabled ( boolean $multiSort = TRUE ) : void Enable multi-sorting capability
setOuterFilterRendering ( boolean $out = TRUE ) : static Should be datagrid filters rendered separately?
setPagination ( boolean $do ) : static Order Grid to "be paginated"
setPrimaryKey ( string $primary_key ) : static By default ID, you can change that
setRefreshUrl ( boolean $refresh = TRUE ) : static Should datagrid refresh url using history API?
setRememberState ( boolean $remember = TRUE ) : static Should datagrid remember its filters/pagination/etc using session?
setRowCallback ( callable $callback ) : static Each row can be modified with user callback
setSomeColumnDefaultHide ( boolean $default_hide ) Some of datagrid columns is hidden by default
setSortable ( boolean $sortable = TRUE ) : static Set grido to be sortable
setSortableHandler ( string $handler = 'sort!' ) : static Set sortable handle
setStrictSessionFilterValues ( boolean $strict = TRUE )
setTemplateFile ( string $template_file ) : static Set custom template file to render
setTranslator ( Nette\Localization\ITranslator $translator ) : static Set datagrid translator
setTreeView ( callable $get_children_callback, string | callable $tree_view_has_children_column = 'has_children' ) : static Setting tree view
treeViewChildrenCallback ( mixed $item ) : boolean
useHappyComponents ( boolean | null $use = NULL ) : void | boolean Tell datagrid wheteher to use or not happy components

보호된 메소드들

메소드 설명
addActionCheck ( string $key ) Check whether given key already exists in $this->filters
addColumn ( string $key, Column $column ) : Column
addColumnCheck ( string $key ) Check whether given key already exists in $this->columns
addFilterCheck ( string $key ) Check whether given key already exists in $this->filters
addToExports ( Export $export ) : Export Add export to array
createSorting ( array $sort, callable $sort_callback = NULL ) : void
createSorting ( array $sort, callable | null $sort_callback ) : void

메소드 상세

__construct() 공개 메소드

public __construct ( Nette\ComponentModel\IContainer $parent = NULL, string $name = NULL )
$parent Nette\ComponentModel\IContainer
$name string

addAction() 공개 메소드

Create action
public addAction ( string $key, string $name, string $href = NULL, array $params = NULL ) : Action
$key string
$name string
$href string
$params array
리턴 Ublaboo\DataGrid\Column\Action

addActionCallback() 공개 메소드

Create action callback
public addActionCallback ( string $key, string $name, $callback = NULL ) : Action
$key string
$name string
리턴 Ublaboo\DataGrid\Column\Action

addActionCheck() 보호된 메소드

Check whether given key already exists in $this->filters
protected addActionCheck ( string $key )
$key string

addColumn() 보호된 메소드

protected addColumn ( string $key, Column $column ) : Column
$key string
$column Ublaboo\DataGrid\Column\Column
리턴 Ublaboo\DataGrid\Column\Column

addColumnCallback() 공개 메소드

public addColumnCallback ( string $key, callable $callback ) : void
$key string
$callback callable
리턴 void

addColumnCheck() 보호된 메소드

Check whether given key already exists in $this->columns
protected addColumnCheck ( string $key )
$key string

addColumnDateTime() 공개 메소드

Add column with date formating
public addColumnDateTime ( string $key, string $name, string | null $column = NULL ) : ColumnDateTime
$key string
$name string
$column string | null
리턴 Ublaboo\DataGrid\Column\ColumnDateTime

addColumnNumber() 공개 메소드

Add column with possible number formating
public addColumnNumber ( string $key, string $name, string | null $column = NULL ) : ColumnNumber
$key string
$name string
$column string | null
리턴 Ublaboo\DataGrid\Column\ColumnNumber

addColumnStatus() 공개 메소드

Add column status
public addColumnStatus ( string $key, string $name, string | null $column = NULL ) : ColumnStatus
$key string
$name string
$column string | null
리턴 Ublaboo\DataGrid\Column\ColumnStatus

addColumnText() 공개 메소드

Add text column with no other formating
public addColumnText ( string $key, string $name, string | null $column = NULL ) : Column\ColumnText
$key string
$name string
$column string | null
리턴 Column\ColumnText

addExportCallback() 공개 메소드

Add export of type callback
public addExportCallback ( string $text, callable $callback, boolean $filtered = FALSE ) : Export
$text string
$callback callable
$filtered boolean
리턴 Ublaboo\DataGrid\Export\Export

addExportCsv() 공개 메소드

Add already implemented csv export
public addExportCsv ( string $text, string $csv_file_name, string | null $output_encoding = NULL, string | null $delimiter = NULL, boolean $include_bom = FALSE ) : Export
$text string
$csv_file_name string
$output_encoding string | null
$delimiter string | null
$include_bom boolean
리턴 Ublaboo\DataGrid\Export\Export

addExportCsvFiltered() 공개 메소드

Add already implemented csv export, but for filtered data
public addExportCsvFiltered ( string $text, string $csv_file_name, string | null $output_encoding = NULL, string | null $delimiter = NULL, boolean $include_bom = FALSE ) : Export
$text string
$csv_file_name string
$output_encoding string | null
$delimiter string | null
$include_bom boolean
리턴 Ublaboo\DataGrid\Export\Export

addFilterCheck() 보호된 메소드

Check whether given key already exists in $this->filters
protected addFilterCheck ( string $key )
$key string

addFilterDate() 공개 메소드

Add datepicker filter
public addFilterDate ( string $key, string $name, string $column = NULL ) : FilterDate
$key string
$name string
$column string
리턴 Ublaboo\DataGrid\Filter\FilterDate

addFilterDateRange() 공개 메소드

Add datepicker filter (from - to)
public addFilterDateRange ( string $key, string $name, string $column = NULL, $name_second = '-' ) : FilterDateRange
$key string
$name string
$column string
리턴 Ublaboo\DataGrid\Filter\FilterDateRange

addFilterMultiSelect() 공개 메소드

Add multi select box filter
public addFilterMultiSelect ( string $key, string $name, array $options, string $column = NULL ) : FilterSelect
$key string
$name string
$options array
$column string
리턴 Ublaboo\DataGrid\Filter\FilterSelect

addFilterRange() 공개 메소드

Add range filter (from - to)
public addFilterRange ( string $key, string $name, string $column = NULL, $name_second = '-' ) : FilterRange
$key string
$name string
$column string
리턴 Ublaboo\DataGrid\Filter\FilterRange

addFilterSelect() 공개 메소드

Add select box filter
public addFilterSelect ( string $key, string $name, array $options, string $column = NULL ) : FilterSelect
$key string
$name string
$options array
$column string
리턴 Ublaboo\DataGrid\Filter\FilterSelect

addFilterText() 공개 메소드

Add filter fot text search
public addFilterText ( string $key, string $name, array | string $columns = NULL ) : FilterText
$key string
$name string
$columns array | string
리턴 Ublaboo\DataGrid\Filter\FilterText

addGroupAction() 공개 메소드

Alias for add group select action
public addGroupAction ( string $title, array $options = [] ) : GroupAction
$title string
$options array
리턴 Ublaboo\DataGrid\GroupAction\GroupAction

addGroupSelectAction() 공개 메소드

Add group action (select box)
public addGroupSelectAction ( string $title, array $options = [] ) : GroupAction
$title string
$options array
리턴 Ublaboo\DataGrid\GroupAction\GroupAction

addGroupTextAction() 공개 메소드

Add group action (text input)
public addGroupTextAction ( string $title ) : GroupAction
$title string
리턴 Ublaboo\DataGrid\GroupAction\GroupAction

addGroupTextareaAction() 공개 메소드

Add group action (textarea)
public addGroupTextareaAction ( string $title ) : GroupAction
$title string
리턴 Ublaboo\DataGrid\GroupAction\GroupAction

addInlineAdd() 공개 메소드

public addInlineAdd ( ) : InlineEdit
리턴 Ublaboo\DataGrid\InlineEdit\InlineEdit

addInlineEdit() 공개 메소드

public addInlineEdit ( $primary_where_column = NULL ) : InlineEdit
리턴 Ublaboo\DataGrid\InlineEdit\InlineEdit

addMultiAction() 공개 메소드

public addMultiAction ( string $key, $name )
$key string

addToExports() 보호된 메소드

Add export to array
protected addToExports ( Export $export ) : Export
$export Ublaboo\DataGrid\Export\Export
리턴 Ublaboo\DataGrid\Export\Export

addToolbarButton() 공개 메소드

Add toolbar button
public addToolbarButton ( string $href, string $text = '', array $params = [] ) : ToolbarButton
$href string
$text string
$params array
리턴 Ublaboo\DataGrid\Toolbar\ToolbarButton

allowRowsAction() 공개 메소드

public allowRowsAction ( string $key, callable $condition ) : void
$key string
$condition callable
리턴 void

allowRowsGroupAction() 공개 메소드

public allowRowsGroupAction ( callable $condition ) : void
$condition callable
리턴 void

allowRowsInlineEdit() 공개 메소드

public allowRowsInlineEdit ( callable $condition ) : void
$condition callable
리턴 void

assableFilters() 공개 메소드

Fill array of Filter\Filter[] with values from $this->filter persistent parameter Fill array of Column\Column[] with values from $this->sort persistent parameter
public assableFilters ( ) : Filter[]
리턴 Ublaboo\DataGrid\Filter\Filter[] $this->filters === Filter\Filter[]

attached() 공개 메소드

{inheritDoc}
public attached ( $presenter ) : void
리턴 void

canHideColumns() 공개 메소드

Can datagrid hide colums?
public canHideColumns ( ) : boolean
리턴 boolean

createComponentFilter() 공개 메소드

FilterAndGroupAction form factory
public createComponentFilter ( ) : Nette\Application\UI\Form
리턴 Nette\Application\UI\Form

createComponentPaginator() 공개 메소드

Paginator factory
public createComponentPaginator ( ) : DataGridPaginator
리턴 Ublaboo\DataGrid\Components\DataGridPaginator\DataGridPaginator

createSorting() 보호된 메소드

protected createSorting ( array $sort, callable $sort_callback = NULL ) : void
$sort array
$sort_callback callable
리턴 void

createSorting() 보호된 메소드

protected createSorting ( array $sort, callable | null $sort_callback ) : void
$sort array
$sort_callback callable | null
리턴 void

deleteSessionData() 공개 메소드

Delete session data
public deleteSessionData ( $key ) : void
리턴 void

deleteSesssionData() 공개 메소드

Delete session data
사용 중단:
public deleteSesssionData ( $key ) : void
리턴 void

filterSucceeded() 공개 메소드

Set $this->filter values after filter form submitted
public filterSucceeded ( Nette\Application\UI\Form $form ) : void
$form Nette\Application\UI\Form
리턴 void

findDefaultFilter() 공개 메소드

User may set default filter, find it
public findDefaultFilter ( ) : void
리턴 void

findDefaultPerPage() 공개 메소드

User may set default "items per page" value, apply it
public findDefaultPerPage ( ) : void
리턴 void

findDefaultSort() 공개 메소드

User may set default sorting, apply it
public findDefaultSort ( ) : void
리턴 void

findSessionValues() 공개 메소드

Try to restore session stuff
public findSessionValues ( ) : void
리턴 void

getAction() 공개 메소드

Get existing action
public getAction ( string $key ) : Action
$key string
리턴 Ublaboo\DataGrid\Column\Action

getColumn() 공개 메소드

Return existing column
public getColumn ( string $key ) : Column
$key string
리턴 Ublaboo\DataGrid\Column\Column

getColumnCallback() 공개 메소드

public getColumnCallback ( string $key ) : callable | null
$key string
리턴 callable | null

getColumns() 공개 메소드

Get set of set columns
public getColumns ( ) : Column\IColumn[]
리턴 Column\IColumn[]

getColumnsCount() 공개 메소드

Get count of columns
public getColumnsCount ( ) : integer
리턴 integer

getColumnsSummary() 공개 메소드

public getColumnsSummary ( ) : ColumnsSummary | null
리턴 ColumnsSummary | null

getColumnsVisibility() 공개 메소드

getDataSource() 공개 메소드

public getDataSource ( ) : Ublaboo\DataGrid\DataSource\IDataSource | null
리턴 Ublaboo\DataGrid\DataSource\IDataSource | null

getFilter() 공개 메소드

Get defined filter
public getFilter ( string $key ) : Filter
$key string
리턴 Ublaboo\DataGrid\Filter\Filter

getFilterSubmitButton() 공개 메소드

Submit button when no auto-submitting is used
public getFilterSubmitButton ( ) : SubmitButton
리턴 Ublaboo\DataGrid\Filter\SubmitButton

getGroupActionCollection() 공개 메소드

Get collection of all group actions
public getGroupActionCollection ( ) : GroupActionCollection
리턴 Ublaboo\DataGrid\GroupAction\GroupActionCollection

getInlineAdd() 공개 메소드

public getInlineAdd ( ) : InlineEdit | null
리턴 Ublaboo\DataGrid\InlineEdit\InlineEdit | null

getInlineEdit() 공개 메소드

public getInlineEdit ( ) : InlineEdit | null
리턴 Ublaboo\DataGrid\InlineEdit\InlineEdit | null

getItemDetailForm() 공개 메소드

public getItemDetailForm ( ) : Container | null
리턴 Nette\Forms\Container | null

getItemsDetail() 공개 메소드

Get items detail parameters
public getItemsDetail ( ) : array
리턴 array

getItemsPerPageList() 공개 메소드

Get associative array of items_per_page_list
public getItemsPerPageList ( ) : array
리턴 array

getOriginalTemplateFile() 공개 메소드

Get DataGrid original template file
public getOriginalTemplateFile ( ) : string
리턴 string

getPaginator() 공개 메소드

Return current paginator class
public getPaginator ( ) : null | DataGridPaginator
리턴 null | Ublaboo\DataGrid\Components\DataGridPaginator\DataGridPaginator

getParent() 공개 메소드

public getParent ( ) : Nette\Application\UI\PresenterComponent
리턴 Nette\Application\UI\PresenterComponent

getPerPage() 공개 메소드

Get parameter per_page
public getPerPage ( ) : integer
리턴 integer

getPrimaryKey() 공개 메소드

Get primary key of datagrid data source
public getPrimaryKey ( ) : string
리턴 string

getRowCondition() 공개 메소드

public getRowCondition ( string $name, string | null $key = NULL ) : boolean | callable
$name string
$key string | null
리턴 boolean | callable

getSessionData() 공개 메소드

Get session data if functionality is enabled
public getSessionData ( string $key = NULL, $default_value = NULL ) : mixed
$key string
리턴 mixed

getSessionSectionName() 공개 메소드

Find some unique session key name
public getSessionSectionName ( ) : string
리턴 string

getSortNext() 공개 메소드

public getSortNext ( Column $column ) : array
$column Ublaboo\DataGrid\Column\Column
리턴 array

getSortableHandler() 공개 메소드

Return sortable handle name
public getSortableHandler ( ) : string
리턴 string

getSortableParentPath() 공개 메소드

public getSortableParentPath ( ) : strign
리턴 strign

getTemplateFile() 공개 메소드

Get DataGrid template file
public getTemplateFile ( ) : static
리턴 static

getTranslator() 공개 메소드

Get translator for datagrid
public getTranslator ( ) : Nette\Localization\ITranslator
리턴 Nette\Localization\ITranslator

handleActionCallback() 공개 메소드

public handleActionCallback ( $__key, $__id )

handleChangeStatus() 공개 메소드

Handler for column status
public handleChangeStatus ( string $id, string $key, string $value ) : void
$id string
$key string
$value string
리턴 void

handleEdit() 공개 메소드

Handler for inline editing
public handleEdit ( mixed $id, mixed $key ) : void
$id mixed
$key mixed
리턴 void

handleExport() 공개 메소드

Handler for export
public handleExport ( integer $id ) : void
$id integer Key for particular export class in array $this->exports
리턴 void

handleGetChildren() 공개 메소드

Handler for getting children of parent item (e.g. category)
public handleGetChildren ( integer $parent ) : void
$parent integer
리턴 void

handleGetItemDetail() 공개 메소드

Handler for getting item detail
public handleGetItemDetail ( mixed $id ) : void
$id mixed
리턴 void

handleHideColumn() 공개 메소드

Notice datagrid to not display particular columns
public handleHideColumn ( string $column ) : void
$column string
리턴 void

handleInlineEdit() 공개 메소드

public handleInlineEdit ( mixed $id ) : void
$id mixed
리턴 void

handlePage() 공개 메소드

Handler for changind page (just refresh site with page as persistent paramter set)
public handlePage ( integer $page ) : void
$page integer
리턴 void

handleRefreshState() 공개 메소드

Simply refresh url
public handleRefreshState ( ) : void
리턴 void

handleResetColumnFilter() 공개 메소드

public handleResetColumnFilter ( string $key ) : void
$key string
리턴 void

handleResetFilter() 공개 메소드

Handler for reseting the filter
public handleResetFilter ( ) : void
리턴 void

handleShowAllColumns() 공개 메소드

Tell datagrid to display all columns
public handleShowAllColumns ( ) : void
리턴 void

handleShowColumn() 공개 메소드

Reveal particular column
public handleShowColumn ( string $column ) : void
$column string
리턴 void

handleShowDefaultColumns() 공개 메소드

Tell datagrid to display default columns
public handleShowDefaultColumns ( ) : void
리턴 void

handleSort() 공개 메소드

Handler for sorting
public handleSort ( array $sort ) : void
$sort array
리턴 void

hasAutoSubmit() 공개 메소드

public hasAutoSubmit ( ) : boolean
리턴 boolean

hasCollapsibleOuterFilters() 공개 메소드

hasColumnReset() 공개 메소드

public hasColumnReset ( ) : boolean
리턴 boolean

hasColumnsSummary() 공개 메소드

Will datagrid show summary in the end?
public hasColumnsSummary ( ) : boolean
리턴 boolean

hasGroupActions() 공개 메소드

Has datagrid some group actions?
public hasGroupActions ( ) : boolean
리턴 boolean

hasOuterFilterRendering() 공개 메소드

Are datagrid filters rendered separately?

hasSomeColumnDefaultHide() 공개 메소드

Are some of columns hidden bydefault?

hasTreeViewChildrenCallback() 공개 메소드

Is tree view children callback set?

isFilterActive() 공개 메소드

Is filter active?
public isFilterActive ( ) : boolean
리턴 boolean

isMultiSortEnabled() 공개 메소드

Tell wether DataGrid can be sorted by multiple columns
public isMultiSortEnabled ( ) : boolean
리턴 boolean

isPaginated() 공개 메소드

Tell whether Grid is paginated
public isPaginated ( ) : boolean
리턴 boolean

isSortable() 공개 메소드

Tell whether DataGrid is sortable
public isSortable ( ) : boolean
리턴 boolean

isTreeView() 공개 메소드

Is tree view set?
public isTreeView ( ) : boolean
리턴 boolean

redrawItem() 공개 메소드

Redraw just one row via ajax
public redrawItem ( integer $id, mixed $primary_where_column = NULL ) : void
$id integer
$primary_where_column mixed
리턴 void

reload() 공개 메소드

Redraw $this
public reload ( $snippets = [] ) : void
리턴 void

removeAction() 공개 메소드

Remove action
public removeAction ( string $key ) : void
$key string
리턴 void

removeColumn() 공개 메소드

Remove column
public removeColumn ( string $key ) : void
$key string
리턴 void

removeFilter() 공개 메소드

Remove filter
public removeFilter ( string $key ) : void
$key string
리턴 void

render() 공개 메소드

Render template
public render ( ) : void
리턴 void

saveSessionData() 공개 메소드

Save session data - just if it is enabled
public saveSessionData ( string $key, mixed $value ) : void
$key string
$value mixed
리턴 void

sendNonEmptyFiltersInPayload() 공개 메소드

public sendNonEmptyFiltersInPayload ( Filter[] $filters ) : void
$filters Ublaboo\DataGrid\Filter\Filter[]
리턴 void

setAutoSubmit() 공개 메소드

Tell grid filters to by submitted automatically
public setAutoSubmit ( boolean $auto = TRUE )
$auto boolean

setCollapsibleOuterFilters() 공개 메소드

public setCollapsibleOuterFilters ( boolean $collapsible_outer_filters = TRUE )
$collapsible_outer_filters boolean

setColumnReset() 공개 메소드

public setColumnReset ( boolean $reset = TRUE ) : static
$reset boolean
리턴 static

setColumnsExportOrder() 공개 메소드

Columns order may be different for export and normal grid
public setColumnsExportOrder ( array $order )
$order array

setColumnsHideable() 공개 메소드

Order Grid to set columns hideable.
public setColumnsHideable ( ) : static
리턴 static

setColumnsOrder() 공개 메소드

Set order of datagrid columns
public setColumnsOrder ( array $order ) : static
$order array
리턴 static

setColumnsSummary() 공개 메소드

Set columns to be summarized in the end.
public setColumnsSummary ( array $columns, callable $rowCallback = NULL ) : ColumnsSummary
$columns array
$rowCallback callable
리턴 ColumnsSummary

setDataSource() 공개 메소드

Set Grid data source
public setDataSource ( Ublaboo\DataGrid\DataSource\IDataSource | array | DibiFluent | Selection | Doctrine\ORM\QueryBuilder $source ) : static
$source Ublaboo\DataGrid\DataSource\IDataSource | array | DibiFluent | Nette\Database\Table\Selection | Doctrine\ORM\QueryBuilder
리턴 static

setDefaultFilter() 공개 메소드

If we want to sent some initial filter
public setDefaultFilter ( array $default_filter, boolean $use_on_reset = TRUE ) : static
$default_filter array
$use_on_reset boolean
리턴 static

setDefaultPerPage() 공개 메소드

Set default "items per page" value in pagination select
public setDefaultPerPage ( $count ) : static
$count
리턴 static

setDefaultSort() 공개 메소드

Set default sorting
public setDefaultSort ( array $sort ) : static
$sort array
리턴 static

setDefaultSort() 공개 메소드

Set default sorting
public setDefaultSort ( array $sort, boolean $use_on_reset = TRUE ) : static
$sort array
$use_on_reset boolean
리턴 static

setFilter() 공개 메소드

Set filter values (force - overwrite user data)
public setFilter ( array $filter ) : static
$filter array
리턴 static

setFilterActive() 공개 메소드

Tell that filter is active from whatever reasons return static
public setFilterActive ( )

setFilterContainerDefaults() 공개 메소드

public setFilterContainerDefaults ( Container $container, array $values )
$container Nette\Forms\Container
$values array

setFilterContainerDefaults() 공개 메소드

public setFilterContainerDefaults ( Container $container, array | Iterator $values ) : void
$container Nette\Forms\Container
$values array | Iterator
리턴 void

setItemsDetail() 공개 메소드

Items can have thair detail - toggled
public setItemsDetail ( mixed $detail = TRUE, boolean | null $primary_where_column = NULL ) : ItemDetail
$detail mixed callable|string|bool
$primary_where_column boolean | null
리턴 Ublaboo\DataGrid\Column\ItemDetail

setItemsDetailForm() 공개 메소드

public setItemsDetailForm ( callable $callable_set_container ) : static
$callable_set_container callable
리턴 static

setItemsPerPageList() 공개 메소드

Set options of select "items_per_page"
public setItemsPerPageList ( array $items_per_page_list, $include_all = TRUE ) : static
$items_per_page_list array
리턴 static

setMultiSortEnabled() 공개 메소드

Enable multi-sorting capability
public setMultiSortEnabled ( boolean $multiSort = TRUE ) : void
$multiSort boolean
리턴 void

setOuterFilterRendering() 공개 메소드

Should be datagrid filters rendered separately?
public setOuterFilterRendering ( boolean $out = TRUE ) : static
$out boolean
리턴 static

setPagination() 공개 메소드

Order Grid to "be paginated"
public setPagination ( boolean $do ) : static
$do boolean
리턴 static

setPrimaryKey() 공개 메소드

By default ID, you can change that
public setPrimaryKey ( string $primary_key ) : static
$primary_key string
리턴 static

setRefreshUrl() 공개 메소드

Should datagrid refresh url using history API?
public setRefreshUrl ( boolean $refresh = TRUE ) : static
$refresh boolean
리턴 static

setRememberState() 공개 메소드

Should datagrid remember its filters/pagination/etc using session?
public setRememberState ( boolean $remember = TRUE ) : static
$remember boolean
리턴 static

setRowCallback() 공개 메소드

Each row can be modified with user callback
public setRowCallback ( callable $callback ) : static
$callback callable
리턴 static

setSomeColumnDefaultHide() 공개 메소드

Some of datagrid columns is hidden by default
public setSomeColumnDefaultHide ( boolean $default_hide )
$default_hide boolean

setSortable() 공개 메소드

Set grido to be sortable
public setSortable ( boolean $sortable = TRUE ) : static
$sortable boolean
리턴 static

setSortableHandler() 공개 메소드

Set sortable handle
public setSortableHandler ( string $handler = 'sort!' ) : static
$handler string
리턴 static

setStrictSessionFilterValues() 공개 메소드

public setStrictSessionFilterValues ( boolean $strict = TRUE )
$strict boolean

setTemplateFile() 공개 메소드

Set custom template file to render
public setTemplateFile ( string $template_file ) : static
$template_file string
리턴 static

setTranslator() 공개 메소드

Set datagrid translator
public setTranslator ( Nette\Localization\ITranslator $translator ) : static
$translator Nette\Localization\ITranslator
리턴 static

setTreeView() 공개 메소드

Setting tree view
public setTreeView ( callable $get_children_callback, string | callable $tree_view_has_children_column = 'has_children' ) : static
$get_children_callback callable
$tree_view_has_children_column string | callable
리턴 static

treeViewChildrenCallback() 공개 메소드

public treeViewChildrenCallback ( mixed $item ) : boolean
$item mixed
리턴 boolean

useHappyComponents() 공개 메소드

Tell datagrid wheteher to use or not happy components
public useHappyComponents ( boolean | null $use = NULL ) : void | boolean
$use boolean | null If not given, return value of static::$use_happy_components
리턴 void | boolean

프로퍼티 상세

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

protected Action[],Ublaboo\DataGrid\Column $actions
리턴 Ublaboo\DataGrid\Column\Action[]

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

protected bool $auto_submit
리턴 boolean

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

protected bool $can_hide_columns
리턴 boolean

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

protected bool $collapsible_outer_filters
리턴 boolean

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

protected array $column_callbacks
리턴 array

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

protected Column\IColumn[] $columns
리턴 Column\IColumn[]

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

protected ColumnsSummary,Ublaboo\DataGrid $columnsSummary
리턴 ColumnsSummary

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

protected array $columns_export_order
리턴 array

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

protected array $columns_visibility
리턴 array

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

protected bool $csv_export
리턴 boolean

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

protected bool $csv_export_filtered
리턴 boolean

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

protected DataFilter $dataFilter
리턴 DataFilter

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

protected DataModel,Ublaboo\DataGrid $dataModel
리턴 DataModel

$default_filter 공개적으로 프로퍼티

public array $default_filter
리턴 array

$default_filter_use_on_reset 공개적으로 프로퍼티

public bool $default_filter_use_on_reset
리턴 boolean

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

protected int $default_per_page
리턴 integer

$default_sort 공개적으로 프로퍼티

public array $default_sort
리턴 array

$default_sort_use_on_reset 공개적으로 프로퍼티

public bool $default_sort_use_on_reset
리턴 boolean

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

protected bool $do_paginate
리턴 boolean

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

protected Export[],Ublaboo\DataGrid\Export $exports
리턴 Ublaboo\DataGrid\Export\Export[]

$filter 공개적으로 프로퍼티

public array $filter
리턴 array

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

protected SubmitButton,Ublaboo\DataGrid\Filter|NULL $filter_submit_button
리턴 Ublaboo\DataGrid\Filter\SubmitButton | null

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

protected Filter[],Ublaboo\DataGrid\Filter $filters
리턴 Ublaboo\DataGrid\Filter\Filter[]

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

protected bool $force_filter_active
리턴 boolean

$form_method 공개적으로 정적으로 프로퍼티

Default form method
public static string $form_method
리턴 string

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

protected SessionSection,Nette\Http $grid_session
리턴 Nette\Http\SessionSection

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

protected GroupActionCollection,Ublaboo\DataGrid\GroupAction $group_action_collection
리턴 Ublaboo\DataGrid\GroupAction\GroupActionCollection

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

protected bool $has_column_reset
리턴 boolean

$icon_prefix 공개적으로 정적으로 프로퍼티

public static string $icon_prefix
리턴 string

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

protected InlineEdit,Ublaboo\DataGrid\InlineEdit $inlineAdd
리턴 Ublaboo\DataGrid\InlineEdit\InlineEdit

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

protected InlineEdit,Ublaboo\DataGrid\InlineEdit $inlineEdit
리턴 Ublaboo\DataGrid\InlineEdit\InlineEdit

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

protected ItemDetail,Ublaboo\DataGrid\Column $items_detail
리턴 Ublaboo\DataGrid\Column\ItemDetail

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

protected array $items_per_page_list
리턴 array

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

protected bool $multiSort
리턴 boolean

$onColumnAdd 공개적으로 프로퍼티

public callable[] $onColumnAdd
리턴 callable[]

$onExport 공개적으로 프로퍼티

public callable[] $onExport
리턴 callable[]

$onFiltersAssabled 공개적으로 프로퍼티

public callable[] $onFiltersAssabled
리턴 callable[]

$onRedraw 공개적으로 프로퍼티

public callable[] $onRedraw
리턴 callable[]

$onRender 공개적으로 프로퍼티

public callable[] $onRender
리턴 callable[]

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

protected string $original_template
리턴 string

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

protected bool $outer_filter_rendering
리턴 boolean

$page 공개적으로 프로퍼티

public int $page
리턴 integer

$per_page 공개적으로 프로퍼티

public int|string $per_page
리턴 integer | string

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

protected string $primary_key
리턴 string

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

protected array $redraw_item
리턴 array

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

protected bool $refresh_url
리턴 boolean

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

protected bool $remember_state
리턴 boolean

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

protected callable $rowCallback
리턴 callable

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

protected array $row_conditions
리턴 array

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

protected bool $snippets_set
리턴 boolean

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

protected bool $some_column_default_hide
리턴 boolean

$sort 공개적으로 프로퍼티

public array $sort
리턴 array

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

protected callable|null $sort_callback
리턴 callable | null

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

protected bool $sortable
리턴 boolean

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

protected string $sortable_handler
리턴 string

$strict_entity_property 공개적으로 프로퍼티

When set to TRUE, datagrid throws an exception when tring to get related entity within join and entity does not exist
public bool $strict_entity_property
리턴 boolean

$strict_session_filter_values 공개적으로 프로퍼티

When set to TRUE, datagrid throws an exception when tring to set filter value, that does not exist (select, multiselect, etc)
public bool $strict_session_filter_values
리턴 boolean

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

protected string $template_file
리턴 string

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

protected ToolbarButton[],Ublaboo\DataGrid\Toolbar $toolbar_buttons
리턴 Ublaboo\DataGrid\Toolbar\ToolbarButton[]

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

protected mixed $translator
리턴 mixed

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

protected callable $tree_view_children_callback
리턴 callable

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

protected callable $tree_view_has_children_callback
리턴 callable

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

protected string $tree_view_has_children_column
리턴 string

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

protected bool $use_happy_components
리턴 boolean