CoreFiles by mySites.guru
components.php41 lines, 852 bytes, from Joomla_3.7.0-beta3-Beta-Full_Package.zip
Raw History Compare with 3.7.0-beta2
md5
e9e8aeb7b97fe3093ef53e426ca5bb9d
sha1
2bdacd5230971bfc3edc0aedfc5787141cf178f8
sha256
0827a0377a058f536970e0ef6bc3cc025f9ab40f4f6faa6b91fe0d68cbb027a1
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_users
 *
 * @copyright   Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('JPATH_BASE') or die;

JFormHelper::loadFieldClass('list');

/**
 * Form Field class for the Joomla Framework.
 *
 * @since  3.6.0
 */
class JFormFieldComponents extends JFormFieldList
{
	/**
	 * The form field type.
	 *
	 * @var     string
	 * @since   3.6.0
	 */
	protected $type = 'Components';

	/**
	 * 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::getComponents());
	}
}

The same content is in 4 releases, Joomla 3.7.0-alpha2 to 3.7.0-beta3. See them all, or every version of this file.