CoreFiles by mySites.guru
contentlanguage.php41 lines, 897 bytes, from Joomla_3.7.3-Stable-Full_Package.zip
Raw History Compare with 3.7.2
md5
254783137694c823b4fc794ade3d1518
sha1
bdc998817204d2a95614379447e494eda6fb24ce
sha256
0a1d55267ae18bb1f837fc1d1fe0a9c5353fffd101614a672e40a23db5fd1c21
<?php
/**
 * @package     Joomla.Libraries
 * @subpackage  Form
 *
 * @copyright   Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('JPATH_PLATFORM') or die;

JFormHelper::loadFieldClass('list');

/**
 * 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 8 releases, Joomla 3.7.3-beta1 to 3.7.5. See them all, or every version of this file.