Source for file frontend.php

Documentation is available at frontend.php

  1. <?php
  2. /**
  3. @package Mambo
  4. @author Mambo Foundation Inc see README.php
  5. @copyright Mambo Foundation Inc.
  6. *  See COPYRIGHT.php for copyright notices and details.
  7. @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see
  8. *  LICENSE.php
  9. *  Mambo is free software; you can redistribute it and/or
  10. *  modify it under the terms of the GNU General Public License
  11. *  as published by the Free Software Foundation; version 2 of the
  12. *  License.
  13. */ 
  14.  
  15. defined'_VALID_MOS' or die'Direct Access to this location is not allowed.' );
  16. /**
  17. * Displays the capture output of the main element
  18. */
  19. function mosMainBody({
  20.     $handler =mosComponentHandler::getInstance();
  21.     $handler->mosMainBody();
  22. }
  23. /**
  24. * Utility functions and classes
  25. */
  26. function mosLoadComponent$name {
  27.     // set up some global variables for use by the frontend component
  28.     global $mainframe$database;
  29.     include$mainframe->getCfg'absolute_path' )."/components/com_$name/$name.php);
  30. }
  31. /**
  32. @param string THe template position
  33. */
  34. function mosCountModules$position='left' {
  35.     $handler =mosModuleHandler::getInstance();
  36.     return $handler->mosCountModules($position);
  37. }
  38.  
  39. /**
  40. @param string The position
  41. @param int The style.  0=normal, 1=horiz, -1=no wrapper
  42. */
  43. function mosLoadModules$position='left'$style={
  44.     $handler =mosModuleHandler::getInstance();
  45.     return $handler->mosLoadModules($position$style);
  46. }
  47. /**
  48. * Assembles head tags
  49. */
  50. function mosShowHead({
  51.     $mainframe =mosMainFrame::getInstance();
  52.     $mainframe->mosShowHead();
  53. }
  54. ?>

Documentation generated on Mon, 05 May 2008 16:19:46 +0400 by phpDocumentor 1.4.0