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
파일 보기 프로젝트 열기: 2amigos/yiiwheels

공개 프로퍼티들

프로퍼티 타입 설명
$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