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

Public Member Functions

 init ()
 registerClientScript ()
 renderTableBody ()
 groupByColumns ()
 renderTableRow ($row)

Public Attributes

const MERGE_SIMPLE = 'simple'
const MERGE_NESTED = 'nested'
const MERGE_FIRSTROW = 'firstrow'
 $mergeColumns = array()
 $mergeType = self::MERGE_SIMPLE
 $mergeCellCss = 'text-align: center; vertical-align: middle'
 $extraRowColumns = array()
 $extraRowExpression
 $extraRowHtmlOptions = array()
 $extraRowCssClass = 'extrarow'
- 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()

Private Member Functions

 getRowValues ($columns, $data, $rowIndex)
 renderExtraRow ($beforeRow, $change, $columnsInExtra)
 getDataCellContent ($column, $data, $row)

Private Attributes

 $_changes

Additional Inherited Members

- Protected Member Functions inherited from TbGridView
 initColumns ()
 createDataColumn ($text)

Detailed Description

Definition at line 24 of file TbGroupGridView.php.

Member Function Documentation

TbGroupGridView::getDataCellContent (   $column,
  $data,
  $row 
)
private

need to rewrite this function as it is protected in CDataColumn: it is strange as all methods inside are public

Parameters
TbDataColumn$column
mixed$row
mixed$data
Returns
string

Definition at line 412 of file TbGroupGridView.php.

Here is the caller graph for this function:

TbGroupGridView::getRowValues (   $columns,
  $data,
  $rowIndex 
)
private

returns array of rendered column values (TD)

Parameters
string[]|TbDataColumn[]$columns
CActiveRecord$data
mixed$rowIndex
Exceptions
CException
Returns
mixed

Definition at line 351 of file TbGroupGridView.php.

Here is the call graph for this function:

Here is the caller graph for this function:

TbGroupGridView::groupByColumns ( )

find and store changing of group columns

if this flag = true -> we will write change (to $this->_changes) for all grouping columns. It's required when change of any column from extraRowColumns occurs

this changeOccurred related to foreach below. It is required only for mergeType == self::MERGE_NESTED, to write change for all nested columns when change of previous column occurred

Definition at line 165 of file TbGroupGridView.php.

Here is the call graph for this function:

Here is the caller graph for this function:

TbGroupGridView::init ( )

Widget initialization

check whether we have extraRowColumns set, forbid filters

setup extra row options

Reimplemented from TbGridView.

Definition at line 74 of file TbGroupGridView.php.

TbGroupGridView::registerClientScript ( )

Registers necessary client scripts.

Definition at line 102 of file TbGroupGridView.php.

TbGroupGridView::renderExtraRow (   $beforeRow,
  $change,
  $columnsInExtra 
)
private

renders extra row

Parameters
mixed$beforeRow
mixed$change
array$columnsInExtra

Definition at line 376 of file TbGroupGridView.php.

Here is the caller graph for this function:

TbGroupGridView::renderTableBody ( )

Renders the table body.

Definition at line 153 of file TbGroupGridView.php.

Here is the call graph for this function:

TbGroupGridView::renderTableRow (   $row)

Renders a table body row.

Parameters
int$row

Definition at line 271 of file TbGroupGridView.php.

Here is the call graph for this function:

Member Data Documentation

TbGroupGridView::$_changes
private

Definition at line 69 of file TbGroupGridView.php.

TbGroupGridView::$extraRowColumns = array()

Definition at line 49 of file TbGroupGridView.php.

TbGroupGridView::$extraRowCssClass = 'extrarow'

Definition at line 64 of file TbGroupGridView.php.

string TbGroupGridView::$extraRowExpression

Definition at line 54 of file TbGroupGridView.php.

TbGroupGridView::$extraRowHtmlOptions = array()

Definition at line 59 of file TbGroupGridView.php.

TbGroupGridView::$mergeCellCss = 'text-align: center; vertical-align: middle'

Definition at line 44 of file TbGroupGridView.php.

TbGroupGridView::$mergeColumns = array()

Definition at line 34 of file TbGroupGridView.php.

TbGroupGridView::$mergeType = self::MERGE_SIMPLE

Definition at line 39 of file TbGroupGridView.php.

const TbGroupGridView::MERGE_FIRSTROW = 'firstrow'

Definition at line 29 of file TbGroupGridView.php.

const TbGroupGridView::MERGE_NESTED = 'nested'

Definition at line 28 of file TbGroupGridView.php.

string $mergeType the merge type Defaults to TbGroupGridView::MERGE_SIMPLE = 'simple'

Definition at line 27 of file TbGroupGridView.php.


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