Property | Type | Description | |
---|---|---|---|
$cacheTTL | integer | how long we keep the responses on cache? It will depend on cacheTTLType (seconds, minutes, hours) | |
$cacheTTLType | the type of cache duration s: seconds m: minutes h: hours | ||
$json | boolean | true when there is an AJAX request. TbJsonGridView expect a JSON response. | |
$localCache | boolean | whether we use client ajax cache or not. True by default. | |
$pager | the configuration for the pager.
Defaults to array('class'=>'ext.bootstrap.widgets.TbPager') . |
||
$template | string | Overridden standard template to add second pager on top. |
Method | Description | |
---|---|---|
init ( ) | Initializes $json property to find out whether ajax request or not | |
registerClientScript ( ) | Registers necessary client scripts. | |
renderItems ( ) | Renders the data items for the grid view. | |
renderPager ( ) | Renders the pager. | |
renderTableBody ( ) | Renders the table body. | |
renderTableRow ( integer $row ) | Renders a table body row. | |
renderTemplate ( string $id, string $text ) : string | Encloses the given JavaScript within a script tag. | |
run ( ) | Renders the view. |
Method | Description | |
---|---|---|
createDataColumn ( mixed $text ) : TbJSONDataColumn | TbDataColumn | CDataColumn | Creates a column based on a shortcut column specification string. | |
initColumns ( ) | Creates column objects and initializes them. | |
renderTableBodyJSON ( integer $rows ) : array | Renders the body table for JSON requests - assumed ajax is for JSON | |
renderTableRowJSON ( integer $row ) : array | Renders a table body row for JSON requests - assumed ajax is for JSON | |
renderTemplates ( ) | Renders the required templates for the client engine (jqote2 used) |
protected createDataColumn ( mixed $text ) : TbJSONDataColumn | TbDataColumn | CDataColumn | ||
$text | mixed | the column specification string |
return | TbJSONDataColumn | TbDataColumn | CDataColumn | the column instance |
public init ( ) |
protected initColumns ( ) |
public registerClientScript ( ) |
protected renderTableBodyJSON ( integer $rows ) : array | ||
$rows | integer | |
return | array |
public renderTableRow ( integer $row ) | ||
$row | integer | the row number (zero-based). |
protected renderTableRowJSON ( integer $row ) : array | ||
$row | integer | |
return | array |
protected renderTemplates ( ) |
public run ( ) |
public int $cacheTTL | ||
return | integer |
public $cacheTTLType |
public bool $json | ||
return | boolean |
public bool $localCache | ||
return | boolean |
array('class'=>'ext.bootstrap.widgets.TbPager')
. public $pager |
public string $template | ||
return | string |