Frontend
[ class tree: Frontend ] [ index: Frontend ] [ all elements ]

Source for file PageView.php

Documentation is available at PageView.php

  1. <?php
  2. /**
  3. * DotBoost Technologies Inc.
  4. * DotKernel Application Framework
  5. *
  6. @category   DotKernel
  7. @package    Frontend
  8. @copyright  Copyright (c) 2009 DotBoost  Technologies (http://www.dotboost.com)
  9. @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  10. @version    $Id: PageView.php 141 2010-06-03 12:20:52Z teo $
  11. */
  12.  
  13. /**
  14. * Page View Class
  15. * functions that prepare output related to Page controller
  16. @category   DotKernel
  17. @package    Frontend
  18. @author     DotKernel Team <team@dotkernel.com>
  19. */
  20.  
  21. class Page_View extends View
  22. {
  23.     /**
  24.      * Constructor
  25.      * @access public
  26.      * @param Dot_Template $tpl 
  27.      */
  28.     public function __construct($tpl)
  29.     {
  30.         $this->tpl $tpl;
  31.     }
  32.     /**
  33.      * Show the content of a page item
  34.      * @access public
  35.      * @param string $templateFile [optional]
  36.      * @return void 
  37.      */
  38.     public function showPage($templateFile '')
  39.     {
  40.         if ($templateFile != ''$this->templateFile $templateFile;//in some cases we need to overwrite this variable
  41.         $this->tpl->setFile('tpl_main''page/' $this->templateFile '.tpl');
  42.     }    
  43. }

Documentation generated on Wed, 21 Jul 2010 07:34:42 +0000 by phpDocumentor 1.4.3