Source for file Layout.interface.php

Documentation is available at Layout.interface.php

  1. <?php
  2.  
  3. /**
  4. * Layouts are assigned to Containers and they specify how (in terms of location,
  5. * not appearance) the sub-<code>Components</code> are going to be rendered on the screen.
  6. *
  7. * @package harmoni.gui
  8. *
  9. * @copyright Copyright &copy; 2005, Middlebury College
  10. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  11. *
  12. * @version $Id: Layout.interface.php,v 1.5 2007/09/04 20:25:21 adamfranco Exp $
  13. */
  14. class LayoutInterface {
  15.  
  16. /**
  17. * Lays out and renders the given container and its components. The Layout
  18. * object should arrange the <code>Components</code> in a well-defined manner
  19. * and then call the <code>render()</code> methods of each individual component.
  20. * @access public
  21. * @param ref object The container to render.
  22. * @param ref object theme The Theme object to use in producing the result
  23. * of this method.
  24. * @param string tabs This is a string (normally a bunch of tabs) that will be
  25. * prepended to each text line. This argument is optional but its usage is highly
  26. * recommended in order to produce a nicely formatted HTML output.
  27. ***/
  28. function render($container, $theme, $tabs = "") {
  29. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  30. }
  31. /**
  32. * Returns any CSS code that might be needed in order for this <code>Layout</code>
  33. * to render properly.
  34. * @access public
  35. * @param string tabs This is a string (normally a bunch of tabs) that will be
  36. * prepended to each text line. This argument is optional but its usage is highly
  37. * recommended in order to produce a nicely formatted HTML output.
  38. * @return string The CSS code that might be needed in order for this <code>Layout</code>
  39. * to render properly.
  40. ***/
  41. function getCSS($tabs = "") {
  42. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  43. }
  44. }
  45.  
  46. ?>

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