|  | 
| 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.  More... 
 | 
|  | 
| 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). 
 | 
|  | 
◆ __construct()
      
        
          | action_menu_link::__construct | ( | moodle_url | $url, | 
        
          |  |  | pix_icon | $icon = null, | 
        
          |  |  |  | $text, | 
        
          |  |  |  | $primary = true, | 
        
          |  |  | array | $attributes = array() | 
        
          |  | ) |  |  | 
      
 
Constructs the object. 
- Parameters
- 
  
    | moodle_url | $url | The URL for the action. |  | pix_icon | $icon | The icon to represent the action. |  | string | $text | The text to represent the action. |  | bool | $primary | Whether this is a primary action or not. |  | array | $attributes | Any attribtues associated with the action. |  
 
 
 
◆ 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
- 
  
  
 
 
◆ $primary
      
        
          | bool action_menu_link::$primary = true | 
      
 
True if this is a primary action. 
False if not. 
 
 
The documentation for this class was generated from the following file: