PHP Класс Encore\Admin\Grid\Row

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$actions Actions of row.
$attributes array Attributes of row.
$data Row data.
$keyName string The primary key name.
$number Row number.
$path Action path.

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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

__get() публичный Метод

Getter.
public __get ( $attr ) : null
$attr
Результат null

actions() публичный Метод

Set or Get actions.
public actions ( string $actions = 'edit|delete' ) : Encore\Admin\Grid\Action
$actions string
Результат Encore\Admin\Grid\Action

cells() публичный Метод

Get data of this row.
public cells ( ) : mixed
Результат mixed

column() публичный Метод

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

getHtmlAttributes() публичный Метод

Get attributes in html format.
public getHtmlAttributes ( ) : string
Результат string

getPath() публичный Метод

Get action path.
public getPath ( ) : mixed
Результат mixed

id() публичный Метод

Get id of this row.
public id ( ) : null
Результат null

setAttributes() публичный Метод

Set attributes.
public setAttributes ( array $attributes ) : null
$attributes array
Результат null

setKeyName() публичный Метод

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

setPath() публичный Метод

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

style() публичный Метод

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

Описание свойств

$actions защищенное свойство

Actions of row.
protected $actions

$attributes защищенное свойство

Attributes of row.
protected array $attributes
Результат array

$data защищенное свойство

Row data.
protected $data

$keyName защищенное свойство

The primary key name.
protected string $keyName
Результат string

$number защищенное свойство

Row number.
protected $number

$path защищенное свойство

Action path.
protected $path