Back to Document class

Method 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
  • 1.7.0
Class: Document
Project: Joomla

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;
}