CoreFiles by mySites.guru
LocationField.php47 lines, 936 bytes, from Joomla_4.0.0-alpha7-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha6
md5
8ee48f7fac018400ab8808e39d1a939a
sha1
e4184172233e69a58279dc35010e5e49400b47df
sha256
b899864157b4a367506909d1efc9ead5a56c7928faf4f0b9a4220f84e66cabd7
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_installer
 *
 * @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\Installer\Administrator\Field;

defined('_JEXEC') or die;

use Joomla\CMS\Form\FormHelper;
use Joomla\Component\Installer\Administrator\Helper\InstallerHelper;

FormHelper::loadFieldClass('list');

/**
 * Location field.
 *
 * @since  3.5
 */
class LocationField extends \JFormFieldList
{
	/**
	 * The form field type.
	 *
	 * @var	   string
	 * @since  3.5
	 */
	protected $type = 'Location';

	/**
	 * Method to get the field options.
	 *
	 * @return  array  The field option objects.
	 *
	 * @since   3.5
	 */
	public function getOptions()
	{
		$options = InstallerHelper::getClientOptions();

		return array_merge(parent::getOptions(), $options);
	}
}

No other release has this exact content. See every version of this file.