API15

Difference between revisions of "JElement/render"

From Joomla! Documentation

< API15:JElement
(New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JElement/render}} ===...)
 
Line 15: Line 15:
 
!Description
 
!Description
 
|-
 
|-
|  
+
| &$xmlElement
 
|  
 
|  
 
|   
 
|   

Revision as of 12:37, 25 March 2010

The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

[Edit Descripton]

Template:Description:JElement/render

Syntax[edit]

render(&$xmlElement, $value, $control_name= 'params')
Parameter Name Default Value Description
&$xmlElement
$value
$control_name 'params'

Defined in[edit]

libraries/joomla/html/parameter/element.php

Importing[edit]

jimport( 'joomla.html.parameter.element' );

Source Body[edit]

function render(&$xmlElement, $value, $control_name = 'params')
{
        $name   = $xmlElement->attributes('name');
        $label  = $xmlElement->attributes('label');
        $descr  = $xmlElement->attributes('description');
        //make sure we have a valid label
        $label = $label ? $label : $name;
        $result[0] = $this->fetchTooltip($label, $descr, $xmlElement, $control_name, $name);
        $result[1] = $this->fetchElement($name, $value, $xmlElement, $control_name);
        $result[2] = $descr;
        $result[3] = $label;
        $result[4] = $value;
        $result[5] = $name;

        return $result;
}

[Edit See Also] Template:SeeAlso:JElement/render

Examples[edit]

<CodeExamplesForm />