JElement/render
From Joomla! Documentation
< API16:JElement
The "API16" 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.
<! removed transcluded page call, red link never existed >
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]
public 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;
}
<! removed transcluded page call, red link never existed >
Examples[edit]
Code Examples[edit]