A primary action menu action.
More...
|
action_menu | $actionmenu = null |
| The action menu this link has been added to.
|
|
array | $actions |
| List of actions attached to link.
|
|
array | $attributes |
| HTML attributes.
|
|
pix_icon | $icon |
| Optional pix icon to render with the link.
|
|
bool | $primary = true |
| True if this is a primary action.
|
|
string | $text |
| Link text HTML fragment.
|
|
moodle_url | $url |
| Href url.
|
|
|
static int | $instance = 1 |
| The number of instances of this action menu link (and its subclasses).
|
|
A primary action menu action.
- Copyright
- 2013 Sam Hemelryk
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
action_menu_link_primary::__construct |
( |
moodle_url | $url, |
|
|
?pix_icon | $icon, |
|
|
| $text, |
|
|
array | $attributes = array() ) |
Constructs the object.
- Parameters
-
◆ add_action()
Add action to the link.
- Parameters
-
◆ add_class()
action_link::add_class |
( |
| $class | ) |
|
|
inherited |
Adds a CSS class to this action link object.
- Parameters
-
◆ export_for_template()
Export for template.
- Parameters
-
- Return values
-
Reimplemented from action_link.
◆ get_icon_html()
action_link::get_icon_html |
( |
| ) |
|
|
inherited |
Return the rendered HTML for the icon.
Useful for rendering action links in a template.
- Return values
-
◆ has_class()
action_link::has_class |
( |
| $class | ) |
|
|
inherited |
Returns true if the specified class has been added to this link.
- Parameters
-
- Return values
-
◆ $instance
int action_menu_link::$instance = 1 |
|
staticprotectedinherited |
The number of instances of this action menu link (and its subclasses).
- Deprecated
- since Moodle 4.4.
◆ $primary
bool action_menu_link::$primary = true |
|
inherited |
True if this is a primary action.
False if not.
The documentation for this class was generated from the following file: