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... |
m preparing for archive only |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<! removed transcluded page call, red link never existed > | |||
< | |||
===Syntax=== | ===Syntax=== | ||
| Line 23: | Line 18: | ||
| | | | ||
|- | |- | ||
| | | &$xmlElement | ||
| | | | ||
| | | | ||
| Line 57: | Line 52: | ||
</source> | </source> | ||
<! removed transcluded page call, red link never existed > | |||
< | |||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=fetchTooltip | category=fetchTooltip | ||
category=JElement | category=JElement | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
[[Category:Archived pages API16]] | |||
Latest revision as of 01:34, 25 March 2017
<! removed transcluded page call, red link never existed >
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;
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples