|
Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Represents the action menu of the tool. More...
Public Member Functions | |
| __construct (array $items=array()) | |
| add_item ($key, $title, moodle_url $url, $method) | |
| Adds item into the menu. More... | |
| get_items () | |
| Returns the menu items. More... | |
Protected Attributes | |
| menu | $items = array() |
| items | |
Represents the action menu of the tool.
| tool_customlang_menu::add_item | ( | $key, | |
| $title, | |||
| moodle_url | $url, | ||
| $method | |||
| ) |
Adds item into the menu.
| string | $key | item identifier |
| string | $title | localized action title |
| moodle_url | $url | action handler |
| string | $method | form method |
| tool_customlang_menu::get_items | ( | ) |
Returns the menu items.
| array | (string)key => (object)[->(string)title ->(moodle_url)url ->(string)method] |