Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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.
 
 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: