API15

JElement/fetchTooltip: Difference between revisions

From Joomla! Documentation

m removing red link to edit, no existant pages
m preparing for archive only
 
Line 62: Line 62:


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=fetchTooltip
  category=fetchTooltip
  category=JElement
  category=JElement
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*

Latest revision as of 00:33, 25 March 2017

[<! removed edit link to red link >]

<! 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

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 edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

Code Examples