Joomla! Programmierung/Framework/JDocumentHTML/setBuffer

Aus Joomla! Dokumentation
Wechseln zu: Navigation, Suche

Sets the contents of a document buffer. This will generally be the output captured from a <jdoc:include ... /> statement in the template. It will overwrite any previous contents of the buffer.

[Bearbeiten] Syntax

void setBuffer( $content, $type, $name )

where:

Argument Data type Description Default
$content string The content to be put into the buffer.
$type string Renderer type.
$name string Name of the element rendered.

[Bearbeiten] Example

To set the content of the 'module' renderer called 'myname' you would make a call like this:

$doc =& JFactory::getDocument();
$doc->setBuffer( 'This is some content', 'module', 'myname' );

[Bearbeiten] See also

Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Sonstiges
Team Navigation
Werkzeuge