PHP Класс Grido\Components\Actions\Href

Автор: Petr Bugyík
Наследование: extends Action
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$arguments second param for method $presenter->link()
$customHref for custom href attribute creating
$destination first param for method $presenter->link()

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

Метод Описание
__construct ( Grid $grid, string $name, string $label, string $destination = NULL, array $arguments = [] )
getArguments ( ) : array
getDestination ( ) : string
getElement ( mixed $row ) : Nette\Utils\Html
setCustomHref ( callback $callback ) : Href Sets callback for custom link creating.

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

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

public __construct ( Grid $grid, string $name, string $label, string $destination = NULL, array $arguments = [] )
$grid Grido\Grid
$name string
$label string
$destination string - first param for method $presenter->link()
$arguments array - second param for method $presenter->link()

getArguments() публичный метод

public getArguments ( ) : array
Результат array

getDestination() публичный метод

public getDestination ( ) : string
Результат string

getElement() публичный метод

public getElement ( mixed $row ) : Nette\Utils\Html
$row mixed
Результат Nette\Utils\Html

setCustomHref() публичный метод

Sets callback for custom link creating.
public setCustomHref ( callback $callback ) : Href
$callback callback
Результат Href

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

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

second param for method $presenter->link()
protected $arguments

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

for custom href attribute creating
protected $customHref

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

first param for method $presenter->link()
protected $destination