CoreFiles by mySites.guru
templatelocation.php44 lines, 889 bytes, from Joomla_3.5.0-Stable-Full_Package.zip
Raw History Compare with 3.4.8
md5
9c64690f327e7b39568c16adc39aca22
sha1
79bcea1880cde58fa526351f740f0e457f217ad7
sha256
111f85bca9c3d7890531674ef7981a0d487358e53c42349fa65a63df4407e138
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_templates
 *
 * @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');

require_once __DIR__ . '/../../helpers/templates.php';

/**
 * Template Style Field class for the Joomla Framework.
 *
 * @since  3.5
 */
class JFormFieldTemplateLocation extends JFormFieldList
{
	/**
	 * The form field type.
	 *
	 * @var	   string
	 * @since  3.5
	 */
	protected $type = 'TemplateLocation';

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

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

The same content is in 18 releases, Joomla 3.5.0-beta2 to 3.6.0. See them all, or every version of this file.