CoreFiles by mySites.guru
language.php43 lines, 1,044 bytes, from Joomla_3.4.7-Stable-Full_Package.zip
Raw History Compare with 3.4.6
md5
050860d2e24c0dbdfe6b8294073a32d0
sha1
117de2528f0de7bd3c90a62872ba36c6a9cfcf88
sha256
302c561015c0d1bfe08e8d4f743ae9d6875ba33958e04b564c13fd337af194fc
<?php
/**
 * @package    FrameworkOnFramework
 * @subpackage form
 * @copyright   Copyright (C) 2010 - 2015 Nicholas K. Dionysopoulos / Akeeba Ltd. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */
// Protect from unauthorized access
defined('FOF_INCLUDED') or die;

/**
 * Language field header
 *
 * @package  FrameworkOnFramework
 * @since    2.0
 */
class FOFFormHeaderLanguage extends FOFFormHeaderFieldselectable
{
	/**
	 * Method to get the filter options.
	 *
	 * @return  array  The filter option objects.
	 *
	 * @since   2.0
	 */
	protected function getOptions()
	{
		// Initialize some field attributes.
		$client = (string) $this->element['client'];

		if ($client != 'site' && $client != 'administrator')
		{
			$client = 'site';
		}

		// Merge any additional options in the XML definition.
		$options = array_merge(
			parent::getOptions(), JLanguageHelper::createLanguageList($this->value, constant('JPATH_' . strtoupper($client)), true, true)
		);

		return $options;
	}
}

The same content is in 37 releases, Joomla 3.4.1-rc to 3.6.2. See them all, or every version of this file.