Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | Protected Attributes | List of all members
tool_customlang_menu Class Reference

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

Inheritance diagram for tool_customlang_menu:
renderable

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
 

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: