PATH:
home
/
centosnipponia
/
public_html
/
nipponiacom2
/
libraries
/
joomla
/
form
/
fields
<?php /** * @package Joomla.Platform * @subpackage Form * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * Form Field class for the Joomla Platform. * Supports a nested checkbox field listing user groups. * Multiselect is available by default. * * @since 1.7.0 * @deprecated 3.5 */ class JFormFieldUsergroup extends JFormField { /** * The form field type. * * @var string * @since 1.7.0 */ protected $type = 'Usergroup'; /** * Method to get the user group field input markup. * * @return string The field input markup. * * @since 1.7.0 */ protected function getInput() { JLog::add('JFormFieldUsergroup is deprecated. Use JFormFieldUserGroupList instead.', JLog::WARNING, 'deprecated'); $options = array(); $attr = ''; // Initialize some field attributes. $attr .= !empty($this->class) ? ' class="' . $this->class . '"' : ''; $attr .= $this->disabled ? ' disabled' : ''; $attr .= $this->size ? ' size="' . $this->size . '"' : ''; $attr .= $this->multiple ? ' multiple' : ''; $attr .= $this->required ? ' required aria-required="true"' : ''; $attr .= $this->autofocus ? ' autofocus' : ''; // Initialize JavaScript field attributes. $attr .= !empty($this->onchange) ? ' onchange="' . $this->onchange . '"' : ''; $attr .= !empty($this->onclick) ? ' onclick="' . $this->onclick . '"' : ''; // Iterate through the children and build an array of options. foreach ($this->element->children() as $option) { // Only add <option /> elements. if ($option->getName() != 'option') { continue; } $disabled = (string) $option['disabled']; $disabled = ($disabled == 'true' || $disabled == 'disabled' || $disabled == '1'); // Create a new option object based on the <option /> element. $tmp = JHtml::_( 'select.option', (string) $option['value'], trim((string) $option), 'value', 'text', $disabled ); // Set some option attributes. $tmp->class = (string) $option['class']; // Set some JavaScript option attributes. $tmp->onclick = (string) $option['onclick']; // Add the option object to the result set. $options[] = $tmp; } return JHtml::_('access.usergroup', $this->name, $this->value, $attr, $options, $this->id); } }
[+]
..
[-] accesslevel.php
[edit]
[-] aliastag.php
[edit]
[-] cachehandler.php
[edit]
[-] calendar.php
[edit]
[-] checkbox.php
[edit]
[-] checkboxes.php
[edit]
[-] color.php
[edit]
[-] combo.php
[edit]
[-] components.php
[edit]
[-] databaseconnection.php
[edit]
[-] email.php
[edit]
[-] file.php
[edit]
[-] filelist.php
[edit]
[-] folderlist.php
[edit]
[-] groupedlist.php
[edit]
[-] hidden.php
[edit]
[-] imagelist.php
[edit]
[-] index.html
[edit]
[-] integer.php
[edit]
[-] language.php
[edit]
[-] list.php
[edit]
[-] meter.php
[edit]
[-] note.php
[edit]
[-] number.php
[edit]
[-] password.php
[edit]
[-] plugins.php
[edit]
[-] predefinedlist.php
[edit]
[-] radio.php
[edit]
[-] range.php
[edit]
[-] repeatable.php
[edit]
[-] rules.php
[edit]
[-] sessionhandler.php
[edit]
[-] spacer.php
[edit]
[-] sql.php
[edit]
[-] subform.php
[edit]
[-] tel.php
[edit]
[-] text.php
[edit]
[-] textarea.php
[edit]
[-] timezone.php
[edit]
[-] url.php
[edit]
[-] usergroup.php
[edit]
[-] .htaccess.disabled
[edit]