PHP Class Ublaboo\DataGrid\Column\ItemDetail

Inheritance: extends Ublaboo\DataGrid\Object
Afficher le fichier Open project: ublaboo/datagrid Class Usage Examples

Protected Properties

Свойство Type Description
$form Ublaboo\DataGrid\Utils\ItemDetailForm
$grid Ublaboo\DataGrid\DataGrid
$primary_where_column string | boolean
$render_condition_callback callable
$renderer callable
$template string
$template_parameters array
$type string (renderer | template | block)

Méthodes publiques

Méthode Description
__construct ( DataGrid $grid, string $primary_where_column )
getForm ( ) : ItemDetailForm
getPrimaryWhereColumn ( ) : string | boolean Get primary column for where clause
getRenderer ( ) : callable Get item detail renderer
getTemplate ( ) : string Get item detail template
getTemplateVariables ( )
getType ( ) : string Get item detail type
render ( mixed $item ) : mixed Render item detail
renderButton ( Row $row ) : Nette\Utils\Html Render row item detail button
renderButton ( Row $row ) : Nette\Utils\Html Render row item detail button
setForm ( ItemDetailForm $form ) : static
setRenderCondition ( callable $condition ) : static
setRenderer ( callable $renderer ) Set item detail renderer
setTemplate ( string $template ) Set item detail template
setTemplateParameters ( array $template_parameters ) : static
setType ( string $type ) Set item detail type
shouldBeRendered ( Row $row ) : boolean

Method Details

__construct() public méthode

public __construct ( DataGrid $grid, string $primary_where_column )
$grid Ublaboo\DataGrid\DataGrid
$primary_where_column string

getForm() public méthode

public getForm ( ) : ItemDetailForm
Résultat Ublaboo\DataGrid\Utils\ItemDetailForm

getPrimaryWhereColumn() public méthode

Get primary column for where clause
public getPrimaryWhereColumn ( ) : string | boolean
Résultat string | boolean

getRenderer() public méthode

Get item detail renderer
public getRenderer ( ) : callable
Résultat callable

getTemplate() public méthode

Get item detail template
public getTemplate ( ) : string
Résultat string

getTemplateVariables() public méthode

getType() public méthode

Get item detail type
public getType ( ) : string
Résultat string

render() public méthode

Render item detail
public render ( mixed $item ) : mixed
$item mixed
Résultat mixed

renderButton() public méthode

Render row item detail button
public renderButton ( Row $row ) : Nette\Utils\Html
$row Row
Résultat Nette\Utils\Html

renderButton() public méthode

Render row item detail button
public renderButton ( Row $row ) : Nette\Utils\Html
$row Ublaboo\DataGrid\Row
Résultat Nette\Utils\Html

setForm() public méthode

public setForm ( ItemDetailForm $form ) : static
$form Ublaboo\DataGrid\Utils\ItemDetailForm
Résultat static

setRenderCondition() public méthode

public setRenderCondition ( callable $condition ) : static
$condition callable
Résultat static

setRenderer() public méthode

Set item detail renderer
public setRenderer ( callable $renderer )
$renderer callable

setTemplate() public méthode

Set item detail template
public setTemplate ( string $template )
$template string

setTemplateParameters() public méthode

public setTemplateParameters ( array $template_parameters ) : static
$template_parameters array
Résultat static

setType() public méthode

Set item detail type
public setType ( string $type )
$type string

shouldBeRendered() public méthode

public shouldBeRendered ( Row $row ) : boolean
$row Ublaboo\DataGrid\Row
Résultat boolean

Property Details

$form protected_oe property

protected ItemDetailForm,Ublaboo\DataGrid\Utils $form
Résultat Ublaboo\DataGrid\Utils\ItemDetailForm

$grid protected_oe property

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

$primary_where_column protected_oe property

protected string|bool $primary_where_column
Résultat string | boolean

$render_condition_callback protected_oe property

protected callable $render_condition_callback
Résultat callable

$renderer protected_oe property

protected callable $renderer
Résultat callable

$template protected_oe property

protected string $template
Résultat string

$template_parameters protected_oe property

protected array $template_parameters
Résultat array

$type protected_oe property

(renderer | template | block)
protected string $type
Résultat string