CoreFiles by mySites.guru
LevelsField.php44 lines, 922 bytes, from Joomla_4.0.0-beta1-Beta-Full_Package.zip
Raw History Compare with 3.9.0-beta4
md5
e038c4e7bfaeea47d3843ef56a48efaf
sha1
86d91c1594d2290dd8ad9bffafe08cd4fe35d769
sha256
d685424e5ca0556d9dd2a7872a21c3a644235791bff20af1ffb928ff44b4273c
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_users
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Users\Administrator\Field;

defined('_JEXEC') or die;

use Joomla\CMS\Form\Field\ListField;
use Joomla\Component\Users\Administrator\Helper\DebugHelper;

/**
 * Access Levels field.
 *
 * @since  3.6.0
 */
class LevelsField extends ListField
{
	/**
	 * The form field type.
	 *
	 * @var     string
	 * @since   3.6.0
	 */
	protected $type = 'Levels';

	/**
	 * Method to get the field options.
	 *
	 * @return  array  The field option objects
	 *
	 * @since   3.6.0
	 */
	protected function getOptions()
	{
		// Merge any additional options in the XML definition.
		return array_merge(parent::getOptions(), DebugHelper::getLevelsOptions());
	}
}

The same content is in 5 releases, Joomla 4.0.0-beta to 4.0.0-beta5. See them all, or every version of this file.