Moodle  2.2.1
http://www.collinsharper.com
tool_customlang_menu Class Reference
Inheritance diagram for tool_customlang_menu:
Collaboration diagram for tool_customlang_menu:

Public Member Functions

 __construct (array $items=array())
 get_items ()
 add_item ($key, $title, moodle_url $url, $method)

Protected Attributes

 $items = array()

Detailed Description

Represents the action menu of the tool

Definition at line 403 of file locallib.php.


Constructor & Destructor Documentation

__construct ( array items = array())

Definition at line 408 of file locallib.php.


Member Function Documentation

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

Definition at line 433 of file locallib.php.

get_items ( )

Returns the menu items

Returns:
array (string)key => (object)[->(string)title ->(moodle_url)url ->(string)method]

Definition at line 421 of file locallib.php.

Here is the caller graph for this function:


Field Documentation

$items = array() [protected]

Definition at line 406 of file locallib.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations