1 <?php
2 /**
3 * @package Joomla.Platform
4 * @subpackage View
5 *
6 * @copyright Copyright (C) 2005 - 2017 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 * @since 12.1
16 */
17 abstract class JViewBase implements JView
18 {
19 /**
20 * The model object.
21 *
22 * @var JModel
23 * @since 12.1
24 */
25 protected $model;
26
27 /**
28 * Method to instantiate the view.
29 *
30 * @param JModel $model The model object.
31 *
32 * @since 12.1
33 */
34 public function __construct(JModel $model)
35 {
36 // Setup dependencies.
37 $this->model = $model;
38 }
39
40 /**
41 * Method to escape output.
42 *
43 * @param string $output The output to escape.
44 *
45 * @return string The escaped output.
46 *
47 * @see JView::escape()
48 * @since 12.1
49 */
50 public function escape($output)
51 {
52 return $output;
53 }
54 }
55