CoreFiles by mySites.guru
location.php44 lines, 923 bytes, from Joomla_3.6.2-Stable-Full_Package.zip
Raw History Compare with 3.6.1
md5
0cd5a6d3ee6f79514d2b8c3c7b7c96bc
sha1
ffe9ce8d4ae2936a7752c92def9406057b6a6dc8
sha256
761404044bf29be8290466fc14c8041cc72224cc7b780b1eb0e0d8cc67b984f0
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_installer
 *
 * @copyright   Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

JFormHelper::loadFieldClass('list');

JLoader::register('InstallerHelper', JPATH_ADMINISTRATOR . '/components/com_installer/helpers/installer.php');

/**
 * Location Field class for the Joomla Framework.
 *
 * @since  3.5
 */
class JFormFieldLocation 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);
	}
}

The same content is in 10 releases, Joomla 3.6.1-rc1 to 3.6.5. See them all, or every version of this file.