PHP Class WhGroupGridView

A Grid View that groups rows by any column(s)
See also: http://groupgridview.demopage.ru
Author: Antonio Ramirez ([email protected])
Author: Vitaliy Potapov ([email protected])
Inheritance: extends TbGridView
Mostrar archivo Open project: 2amigos/yiiwheels

Public Properties

Property Type Description
$extraRowColumns array the group column names
$extraRowCssClass string the class to be used to be set on the extrarow cell tag.
$extraRowExpression string
$extraRowHtmlOptions the HTML options for the extrarow cell tag.
$mergeCellCss string
$mergeColumns array the columns to merge on the grid
$mergeType string the merge type. Defaults to MERGE_SIMPLE

Public Methods

Method Description
groupByColumns ( ) Find and store changing of group columns
init ( ) Widget initialization
renderTableBody ( ) Renders the table body.
renderTableRow ( integer $row ) Renders a table body row.

Private Methods

Method Description
getDataCellContent ( TbDataColumn $column, mixed $data, mixed $row ) : string need to rewrite this function as it is protected in CDataColumn: it is strange as all methods inside are public
getRowValues ( string[] | TbDataColumn[] $columns, CActiveRecord $data, mixed $rowIndex ) : mixed Returns array of rendered column values (TD)
renderExtraRow ( mixed $beforeRow, mixed $change, array $columnsInExtra ) Renders extra row

Method Details

groupByColumns() public method

Find and store changing of group columns
public groupByColumns ( )

init() public method

Widget initialization
public init ( )

renderTableBody() public method

Renders the table body.
public renderTableBody ( )

renderTableRow() public method

Renders a table body row.
public renderTableRow ( integer $row )
$row integer

Property Details

$extraRowColumns public_oe property

the group column names
public array $extraRowColumns
return array

$extraRowCssClass public_oe property

the class to be used to be set on the extrarow cell tag.
public string $extraRowCssClass
return string

$extraRowExpression public_oe property

public string $extraRowExpression
return string

$extraRowHtmlOptions public_oe property

the HTML options for the extrarow cell tag.
public $extraRowHtmlOptions

$mergeCellCss public_oe property

public string $mergeCellCss
return string

$mergeColumns public_oe property

the columns to merge on the grid
public array $mergeColumns
return array

$mergeType public_oe property

the merge type. Defaults to MERGE_SIMPLE
public string $mergeType
return string