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 View Interface
14 *
15 * @since 12.1
16 */
17 interface JView
18 {
19 /**
20 * Method to escape output.
21 *
22 * @param string $output The output to escape.
23 *
24 * @return string The escaped output.
25 *
26 * @since 12.1
27 */
28 public function escape($output);
29
30 /**
31 * Method to render the view.
32 *
33 * @return string The rendered view.
34 *
35 * @since 12.1
36 * @throws RuntimeException
37 */
38 public function render();
39 }
40