PHP Class Ublaboo\DataGrid\ColumnsSummary

Afficher le fichier Open project: ublaboo/datagrid

Protected Properties

Свойство Type Description
$datagrid DataGrid
$format array
$rowCallback null | callable
$summary array

Méthodes publiques

Méthode Description
__construct ( DataGrid $datagrid, array $columns, $rowCallback )
add ( Row $row )
render ( string $key ) : mixed
setFormat ( string $key, integer $decimals, string $dec_point = '.', string $thousands_sep = ' ' ) Set number format
someColumnsExist ( array $columns ) : boolean

Private Methods

Méthode Description
getValue ( Row $row, Column $column ) : boolean Get value from column using Row::getValue() or custom callback

Method Details

__construct() public méthode

public __construct ( DataGrid $datagrid, array $columns, $rowCallback )
$datagrid DataGrid
$columns array

add() public méthode

public add ( Row $row )
$row Row

render() public méthode

public render ( string $key ) : mixed
$key string
Résultat mixed

setFormat() public méthode

Set number format
public setFormat ( string $key, integer $decimals, string $dec_point = '.', string $thousands_sep = ' ' )
$key string
$decimals integer
$dec_point string
$thousands_sep string

someColumnsExist() public méthode

public someColumnsExist ( array $columns ) : boolean
$columns array
Résultat boolean

Property Details

$datagrid protected_oe property

protected DataGrid,Ublaboo\DataGrid $datagrid
Résultat DataGrid

$format protected_oe property

protected array $format
Résultat array

$rowCallback protected_oe property

protected NULL|callable $rowCallback
Résultat null | callable

$summary protected_oe property

protected array $summary
Résultat array