DB_NestedSet
[ class tree: DB_NestedSet ] [ index: DB_NestedSet ] [ all elements ]

Class: DB_NestedSet_CoolMenu

Source Location: /DB_NestedSet-1.4.1/NestedSet/CoolMenu.php

Class Overview

DB_NestedSet_Output
   |
   --DB_NestedSet_CoolMenu

This class can be used to generate the data to build javascript popup menu from a DB_NestedSet node array.


Author(s):

Version:

  • $Revision: 199223 $

Methods


Inherited Variables

Inherited Methods

Class: DB_NestedSet_Output

DB_NestedSet_Output::factory()
Returns a output driver object
DB_NestedSet_Output::listbox_toHTML()
Returns the HTML for the listbox. This method can be used instead of printListbox() to use the menu system with a template system.
DB_NestedSet_Output::printListbox()
Print's a listbox representing the current tree Overriden by the driver class
DB_NestedSet_Output::printTree()
Print's the current tree using the output driver Overriden by the driver class
DB_NestedSet_Output::returnStructure()
DB_NestedSet_Output::setOptions()
Set's options for a specific output group (printTree, printListbox) This enables you to set specific options for each output method
DB_NestedSet_Output::tree_toHTML()
Returns the HTML for the DHTML-menu. This method can be used instead of printMenu() to use the menu system with a template system.

Class Details

[line 37]
This class can be used to generate the data to build javascript popup menu from a DB_NestedSet node array.

The Javascript part is done using the freely available CoolMenus available at http://www.dhtmlcentral.com/projects/coolmenus/. Currently version 4.0 is supported. Adapted largely from the DB_NestedSet_TigraMenu class by Daniel Khan.



[ Top ]


Method Detail

DB_NestedSet_CoolMenu (Constructor)   [line 81]

bool &DB_NestedSet_CoolMenu( array $params)

Constructor
  • See: _createFromStructure()

Parameters:

array   $params     A hash with parameters needed by the class

[ Top ]

printTree   [line 312]

string printTree( void 0)

Print's the current tree using the output driver
  • Return: The complete JS for the menu.
  • Access: public

Overrides DB_NestedSet_Output::printTree() (Print's the current tree using the output driver Overriden by the driver class)

Parameters:

void   0     

[ Top ]


Documentation generated on Sun, 25 Apr 2010 21:30:04 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.