1 <?php
2 /**
3 * @package Joomla.Libraries
4 * @subpackage Form
5 *
6 * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
7 * @license GNU General Public License version 2 or later; see LICENSE.txt
8 */
9
10 defined('JPATH_PLATFORM') or die;
11
12 JFormHelper::loadFieldClass('list');
13
14 /**
15 * Provides a list of content languages
16 *
17 * @see JFormFieldLanguage for a select list of application languages.
18 * @since 1.6
19 */
20 class JFormFieldContentlanguage extends JFormFieldList
21 {
22 /**
23 * The form field type.
24 *
25 * @var string
26 * @since 1.6
27 */
28 public $type = 'ContentLanguage';
29
30 /**
31 * Method to get the field options for content languages.
32 *
33 * @return array The options the field is going to show.
34 *
35 * @since 1.6
36 */
37 protected function getOptions()
38 {
39 return array_merge(parent::getOptions(), JHtml::_('contentlanguage.existing'));
40 }
41 }
42