Method |
Description |
|
addButton ( string | array $label, string $class = 'Button' ) : Button |
Adds button. |
|
addColumn ( mixed $formatters, string $name = null, string | array $descr = null ) |
Add column to grid. |
|
addFormatter ( string $field, mixed $formatter, array $options = null ) |
Add extra formatter to existing field. |
|
applyTDParams ( string $field, SQLite &$row_template = null ) |
Apply TD parameters in appropriate template. |
|
defaultTemplate ( ) : array |
Default template. |
|
executeFormatters ( string $field, array $column, string $formatter_prefix = 'format_', boolean $silent = false ) |
Format field value using appropriate formatters. |
|
formatRow ( ) |
Format grid row. |
|
format_text ( string $field ) |
Default formatter. |
|
getColumn ( string $name ) |
Set column as "last column". |
|
hasColumn ( string $name ) : boolean |
Check if we have such column. |
|
importFields ( Model $model, array $fields = UNDEFINED ) |
Import fields using controller. |
|
init ( ) |
Initialization. |
|
initWidget ( ) |
You might want Grid to be enchanced with a widget. Initialize it here
or define this as empty function to avoid. |
|
precacheTemplate ( ) |
Precaches template chunks. |
|
removeColumn ( string $name ) |
Remove column from grid. |
|
renderRows ( ) |
Render grid rows. |
|
setCaption ( string $name ) |
Set caption of column. |
|
setFormatter ( string $field, mixed $formatter, $options = null ) |
Replace current formatter for field. |
|
setNoRecordsMessage ( string $message ) |
Set message to show when no records are retrieved. |
|