Data structure describing html link with special action attached.
More...
|
array | $actions |
| List of actions attached to link.
|
|
array | $attributes |
| HTML attributes.
|
|
pix_icon | $icon |
| Optional pix icon to render with the link.
|
|
string | $text |
| Link text HTML fragment.
|
|
moodle_url | $url |
| Href url.
|
|
Data structure describing html link with special action attached.
- Copyright
- 2010 Petr Skoda
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- Since
- Moodle 2.0
◆ __construct()
◆ add_action()
Add action to the link.
- Parameters
-
◆ add_class()
action_link::add_class |
( |
| $class | ) |
|
Adds a CSS class to this action link object.
- Parameters
-
◆ export_for_template()
Export for template.
- Parameters
-
- Return values
-
Reimplemented in action_menu_link.
◆ get_icon_html()
action_link::get_icon_html |
( |
| ) |
|
Return the rendered HTML for the icon.
Useful for rendering action links in a template.
- Return values
-
◆ has_class()
action_link::has_class |
( |
| $class | ) |
|
Returns true if the specified class has been added to this link.
- Parameters
-
- Return values
-
The documentation for this class was generated from the following file: