CoreFiles by mySites.guru
LevelsField.php44 lines, 936 bytes, from Joomla_4.0.0-alpha9-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha8
md5
56f5118b0fef49a04d2e304a3b814367
sha1
c6670422ddc9157907bffe7c8ddc5e52663517d3
sha256
74384d64451063b6f8e70f63080644e550593dd55a606cc8443bcae6c739a370
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_users
 *
 * @copyright   Copyright (C) 2005 - 2019 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('JPATH_BASE') or die;

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

/**
 * 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(), UsersHelperDebug::getLevelsOptions());
	}
}

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