PHP Class Grido\Components\Actions\Href

Author: Petr Bugyík
Inheritance: extends Action
Show file Open project: o5/grido Class Usage Examples

Protected Properties

Property Type Description
$arguments second param for method $presenter->link()
$customHref for custom href attribute creating
$destination first param for method $presenter->link()

Public Methods

Method Description
__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.

Method Details

__construct() public method

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 method

public getArguments ( ) : array
return array

getDestination() public method

public getDestination ( ) : string
return string

getElement() public method

public getElement ( mixed $row ) : Nette\Utils\Html
$row mixed
return Nette\Utils\Html

setCustomHref() public method

Sets callback for custom link creating.
public setCustomHref ( callback $callback ) : Href
$callback callback
return Href

Property Details

$arguments protected property

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

$customHref protected property

for custom href attribute creating
protected $customHref

$destination protected property

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