PHP Класс WhGroupGridView

A Grid View that groups rows by any column(s)
См. также: http://groupgridview.demopage.ru
Автор: Antonio Ramirez ([email protected])
Автор: Vitaliy Potapov ([email protected])
Наследование: extends TbGridView
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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

Открытые методы

Метод Описание
groupByColumns ( ) Find and store changing of group columns
init ( ) Widget initialization
renderTableBody ( ) Renders the table body.
renderTableRow ( integer $row ) Renders a table body row.

Приватные методы

Метод Описание
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

Описание методов

groupByColumns() публичный Метод

Find and store changing of group columns
public groupByColumns ( )

init() публичный Метод

Widget initialization
public init ( )

renderTableBody() публичный Метод

Renders the table body.
public renderTableBody ( )

renderTableRow() публичный Метод

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

Описание свойств

$extraRowColumns публичное свойство

the group column names
public array $extraRowColumns
Результат array

$extraRowCssClass публичное свойство

the class to be used to be set on the extrarow cell tag.
public string $extraRowCssClass
Результат string

$extraRowExpression публичное свойство

public string $extraRowExpression
Результат string

$extraRowHtmlOptions публичное свойство

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

$mergeCellCss публичное свойство

public string $mergeCellCss
Результат string

$mergeColumns публичное свойство

the columns to merge on the grid
public array $mergeColumns
Результат array

$mergeType публичное свойство

the merge type. Defaults to MERGE_SIMPLE
public string $mergeType
Результат string