Joomla Platform  13.1
Documentation des API du framework Joomla Platform
 Tout Classes Espaces de nommage Fichiers Fonctions Variables Pages
base.php
Aller à la documentation de ce fichier.
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 }