PHP Class Encore\Admin\Grid\Row

Show file Open project: z-song/laravel-admin Class Usage Examples

Protected Properties

Property Type Description
$actions Actions of row.
$attributes array Attributes of row.
$data Row data.
$keyName string The primary key name.
$number Row number.
$path Action path.

Public Methods

Method Description
__construct ( $number, $data ) Constructor.
__get ( $attr ) : null Getter.
actions ( string $actions = 'edit|delete' ) : Encore\Admin\Grid\Action Set or Get actions.
cells ( ) : mixed Get data of this row.
column ( $name, null $value = null ) Get or set value of column in this row.
getHtmlAttributes ( ) : string Get attributes in html format.
getPath ( ) : mixed Get action path.
id ( ) : null Get id of this row.
setAttributes ( array $attributes ) : null Set attributes.
setKeyName ( $keyName ) Set primary key name.
setPath ( $path ) Set action path.
style ( $style ) Set style of the row.

Method Details

__construct() public method

Constructor.
public __construct ( $number, $data )
$number
$data

__get() public method

Getter.
public __get ( $attr ) : null
$attr
return null

actions() public method

Set or Get actions.
public actions ( string $actions = 'edit|delete' ) : Encore\Admin\Grid\Action
$actions string
return Encore\Admin\Grid\Action

cells() public method

Get data of this row.
public cells ( ) : mixed
return mixed

column() public method

Get or set value of column in this row.
public column ( $name, null $value = null )
$name
$value null

getHtmlAttributes() public method

Get attributes in html format.
public getHtmlAttributes ( ) : string
return string

getPath() public method

Get action path.
public getPath ( ) : mixed
return mixed

id() public method

Get id of this row.
public id ( ) : null
return null

setAttributes() public method

Set attributes.
public setAttributes ( array $attributes ) : null
$attributes array
return null

setKeyName() public method

Set primary key name.
public setKeyName ( $keyName )
$keyName

setPath() public method

Set action path.
public setPath ( $path )
$path

style() public method

Set style of the row.
public style ( $style )
$style

Property Details

$actions protected property

Actions of row.
protected $actions

$attributes protected property

Attributes of row.
protected array $attributes
return array

$data protected property

Row data.
protected $data

$keyName protected property

The primary key name.
protected string $keyName
return string

$number protected property

Row number.
protected $number

$path protected property

Action path.
protected $path