PHP Class Ublaboo\DataGrid\Column\ItemDetail

Inheritance: extends Ublaboo\DataGrid\Object
Datei anzeigen Open project: ublaboo/datagrid Class Usage Examples

Protected Properties

Property 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)

Public Methods

Method 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 method

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

getForm() public method

public getForm ( ) : ItemDetailForm
return Ublaboo\DataGrid\Utils\ItemDetailForm

getPrimaryWhereColumn() public method

Get primary column for where clause

getRenderer() public method

Get item detail renderer
public getRenderer ( ) : callable
return callable

getTemplate() public method

Get item detail template
public getTemplate ( ) : string
return string

getTemplateVariables() public method

getType() public method

Get item detail type
public getType ( ) : string
return string

render() public method

Render item detail
public render ( mixed $item ) : mixed
$item mixed
return mixed

renderButton() public method

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

renderButton() public method

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

setForm() public method

public setForm ( ItemDetailForm $form ) : static
$form Ublaboo\DataGrid\Utils\ItemDetailForm
return static

setRenderCondition() public method

public setRenderCondition ( callable $condition ) : static
$condition callable
return static

setRenderer() public method

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

setTemplate() public method

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

setTemplateParameters() public method

public setTemplateParameters ( array $template_parameters ) : static
$template_parameters array
return static

setType() public method

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

shouldBeRendered() public method

public shouldBeRendered ( Row $row ) : boolean
$row Ublaboo\DataGrid\Row
return boolean

Property Details

$form protected_oe property

protected ItemDetailForm,Ublaboo\DataGrid\Utils $form
return Ublaboo\DataGrid\Utils\ItemDetailForm

$grid protected_oe property

protected DataGrid,Ublaboo\DataGrid $grid
return Ublaboo\DataGrid\DataGrid

$primary_where_column protected_oe property

protected string|bool $primary_where_column
return string | boolean

$render_condition_callback protected_oe property

protected callable $render_condition_callback
return callable

$renderer protected_oe property

protected callable $renderer
return callable

$template protected_oe property

protected string $template
return string

$template_parameters protected_oe property

protected array $template_parameters
return array

$type protected_oe property

(renderer | template | block)
protected string $type
return string