PHP Class Ublaboo\DataGrid\Row

Inheritance: extends Nette\Object
显示文件 Open project: ublaboo/datagrid Class Usage Examples

Protected Properties

Property Type Description
$control Nette\Utils\Html
$datagrid DataGrid
$id mixed
$item mixed
$primary_key string

Public Methods

Method Description
__construct ( DataGrid $datagrid, mixed $item, string $primary_key )
applyColumnCallback ( string $key, Column $column ) : void
getControl ( ) : Nette\Utils\Html
getControlClass ( ) : string
getDoctrineEntityProperty ( mixed $item, mixed $key ) : mixed Doctrine: Access object properties to get a item value
getId ( ) : mixed Get id value of item
getItem ( ) : mixed Get original item
getLeanMapperEntityProperty ( Entity $item, mixed $key ) : mixed LeanMapper: Access object properties to get a item value
getNextrasEntityProperty ( Entity $item, string $key ) : mixed Nextras: Access object properties to get a item value
getValue ( mixed $key ) : mixed Get item value of key
hasAction ( mixed $key ) : boolean Has particular row a action allowed?
hasGroupAction ( ) : boolean Has particular row group actions allowed?
hasInlineEdit ( ) : boolean Has particular row inlie edit allowed?

Private Methods

Method Description
formatDibiRowKey ( string $key ) : string Key may contain ".", get rid of it (+ the table alias)

Method Details

__construct() public method

public __construct ( DataGrid $datagrid, mixed $item, string $primary_key )
$datagrid DataGrid
$item mixed
$primary_key string

applyColumnCallback() public method

public applyColumnCallback ( string $key, Column $column ) : void
$key string
$column Ublaboo\DataGrid\Column\Column
return void

getControl() public method

public getControl ( ) : Nette\Utils\Html
return Nette\Utils\Html

getControlClass() public method

public getControlClass ( ) : string
return string

getDoctrineEntityProperty() public method

Doctrine: Access object properties to get a item value
public getDoctrineEntityProperty ( mixed $item, mixed $key ) : mixed
$item mixed
$key mixed
return mixed

getId() public method

Get id value of item
public getId ( ) : mixed
return mixed

getItem() public method

Get original item
public getItem ( ) : mixed
return mixed

getLeanMapperEntityProperty() public method

LeanMapper: Access object properties to get a item value
public getLeanMapperEntityProperty ( Entity $item, mixed $key ) : mixed
$item LeanMapper\Entity
$key mixed
return mixed

getNextrasEntityProperty() public method

Nextras: Access object properties to get a item value
public getNextrasEntityProperty ( Entity $item, string $key ) : mixed
$item Nextras\Orm\Entity\Entity
$key string
return mixed

getValue() public method

Get item value of key
public getValue ( mixed $key ) : mixed
$key mixed
return mixed

hasAction() public method

Has particular row a action allowed?
public hasAction ( mixed $key ) : boolean
$key mixed
return boolean

hasGroupAction() public method

Has particular row group actions allowed?
public hasGroupAction ( ) : boolean
return boolean

hasInlineEdit() public method

Has particular row inlie edit allowed?
public hasInlineEdit ( ) : boolean
return boolean

Property Details

$control protected_oe property

protected Html,Nette\Utils $control
return Nette\Utils\Html

$datagrid protected_oe property

protected DataGrid,Ublaboo\DataGrid $datagrid
return DataGrid

$id protected_oe property

protected mixed $id
return mixed

$item protected_oe property

protected mixed $item
return mixed

$primary_key protected_oe property

protected string $primary_key
return string