Source for file Menu.interface.php

Documentation is available at Menu.interface.php

  1. <?php
  2.  
  3. require_once(HARMONI."GUIManager/Component.interface.php");
  4.  
  5. /**
  6. * A <code>Menu</code> is a <code>Container</code> that stores a number of
  7. * MenuItem objects. The familiar add/get/remove <code>Container</code> methods
  8. * can be used to manage the <code>MenuItems</code>.
  9. *
  10. * @package harmoni.gui.components
  11. *
  12. * @copyright Copyright &copy; 2005, Middlebury College
  13. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  14. *
  15. * @version $Id: Menu.interface.php,v 1.5 2007/09/04 20:25:22 adamfranco Exp $
  16. */
  17. class MenuInterface extends ContainerInterface {
  18.  
  19. /**
  20. * Returns the menu item that is currently selected.
  21. * @access public
  22. * @return ref object The menu item that is currently selected.
  23. ***/
  24. function getSelected() {
  25. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  26. }
  27.  
  28. /**
  29. * Determines whether the <code>MenuItem</code> with the given id is selected. Ids
  30. * reflect the order in which menu items are added. That is, the very first
  31. * menu item has an id of 1, the second menu item has an id of 2, and so forth.
  32. * @access public
  33. * @param integer id The id of the menu item.
  34. * @return boolean <code>TRUE</code>, if the menu item with the given id is selected.
  35. ***/
  36. function isSelected($id) {
  37. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  38. }
  39. /**
  40. * Selects the <code>MenuItem</code> with the given id, and deselects all the
  41. * others. Ids reflect the order in which menu items are added. That is, the very first
  42. * menu item has an id of 1, the second menu item has an id of 2, and so forth.
  43. * @access public
  44. * @param integer id The id of the menu item to select.
  45. ***/
  46. function select($id) {
  47. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  48. }
  49.  
  50. }
  51.  
  52. ?>

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