Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
tool_customlang_menu Class Reference

Represents the action menu of the tool. More...

Inheritance diagram for tool_customlang_menu:

Public Member Functions

 __construct (array $items=array())
 
 add_item ($key, $title, moodle_url $url, $method)
 Adds item into the menu.
 
 get_items ()
 Returns the menu items.
 

Protected Attributes

menu $items = array()
 items
 

Detailed Description

Represents the action menu of the tool.

Member Function Documentation

◆ add_item()

tool_customlang_menu::add_item ( $key,
$title,
moodle_url $url,
$method )

Adds item into the menu.

Parameters
string$keyitem identifier
string$titlelocalized action title
moodle_url$urlaction handler
string$methodform method

◆ get_items()

tool_customlang_menu::get_items ( )

Returns the menu items.

Return values
array(string)key => (object)[->(string)title ->(moodle_url)url ->(string)method]

The documentation for this class was generated from the following file: