29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-06-20 19:15:27 +00:00
cms/libraries/src/Document/RawDocument.php

55 lines
1.1 KiB
PHP
Raw Normal View History

<?php
/**
2017-05-30 13:31:52 +00:00
* Joomla! Content Management System
*
2019-03-09 10:20:38 +00:00
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
2017-05-30 13:31:52 +00:00
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
2017-05-30 13:31:52 +00:00
namespace Joomla\CMS\Document;
\defined('JPATH_PLATFORM') or die;
/**
2017-05-31 18:00:29 +00:00
* RawDocument class, provides an easy interface to parse and display raw output
*
* @since 1.7.0
*/
2017-05-31 18:00:29 +00:00
class RawDocument extends Document
{
/**
* Class constructor
*
* @param array $options Associative array of options
*
* @since 1.7.0
*/
public function __construct($options = array())
{
parent::__construct($options);
// Set mime type
$this->_mime = 'text/html';
// Set document type
$this->_type = 'raw';
}
/**
* Render the document.
*
* @param boolean $cache If true, cache the output
* @param array $params Associative array of attributes
*
* @return string The rendered data
*
* @since 1.7.0
*/
public function render($cache = false, $params = array())
{
2019-12-05 08:53:32 +00:00
parent::render($cache, $params);
return $this->getBuffer();
}
}