⇦ Back to Document classMethod setBuffer
public \Joomla\CMS\Document\Document
setBuffer
(mixed $content, mixed $options = array())
Set the contents of the document buffer
Parameters
- string $content The content to be set in the buffer.
- array $options Array of optional elements.
Returns
- \Joomla\CMS\Document\Document instance of $this to allow chaining
Since
Method setBuffer - Source code
/**
* Set the contents of the document buffer
*
* @param string $content The content to be set in the buffer.
* @param array $options Array of optional elements.
*
* @return Document instance of $this to allow chaining
*
* @since 1.7.0
*/
public function setBuffer($content, $options = array())
{
self::$_buffer = $content;
return $this;
}