HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
TbJsonGridView Class Reference
Inheritance diagram for TbJsonGridView:
Collaboration diagram for TbJsonGridView:

Public Member Functions

 init ()
 run ()
 renderPager ()
 renderItems ()
 renderSummary ()
 renderTemplate ($id, $text)
 renderTableBody ()

Public Attributes

 $json
 $template = "{pager}\n{items}\n{summary}\n{pager}"
 $cacheTTL = 1
 $cacheTTLType = 's'
 $localCache = true
 $pager = array('class' => 'booster.widgets.TbJsonPager')
- Public Attributes inherited from TbGridView
const TYPE_STRIPED = 'striped'
const TYPE_BORDERED = 'bordered'
const TYPE_CONDENSED = 'condensed'
const TYPE_HOVER = 'hover'
 $type
 $pagerCssClass = 'no-class'
 $pager = array('class' => 'booster.widgets.TbPager')
 $cssFile = false
 $responsiveTable = false
 $extraParams = array()

Protected Member Functions

 initColumns ()
 renderTemplates ()
 renderTableRowJSON ($row)
 createDataColumn ($text)

Protected Attributes

 $_showSummary

Detailed Description

Definition at line 21 of file TbJsonGridView.php.

Member Function Documentation

TbJsonGridView::createDataColumn (   $text)
protected

Creates a column based on a shortcut column specification string.

Parameters
mixed$textthe column specification string
Returns
|| the column instance
Exceptions
CExceptionif the column format is incorrect

Reimplemented from TbGridView.

Definition at line 364 of file TbJsonGridView.php.

TbJsonGridView::init ( )

Initializes $json property to find out whether ajax request or not

Reimplemented from TbGridView.

Definition at line 65 of file TbJsonGridView.php.

TbJsonGridView::initColumns ( )
protected

Creates column objects and initializes them.

Reimplemented from TbGridView.

Definition at line 127 of file TbJsonGridView.php.

TbJsonGridView::renderItems ( )

Renders the data items for the grid view.

Definition at line 141 of file TbJsonGridView.php.

Here is the call graph for this function:

TbJsonGridView::renderPager ( )

Renders the pager.

Definition at line 95 of file TbJsonGridView.php.

TbJsonGridView::renderSummary ( )

Definition at line 166 of file TbJsonGridView.php.

TbJsonGridView::renderTableBody ( )

Renders the table body.

Definition at line 228 of file TbJsonGridView.php.

Here is the caller graph for this function:

TbJsonGridView::renderTableRowJSON (   $row)
protected

Renders a table body row for JSON requests - assumed ajax is for JSON

Parameters
integer$row
Returns
array

Definition at line 335 of file TbJsonGridView.php.

TbJsonGridView::renderTemplate (   $id,
  $text 
)

Encloses the given JavaScript within a script tag.

Parameters
string$id
string$textthe JavaScript to be enclosed
Returns
string the enclosed JavaScript

Definition at line 220 of file TbJsonGridView.php.

Here is the caller graph for this function:

TbJsonGridView::renderTemplates ( )
protected

Renders the required templates for the client engine (jqote2 used)

Definition at line 191 of file TbJsonGridView.php.

Here is the call graph for this function:

Here is the caller graph for this function:

TbJsonGridView::run ( )

Renders the view. This is the main entry of the whole view rendering. Child classes should mainly override renderContent method.

Definition at line 82 of file TbJsonGridView.php.

Member Data Documentation

TbJsonGridView::$_showSummary
protected

Definition at line 60 of file TbJsonGridView.php.

TbJsonGridView::$cacheTTL = 1

Definition at line 36 of file TbJsonGridView.php.

TbJsonGridView::$cacheTTLType = 's'

Definition at line 44 of file TbJsonGridView.php.

TbJsonGridView::$json

Definition at line 26 of file TbJsonGridView.php.

TbJsonGridView::$localCache = true

Definition at line 49 of file TbJsonGridView.php.

TbJsonGridView::$pager = array('class' => 'booster.widgets.TbJsonPager')

Definition at line 55 of file TbJsonGridView.php.

TbJsonGridView::$template = "{pager}\n{items}\n{summary}\n{pager}"

Definition at line 31 of file TbJsonGridView.php.


The documentation for this class was generated from the following file: