WidgetButton
in package
Button for a dashboard widget
Tags
Table of Contents
Constants
- TYPE_MORE = 'more'
- TYPE_NEW = 'new'
- TYPE_SETUP = 'setup'
Properties
Methods
- __construct() : mixed
- getLink() : string
- Get the absolute url the buttons links to
- getText() : string
- Get the translated text for the button
- getType() : string
- Get the button type, either "new", "more" or "setup"
Constants
TYPE_MORE
public
mixed
TYPE_MORE
= 'more'
Tags
TYPE_NEW
public
mixed
TYPE_NEW
= 'new'
Tags
TYPE_SETUP
public
mixed
TYPE_SETUP
= 'setup'
Tags
Properties
$link
private
string
$link
$text
private
string
$text
$type
private
string
$type
Methods
__construct()
public
__construct(string $type, string $link, string $text) : mixed
Parameters
- $type : string
- $link : string
- $text : string
Tags
getLink()
Get the absolute url the buttons links to
public
getLink() : string
Tags
Return values
stringgetText()
Get the translated text for the button
public
getText() : string
Tags
Return values
stringgetType()
Get the button type, either "new", "more" or "setup"
public
getType() : string