메소드 | 설명 | |
---|---|---|
__construct ( |
Sets builder object | |
addColumn ( array $data ) | Adds column to resource table | |
customView ( string $name ) | Sets custom view name for further rendering | |
filter ( boolean $enabled ) | Sets true if filter should be rendered | |
getSort ( ) : array | Returns $_sort variable | |
make ( ) : string | Returns HTML with resource table | |
page ( integer $page ) | Sets $_page variable | |
paginate ( boolean $paginate ) | Sets $_paginate variable | |
perPage ( integer $perPage ) | Sets $_perPage variable | |
renderFilterForm ( ) : boolean | Checks if filter form should be generated | |
rendererNamespace ( ) : string | Returns renderer default namespace | |
resetFormUrl ( ) : string | Returns URL to reset search form | |
setExtraViewData ( array $data ) | Sets extra (custom) view data | |
setPaginationPresenter ( string $presenter ) | Sets $_paginationPresenter object name | |
setRendererNamespace ( string $namespace ) | Set renderer default namespace to prevent long class names | |
sort ( string $index, string $direction ) | Sets sort configuration | |
view ( string $name ) | Sets package view name for further rendering |
메소드 | 설명 | |
---|---|---|
_addQueryCondition ( |
Adds condition to the query builder | |
_getCountForPagination ( |
Returns total results for given query | |
_getPaginatorPresenter ( array $items ) : mixed | Returns Paginator Presenter object if pagination is enabled | |
_prepareBuilder ( ) | Prepares builder object before calling get method on it | |
_prepareFilterValue ( array $column, mixed $value ) : mixed | Basing on column configuration prepares given field value If column configuration has filter function - use it to prepare value | |
_setView ( string $name, boolean $custom = false ) | Sets view name for further rendering | |
_validSort ( array $params ) : boolean | Checks if provided order configuration (from GET) is valid | |
_validateColumn ( array $data ) : boolean | string | Checks if provided column data is valid Returns bool if it's valid Returns string it it's not valid |
public __construct ( |
||
$builder |
public customView ( string $name ) | ||
$name | string |
public renderFilterForm ( ) : boolean | ||
리턴 | boolean |
public rendererNamespace ( ) : string | ||
리턴 | string |
public setExtraViewData ( array $data ) | ||
$data | array |
public setPaginationPresenter ( string $presenter ) | ||
$presenter | string |
public setRendererNamespace ( string $namespace ) | ||
$namespace | string |