API16

JDocumentHTML/setBuffer: Difference between revisions

From Joomla! Documentation

m removing red link to edit, no existant pages
m preparing for archive only
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
Set the contents a document include
Set the contents a document include


<span class="editsection" style="font-size:76%;">
 
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>


<! removed transcluded page call, red link never existed >
<! removed transcluded page call, red link never existed >
Line 46: Line 44:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
<! removed transcluded page call, red link never existed >
<! removed transcluded page call, red link never existed >


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=setBuffer
  category=setBuffer
  category=JDocumentHTML
  category=JDocumentHTML
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*

Latest revision as of 01:33, 25 March 2017

Description

Set the contents a document include


<! 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 transcluded page call, red link never existed >

Examples

Code Examples