PHP Класс Ublaboo\DataGrid\Column\Action

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

Открытые свойства

Свойство Тип Описание
$data_confirm_attribute_name string

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

Свойство Тип Описание
$attributes array
$class string | callable
$confirm array | callable
$data_attributes array
$grid Ublaboo\DataGrid\DataGrid
$href string
$icon string | callable
$name string
$parameters array
$params array

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

Метод Описание
__construct ( DataGrid $grid, string $href, string $name, array $params )
addAttributes ( array $attrs ) : static Set attributes for a element
addParameters ( array $parameters ) : static Add parameters to link
getClass ( Row $row ) : string Get attribute class
getConfirm ( Row $row ) : string Get confirm dialog for particular row item
getIcon ( Row $row ) : string Get icon
getPropertyStringOrCallableGetString ( Row $row, string | callable | null $property, string $name ) : string Check whether given property is string or callable in that case call callback and check property and return it
getTitle ( Row $row ) : string Get attribute title
render ( Row $row ) : mixed Render row item into template
setClass ( string | callable $class ) : static Set attribute class
setConfirm ( string | callable $message, string $column = NULL ) : static Set confirm dialog
setDataAttribute ( string $key, mixed $value ) : static Setting data attributes
setIcon ( string | callable $icon ) : static | callable Set icon
setTitle ( string | callable $title ) : static Set attribute title

Защищенные методы

Метод Описание
checkPropertyStringOrCallable ( mixed $property, $name ) : void Check whether given property is string or callable
translate ( string $message ) : string Translator helper

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

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

public __construct ( DataGrid $grid, string $href, string $name, array $params )
$grid Ublaboo\DataGrid\DataGrid
$href string
$name string
$params array

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

Set attributes for a element
public addAttributes ( array $attrs ) : static
$attrs array
Результат static

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

Add parameters to link
public addParameters ( array $parameters ) : static
$parameters array
Результат static

checkPropertyStringOrCallable() защищенный Метод

Check whether given property is string or callable
protected checkPropertyStringOrCallable ( mixed $property, $name ) : void
$property mixed
Результат void

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

Get attribute class
public getClass ( Row $row ) : string
$row Ublaboo\DataGrid\Row
Результат string

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

Get confirm dialog for particular row item
public getConfirm ( Row $row ) : string
$row Ublaboo\DataGrid\Row
Результат string

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

Get icon
public getIcon ( Row $row ) : string
$row Ublaboo\DataGrid\Row
Результат string

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

Check whether given property is string or callable in that case call callback and check property and return it
public getPropertyStringOrCallableGetString ( Row $row, string | callable | null $property, string $name ) : string
$row Ublaboo\DataGrid\Row
$property string | callable | null
$name string
Результат string

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

Get attribute title
public getTitle ( Row $row ) : string
$row Ublaboo\DataGrid\Row
Результат string

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

Render row item into template
public render ( Row $row ) : mixed
$row Ublaboo\DataGrid\Row
Результат mixed

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

Set attribute class
public setClass ( string | callable $class ) : static
$class string | callable
Результат static

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

Set confirm dialog
public setConfirm ( string | callable $message, string $column = NULL ) : static
$message string | callable
$column string
Результат static

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

Setting data attributes
public setDataAttribute ( string $key, mixed $value ) : static
$key string
$value mixed
Результат static

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

Set icon
public setIcon ( string | callable $icon ) : static | callable
$icon string | callable
Результат static | callable

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

Set attribute title
public setTitle ( string | callable $title ) : static
$title string | callable
Результат static

translate() защищенный Метод

Translator helper
protected translate ( string $message ) : string
$message string
Результат string

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

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

protected array $attributes
Результат array

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

protected string|callable $class
Результат string | callable

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

protected array|callable $confirm
Результат array | callable

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

protected array $data_attributes
Результат array

$data_confirm_attribute_name публичное статическое свойство

public static string $data_confirm_attribute_name
Результат string

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

protected DataGrid,Ublaboo\DataGrid $grid
Результат Ublaboo\DataGrid\DataGrid

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

protected string $href
Результат string

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

protected string|callable $icon
Результат string | callable

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

protected string $name
Результат string

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

protected array $parameters
Результат array

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

protected array $params
Результат array