CoreFiles by mySites.guru
contentlanguage.php42 lines, 938 bytes, from Joomla_3.6.2-Stable-Full_Package.zip
Raw History Compare with 3.6.1
md5
12a19beeed565979eadb5fa668b6d71c
sha1
c4dae24a57304e969f81017eee1f0bdba24fdf26
sha256
48e3cf33b6ae8b841c242886ddd2e2cfa69ce72b329ad058a25dbee9aff7a8b0
<?php
/**
 * @package     Joomla.Libraries
 * @subpackage  Form
 *
 * @copyright   Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE
 */

defined('JPATH_PLATFORM') or die;

JFormHelper::loadFieldClass('list');

/**
 * Form Field class for the Joomla Platform.
 * Provides a list of content languages
 *
 * @see    JFormFieldLanguage for a select list of application languages.
 * @since  1.6
 */
class JFormFieldContentlanguage extends JFormFieldList
{
	/**
	 * The form field type.
	 *
	 * @var    string
	 * @since  1.6
	 */
	public $type = 'ContentLanguage';

	/**
	 * Method to get the field options for content languages.
	 *
	 * @return  array  The options the field is going to show.
	 *
	 * @since   1.6
	 */
	protected function getOptions()
	{
		return array_merge(parent::getOptions(), JHtml::_('contentlanguage.existing'));
	}
}

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