◆ __construct()
| __construct |
( |
|
$label, |
|
|
|
$url, |
|
|
|
$icon = null, |
|
|
|
$attributes = array() |
|
) |
| |
create a link for a widget
- Parameters
-
| String | $label | Label/content of the link |
| String | $url | URL/Location of the link |
| String | $icon | Icon for the link, defaults to blank.gif |
| array | $attributes | HTML-attributes for the a-tag in an associative array. |
◆ addClass()
◆ asDialog()
◆ fromHTML()
| static fromHTML |
( |
|
$html, |
|
|
|
$icon = null |
|
) |
| |
|
static |
Create link by parsing a html chunk.
- Parameters
-
| String | $html | HTML chunk to parse |
| mixed | $icon | Optional icon |
- Returns
- LinkElement Link element from parsed html
- Exceptions
-
| Exception | if html can not be parsed |
◆ isURL()
◆ offsetExists()
◆ offsetGet()
◆ offsetSet()
| offsetSet |
( |
|
$offset, |
|
|
|
$value |
|
) |
| |
◆ offsetUnset()
◆ parseAttributes()
| static parseAttributes |
( |
|
$text | ) |
|
|
staticprotected |
Parse a string of html attributes into an associative array.
- Parameters
-
| String | $text | String of html attributes |
- Returns
- Array parsed attributes as key => value pairs
- See also
- https://gist.github.com/rodneyrehm/3070128
◆ render()
Renders the element.
- Returns
- String The rendered content
Reimplemented from WidgetElement.
◆ setActive()
| setActive |
( |
|
$active = true | ) |
|
◆ setTarget()
◆ $active
◆ $attributes
◆ $icon
◆ $label
◆ $url
The documentation for this class was generated from the following file: