Joomla Platform  13.1
Documentation des API du framework Joomla Platform
 Tout Classes Espaces de nommage Fichiers Fonctions Variables Pages
raw.php
Aller à la documentation de ce fichier.
1 <?php
2 /**
3  * @package Joomla.Platform
4  * @subpackage Document
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  * DocumentRAW class, provides an easy interface to parse and display raw output
14  *
15  * @package Joomla.Platform
16  * @subpackage Document
17  * @since 11.1
18  */
19 class JDocumentRaw extends JDocument
20 {
21  /**
22  * Class constructor
23  *
24  * @param array $options Associative array of options
25  *
26  * @since 11.1
27  */
28  public function __construct($options = array())
29  {
30  parent::__construct($options);
31 
32  // Set mime type
33  $this->_mime = 'text/html';
34 
35  // Set document type
36  $this->_type = 'raw';
37  }
38 
39  /**
40  * Render the document.
41  *
42  * @param boolean $cache If true, cache the output
43  * @param array $params Associative array of attributes
44  *
45  * @return The rendered data
46  *
47  * @since 11.1
48  */
49  public function render($cache = false, $params = array())
50  {
51  parent::render();
52  return $this->getBuffer();
53  }
54 }