10 defined(
'JPATH_PLATFORM') or die;
32 protected $type =
'AccessLevel';
41 protected function getInput()
46 $attr .= !empty($this->
class) ?
' class="' . $this->
class . '"' : '';
47 $attr .= $this->disabled ? ' disabled' : '';
48 $attr .= !empty($this->size) ? ' size="' . $this->size . '"' : '';
49 $attr .= $this->multiple ? ' multiple' : '';
50 $attr .= $this->required ? ' required aria-required="true"' : '';
51 $attr .= $this->autofocus ? ' autofocus' : '';
54 $attr .= $this->onchange ? ' onchange="' . $this->onchange . '"' : '';
57 $options = $this->getOptions();
59 return JHtml::_('access.level', $this->name, $this->value, $attr, $options, $this->id);