JElement/fetchTooltip: Difference between revisions
From Joomla! Documentation
New page:
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JElement/fetchTool... |
No edit summary |
||
| Line 23: | Line 23: | ||
| | | | ||
|- | |- | ||
| | | &$xmlElement | ||
| | | | ||
| | | | ||
Revision as of 10:16, 30 March 2010
Template:Description:JElement/fetchTooltip
Syntax
fetchTooltip($label, $description, &$xmlElement, $control_name='', $name='')
| Parameter Name | Default Value | Description |
|---|---|---|
| $label | ||
| $description | ||
| &$xmlElement | ||
| $control_name | ||
| $name |
Defined in
libraries/joomla/html/parameter/element.php
Importing
jimport( 'joomla.html.parameter.element' );
Source Body
public function fetchTooltip($label, $description, &$xmlElement, $control_name='', $name='')
{
$output = '<label id="'.$control_name.$name.'-lbl" for="'.$control_name.$name.'"';
if ($description) {
$output .= ' class="hasTip" title="'.JText::_($label).'::'.JText::_($description).'">';
} else {
$output .= '>';
}
$output .= JText::_($label).'</label>';
return $output;
}
[Edit See Also] Template:SeeAlso:JElement/fetchTooltip
Examples
<CodeExamplesForm />