PATH:
home
/
centosnipponia
/
public_html
/
nipponiacom2
/
administrator
/
components
/
com_localise
/
models
/
fields
<?php /** * @package Com_Localise * @subpackage models * * @copyright Copyright (C) 2005 - 2015 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'); jimport('joomla.filesystem.folder'); include_once JPATH_ADMINISTRATOR . '/components/com_localise/helpers/defines.php'; /** * Renders a list of all possible languages (they must have a site, language and installation part) * Use instead of the joomla library languages element, which only lists languages for one client * * @package Extensions.Components * @subpackage Localise * * @since 1.0 */ class JFormFieldReferenceLanguage extends JFormFieldList { /** * The field type. * * @var string */ protected $type = 'ReferenceLanguage'; /** * Method to get the field input. * * @return string The field input. */ protected function getOptions() { $admin = JLanguage::getKnownLanguages(LOCALISEPATH_ADMINISTRATOR); $site = JLanguage::getKnownLanguages(LOCALISEPATH_SITE); if (JFolder::exists(LOCALISEPATH_INSTALLATION)) { $installation = JLanguage::getKnownLanguages(LOCALISEPATH_INSTALLATION); $languages = array_intersect_key($admin, $site, $installation); } else { $languages = array_intersect_key($admin, $site); } foreach ($languages as $i => $language) { $languages[$i] = JArrayHelper::toObject($language); } JArrayHelper::sortObjects($languages, 'name'); $options = parent::getOptions(); foreach ($languages as $language) { $options[] = JHtml::_('select.option', $language->tag, $language->name); } return $options; } }
[+]
..
[-] client.php
[edit]
[-] corelanguage.php
[edit]
[-] develop.php
[edit]
[-] extensiontranslations.php
[edit]
[-] index.html
[edit]
[-] ini.php
[edit]
[-] key.php
[edit]
[-] keystatus.php
[edit]
[-] language.php
[edit]
[-] legend.php
[edit]
[-] origin.php
[edit]
[-] referencelanguage.php
[edit]
[-] releases.php
[edit]
[-] search.php
[edit]
[-] state.php
[edit]
[-] storage.php
[edit]
[-] translations.php
[edit]
[-] type.php
[edit]
[-] .htaccess.disabled
[edit]