Source for file MenuTheme.interface.php

Documentation is available at MenuTheme.interface.php

  1. <?php
  2.  
  3. require_once(HARMONI."GUIManager/Theme.interface.php");
  4. require_once(HARMONI."GUIManager/Menu.interface.php");
  5.  
  6. /**
  7. * A <code>MenuTheme</code> is an extension of the generic <code>Theme</code> interface
  8. * that adds support for multi-level navigation menus. A <code>MenuTheme</code>,
  9. * like a normal </code>Theme</code> has a single <code>Component</code>; however,
  10. * it allows the user to surround that component with multi-level navigation menus.
  11. *
  12. * @package harmoni.gui
  13. *
  14. * @copyright Copyright &copy; 2005, Middlebury College
  15. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  16. *
  17. * @version $Id: MenuTheme.interface.php,v 1.2 2007/09/04 20:25:21 adamfranco Exp $
  18. ***/
  19. class MenuThemeInterface {
  20. /**
  21. * Adds a new menu to this theme.
  22. * @access public
  23. * @param ref object menu A <code>Menu</code> object to be added to this theme.
  24. * @param integer level A postivive integer specifying the <code>level</code> of the
  25. * menu that is being added. Only one menu can exist at any given level.
  26. * Levels cannot be skipped. Levels allow the user to create a hierarchy of menus.
  27. ***/
  28. function addMenu($menu, $level) {
  29. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  30. }
  31. /**
  32. * Returns the menu (if exists) at the given level.
  33. * @access public
  34. * @param integer level An integer specifying the <code>level</code> of the
  35. * menu that is to be returned. Levels start at 1. Only one menu can exist at any given level.
  36. * Levels cannot be skipped. Levels allow the user to create a hierarchy of menus.
  37. * @return ref object The <code>Menu</code> object at the specified level, or <code>NULL</code>
  38. * if no menu was found.
  39. ***/
  40. function getMenu($menu, $level) {
  41. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  42. }
  43. /**
  44. * Returns the number of menus in this Theme.
  45. * @access public
  46. * @return integer The number of menus.
  47. ***/
  48. function getNumberOfMenus() {
  49. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  50. }
  51. }
  52.  
  53. ?>

Documentation generated on Wed, 19 Sep 2007 10:25:04 -0400 by phpDocumentor 1.3.0RC3