Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
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] |