Joomla! Programmierung/Framework/JDocumentHTML/getBuffer

Aus Joomla! Dokumentation
Wechseln zu: Navigation, Suche

Gets the contents of a document buffer. This will generally be the output captured from a <jdoc:include ... /> statement in the template.

[Bearbeiten] Syntax

string getBuffer( $type, $name, $attribs )

where:

Argument Data type Description Default
$type string Renderer type. If null then the entire buffer array is returned. null
$name string Name of the element rendered. null
$attribs array Associative array of remaining attributes.

[Bearbeiten] Example

On encountering a <jdoc:include type="mytype" name="myname" class="myclass" /> statement in the document template, this is effectively the call that would be made (the actual call is made in the private method JDocumentHTML->_parseTemplate):

$doc =& JFactory::getDocument();
$buffer = $doc->getBuffer( 'mytype', 'myname', array( 'class' => 'myclass' ) );

[Bearbeiten] See also

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