API15

JElement/fetchTooltip

From Joomla! Documentation

< API15:JElement

The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax[edit]

fetchTooltip($label, $description, &$xmlElement, $control_name='', $name='')
Parameter Name Default Value Description
$label
$description
&$xmlElement
$control_name
$name

Defined in[edit]

libraries/joomla/html/parameter/element.php

Importing[edit]

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

Source Body[edit]

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[edit]

Code Examples[edit]