Метод | Описание | |
---|---|---|
__construct ( array $data, string $viewName = '' ) | Sets column data provided by user with addColumn method | |
content ( null | stdClass | array $row = null ) : string | Returns column content (depends on column configuration) | |
getDatabaseName ( ) : null | string | Returns column's database name | |
hasRenderer ( ) : boolean | Checks whether column has a defined renderer | |
index ( ) : null | string | Returns column index | |
label ( ) : string | Returns column label - to be used by view when rendering table | |
options ( ) : array | Returns column array with options for searchable form | |
queryConditionType ( ) : string | Returns query condition type By default ->where(. | |
renderer ( stdClass $row ) : mixed | Returns renderer result (if exists) or null when not defined | |
searchType ( ) : string | Returns column search type (if valid and provided) | |
searchable ( ) : boolean | Checks if column is searchable | |
searchableContent ( array $config = [] ) : string | Returns HTML with column search field | |
sortActive ( ) : boolean | Checks whether column is active by current sort index | |
sortDirection ( ) : string | Returns current column's sort direction | |
sortUrl ( ) : string | Returns column sort link | |
sortable ( ) : boolean | Checks whether column is sortable |
Метод | Описание | |
---|---|---|
_getSortAnchor ( ) : string | Returns column sort anchor (result depends on view name) | |
_optionsHTML ( ) : string | Returns HTML with select options for searchable column | |
_sortDirection ( ) : string | Returns current sort direction (order_dir) Returns default direction if not defined | |
_sortIndex ( ) : string | null | Returns current sort index (order_by) |
public __construct ( array $data, string $viewName = '' ) | ||
$data | array | |
$viewName | string | - used when calling content method |
public getDatabaseName ( ) : null | string | ||
Результат | null | string |
public hasRenderer ( ) : boolean | ||
Результат | boolean |
public queryConditionType ( ) : string | ||
Результат | string |
public searchType ( ) : string | ||
Результат | string |
public searchable ( ) : boolean | ||
Результат | boolean |
public searchableContent ( array $config = [] ) : string | ||
$config | array | |
Результат | string |
public sortActive ( ) : boolean | ||
Результат | boolean |
public sortDirection ( ) : string | ||
Результат | string |