API15

JDocumentHTML/setBuffer: Difference between revisions

From Joomla! Documentation

m removing red link to edit, no existant pages
m preparing for archive only
 
Line 49: Line 49:


===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 00:31, 25 March 2017

Description

Set the contents a document include

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax

setBuffer($contents, $type, $name=null)
Parameter Name Default Value Description
$contents $type The type of renderer
$type $name oke The name of the element to render
$name null $content The content to be set in the buffer

Defined in

libraries/joomla/document/html/html.php

Importing

jimport( 'joomla.document.html.html' );

Source Body

function setBuffer($contents, $type, $name = null)
{
        $this->_buffer[$type][$name] = $contents;
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

Code Examples