API16

API16:JElementUserGroup/fetchElement

From Joomla! Documentation

Revision as of 01:36, 25 March 2017 by JoomlaWikiBot (talk | contribs) (preparing for archive only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Syntax

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

Defined in

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

Importing

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

Source Body

public function fetchElement($name, $value, &$node, $control_name)
{
        $ctrl   = $control_name .'['. $name .']';
        $attribs        = ' ';

        if ($v = $node->attributes('size')) {
                $attribs        .= 'size="'.$v.'"';
        }
        if ($v = $node->attributes('class')) {
                $attribs        .= 'class="'.$v.'"';
        } else {
                $attribs        .= 'class="inputbox"';
        }
        if ($m = $node->attributes('multiple'))
        {
                $attribs        .= 'multiple="multiple"';
                $ctrl           .= '[]';
                //$value                = implode('|',)
        }
        //array_unshift($editors, JHtml::_('select.option',  '', '- '. JText::_('SELECT_EDITOR') .' -'));

        return JHtml::_('access.usergroup', $ctrl, $value, $attribs, false);
}


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

Examples

Code Examples