Simple class used to output a navigation branch in XML.  
 More...
|  | 
|  | convert ($branch) | 
|  | Turns a branch and all of its children into XML. 
 | 
|  | 
|  | set_expandable ($expandable) | 
|  | Set the expandable items in the array so that we have enough information to attach AJAX events. 
 | 
|  | 
|  | 
|  | convert_child ($child, $depth=1) | 
|  | Recusively converts a child node and its children to XML for output. 
 | 
|  | 
|  | 
| array | $expandable = array() | 
|  | An array of node keys and types. 
 | 
|  | 
| array | $nodetype = array('node','branch') | 
|  | An array of different node types. 
 | 
|  | 
Simple class used to output a navigation branch in XML. 
- Copyright
- 2009 Sam Hemelryk 
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 
◆ convert()
      
        
          | navigation_json::convert | ( |  | $branch | ) |  | 
      
 
Turns a branch and all of its children into XML. 
- Parameters
- 
  
  
- Return values
- 
  
  
 
 
◆ convert_child()
  
  | 
        
          | navigation_json::convert_child | ( |  | $child, |  
          |  |  |  | $depth = 1 ) |  | protected | 
 
Recusively converts a child node and its children to XML for output. 
- Parameters
- 
  
    | navigation_node | $child | The child to convert |  | int | $depth | Pointlessly used to track the depth of the XML structure |  
 
- Return values
- 
  
  
 
 
◆ set_expandable()
      
        
          | navigation_json::set_expandable | ( |  | $expandable | ) |  | 
      
 
Set the expandable items in the array so that we have enough information to attach AJAX events. 
- Parameters
- 
  
  
 
 
The documentation for this class was generated from the following file: