API16:JDocumentHTML/setBuffer
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
Contents |
Description
Set the contents a document include
[<! removed edit link to red link >]
<! 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 edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
