Moodle  2.2.1
http://www.collinsharper.com
navigation_json Class Reference

Public Member Functions

 convert ($branch)
 set_expandable ($expandable)

Protected Member Functions

 convert_child ($child, $depth=1)

Protected Attributes

 $nodetype = array('node','branch')
 $expandable = array()

Detailed Description

Definition at line 3996 of file navigationlib.php.


Member Function Documentation

convert ( branch)

Turns a branch and all of its children into XML

Parameters:
navigation_node$branch
Returns:
string XML string

Definition at line 4007 of file navigationlib.php.

Here is the call graph for this function:

convert_child ( child,
depth = 1 
) [protected]

Recusively converts a child node and its children to XML for output

Parameters:
navigation_node$childThe child to convert
int$depthPointlessly used to track the depth of the XML structure
Returns:
string JSON

Definition at line 4028 of file navigationlib.php.

Here is the caller graph for this function:

set_expandable ( expandable)

Set the expandable items in the array so that we have enough information to attach AJAX events

Parameters:
array$expandable

Definition at line 4016 of file navigationlib.php.


Field Documentation

$expandable = array() [protected]

Definition at line 4000 of file navigationlib.php.

$nodetype = array('node','branch') [protected]

Definition at line 3998 of file navigationlib.php.


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