Actions

API16

JElement/render

From Joomla! Documentation

< API16:JElement
Revision as of 05:16, 30 March 2010 by Doxiki (Talk | contribs)

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

[Edit Descripton]

Description:JElement/render

Contents

Syntax

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

Defined in

libraries/joomla/html/parameter/element.php

Importing

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

Source Body

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;
}

[Edit See Also] SeeAlso:JElement/render

Examples

<CodeExamplesForm />