PHP Class Encore\Admin\Grid\Row

Afficher le fichier Open project: z-song/laravel-admin Class Usage Examples

Protected Properties

Свойство 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.

Méthodes publiques

Méthode 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 méthode

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

__get() public méthode

Getter.
public __get ( $attr ) : null
$attr
Résultat null

actions() public méthode

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

cells() public méthode

Get data of this row.
public cells ( ) : mixed
Résultat mixed

column() public méthode

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

getHtmlAttributes() public méthode

Get attributes in html format.
public getHtmlAttributes ( ) : string
Résultat string

getPath() public méthode

Get action path.
public getPath ( ) : mixed
Résultat mixed

id() public méthode

Get id of this row.
public id ( ) : null
Résultat null

setAttributes() public méthode

Set attributes.
public setAttributes ( array $attributes ) : null
$attributes array
Résultat null

setKeyName() public méthode

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

setPath() public méthode

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

style() public méthode

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

Property Details

$actions protected_oe property

Actions of row.
protected $actions

$attributes protected_oe property

Attributes of row.
protected array $attributes
Résultat array

$data protected_oe property

Row data.
protected $data

$keyName protected_oe property

The primary key name.
protected string $keyName
Résultat string

$number protected_oe property

Row number.
protected $number

$path protected_oe property

Action path.
protected $path