CoreFiles by mySites.guru
RawDocument.php53 lines, 1,160 bytes, from Joomla_4.2.0-Stable-Full_Package.zip
Raw History Compare with 4.1.5
md5
22efbdc87df562bf136ba76860a908fa
sha1
e324a4aaffc67dec22ae60c5b263b45b14d0c27a
sha256
17d9762b3fae47b26142225769acceb0b62dd9b278e2849af35eef6eb42c9211
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2006 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Document;

/**
 * RawDocument class, provides an easy interface to parse and display raw output
 *
 * @since  1.7.0
 */
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())
    {
        parent::render($cache, $params);

        return $this->getBuffer();
    }
}

The same content is in 5 releases, Joomla 4.2.0-beta3 to 4.2.1-rc2. See them all, or every version of this file.