![]() |
Documentación GVHIDRA 3.1.5
|
Métodos públicos | |
HTML_TreeMenu_Presentation (&$structure) | |
printMenu ($options=array()) | |
Campos de datos | |
$menu |
HTML_TreeMenu_Presentation class
Base class for other presentation classes to inherit from.
Definición en la línea 485 del archivo TreeMenu.php.
HTML_TreeMenu_Presentation | ( | &$ | structure | ) |
Base constructor simply sets the menu object
object | $structure | The menu structure |
Definición en la línea 498 del archivo TreeMenu.php.
{ $this->menu = &$structure; }
printMenu | ( | $ | options = array() | ) |
Prints the HTML generated by the toHTML() method. toHTML() must therefore be defined by the derived class.
public
array | Options to set. Any options taken by the presentation class can be specified here. |
Definición en la línea 513 del archivo TreeMenu.php.
{
foreach ($options as $option => $value) {
$this->$option = $value;
}
echo $this->toHTML();
}
$menu |
Definición en la línea 491 del archivo TreeMenu.php.