Source for file base.php

Documentation is available at base.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Platform
  4.  * @subpackage  View
  5.  *
  6.  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
  7.  * @license     GNU General Public License version 2 or later; see LICENSE
  8.  */
  9.  
  10. defined('JPATH_PLATFORM'or die;
  11.  
  12. /**
  13.  * Joomla Platform Base View Class
  14.  *
  15.  * @package     Joomla.Platform
  16.  * @subpackage  View
  17.  * @since       12.1
  18.  */
  19. abstract class JViewBase implements JView
  20. {
  21.     /**
  22.      * The model object.
  23.      *
  24.      * @var    JModel 
  25.      * @since  12.1
  26.      */
  27.     protected $model;
  28.  
  29.     /**
  30.      * Method to instantiate the view.
  31.      *
  32.      * @param   JModel  $model  The model object.
  33.      *
  34.      * @since  12.1
  35.      */
  36.     public function __construct(JModel $model)
  37.     {
  38.         // Setup dependencies.
  39.         $this->model = $model;
  40.     }
  41.  
  42.     /**
  43.      * Method to escape output.
  44.      *
  45.      * @param   string  $output  The output to escape.
  46.      *
  47.      * @return  string  The escaped output.
  48.      *
  49.      * @see     JView::escape()
  50.      * @since   12.1
  51.      */
  52.     public function escape($output)
  53.     {
  54.         return $output;
  55.     }
  56. }

Documentation generated on Tue, 19 Nov 2013 14:54:24 +0100 by phpDocumentor 1.4.3