[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * Joomla! Content Management System 5 * 6 * @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org> 7 * @license GNU General Public License version 2 or later; see LICENSE.txt 8 */ 9 10 namespace Joomla\CMS\Document; 11 12 // phpcs:disable PSR1.Files.SideEffects 13 \defined('JPATH_PLATFORM') or die; 14 // phpcs:enable PSR1.Files.SideEffects 15 16 /** 17 * RawDocument class, provides an easy interface to parse and display raw output 18 * 19 * @since 1.7.0 20 */ 21 class RawDocument extends Document 22 { 23 /** 24 * Class constructor 25 * 26 * @param array $options Associative array of options 27 * 28 * @since 1.7.0 29 */ 30 public function __construct($options = array()) 31 { 32 parent::__construct($options); 33 34 // Set mime type 35 $this->_mime = 'text/html'; 36 37 // Set document type 38 $this->_type = 'raw'; 39 } 40 41 /** 42 * Render the document. 43 * 44 * @param boolean $cache If true, cache the output 45 * @param array $params Associative array of attributes 46 * 47 * @return string The rendered data 48 * 49 * @since 1.7.0 50 */ 51 public function render($cache = false, $params = array()) 52 { 53 parent::render($cache, $params); 54 55 return $this->getBuffer(); 56 } 57 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |