Actions

API16

JDocumentHTML/setBuffer

< API16:JDocumentHTML

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description

Set the contents a document include


<! removed transcluded page call, red link never existed >

Syntax

setBuffer($content, $options=array())
Parameter Name Default Value Description
$content $content The content to be set in the buffer.
$options array() $options Array of optional elements.

Defined in

libraries/joomla/document/html/html.php

Importing

jimport( 'joomla.document.html.html' );

Source Body

public function setBuffer($content, $options = array())
{
        // The following code is just for backward compatibility.
        if (func_num_args() > 1 && !is_array($options)) {
                $args = func_get_args(); $options = array();
                $options['type'] = $args[1];
                $options['name'] = (isset($args[2])) ? $args[2] : null;
        }
 
        $this->_buffer[$options['type']][$options['name']] = $content;
}


<! removed transcluded page call, red link never existed >

Examples

Code Examples


Advertisement