PHP Класс kartik\grid\FormulaColumn

DataColumn is the default column type for the GridView widget.
С версии: 1.0
Автор: Kartik Visweswaran ([email protected])
Наследование: extends DataColumn
Показать файл Открыть проект

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

Свойство Тип Описание
$autoFooter automatically generate the footer. If set to true, it will use the same formula to generate the footer. If set to false, will use the default footer.

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

Метод Описание
col ( integer $i, array $params = [] ) : string Gets the value of a column

Защищенные методы

Метод Описание
getFooterCellContent ( ) : string Get the raw footer cell content.
renderFooterCellContent ( ) : string Formatted footer cell content.

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

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

Gets the value of a column
public col ( integer $i, array $params = [] ) : string
$i integer the index of the grid column (the first column in the grid will be zero indexed). Note a column's index is to be considered, even if the `visible` property is set to false.
$params array which will contain these keys: - `model`: _yii\base\Model`, the data model being rendered - `key`: _string|object_, the key associated with the data model - `index`: _integer_, the zero-based index of the data item among the item array returned by [[GridView::dataProvider]]. - widget: _FormulaColumn_, the current column widget instance
Результат string

getFooterCellContent() защищенный Метод

Get the raw footer cell content.
protected getFooterCellContent ( ) : string
Результат string the rendering result

renderFooterCellContent() защищенный Метод

Formatted footer cell content.
protected renderFooterCellContent ( ) : string
Результат string the rendering result

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

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

automatically generate the footer. If set to true, it will use the same formula to generate the footer. If set to false, will use the default footer.
public $autoFooter