API16

API16:JElementSpacer/fetchElement

From Joomla! Documentation

Revision as of 22:50, 22 March 2010 by Doxiki (talk | contribs) (New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JElementSpac...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

[Edit Descripton]

Template:Description:JElementSpacer/fetchElement

Syntax

fetchElement($name, $value, &$node, $control_name)
Parameter Name Default Value Description
$name
$value
$control_name

Defined in

libraries/joomla/html/parameter/element/spacer.php

Importing

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

Source Body

public function fetchElement($name, $value, &$node, $control_name)
{
        if ($value) {
                return JText::_($value);
        } else {
                return ' ';
        }
}

[Edit See Also] Template:SeeAlso:JElementSpacer/fetchElement

Examples

<CodeExamplesForm />