PATH:
home
/
centosnipponia
/
public_html
/
nipponiacom2
/
libraries
/
cms
/
html
<?php /** * @package Joomla.Libraries * @subpackage HTML * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_PLATFORM') or die; /** * Utility class working with content language select lists * * @since 1.6 */ abstract class JHtmlContentLanguage { /** * Cached array of the content language items. * * @var array * @since 1.6 */ protected static $items = null; /** * Get a list of the available content language items. * * @param boolean $all True to include All (*) * @param boolean $translate True to translate All * * @return string * * @see JFormFieldContentLanguage * @since 1.6 */ public static function existing($all = false, $translate = false) { if (empty(static::$items)) { // Get the database object and a new query object. $db = JFactory::getDbo(); $query = $db->getQuery(true); // Build the query. $query->select('a.lang_code AS value, a.title AS text, a.title_native') ->from('#__languages AS a') ->where('a.published >= 0') ->order('a.title'); // Set the query and load the options. $db->setQuery($query); static::$items = $db->loadObjectList(); } if ($all) { $all_option = array(new JObject(array('value' => '*', 'text' => $translate ? JText::alt('JALL', 'language') : 'JALL_LANGUAGE'))); return array_merge($all_option, static::$items); } else { return static::$items; } } }
[+]
..
[-] access.php
[edit]
[-] actionsdropdown.php
[edit]
[-] adminlanguage.php
[edit]
[-] batch.php
[edit]
[-] behavior.php
[edit]
[-] bootstrap.php
[edit]
[-] category.php
[edit]
[-] content.php
[edit]
[-] contentlanguage.php
[edit]
[-] date.php
[edit]
[-] debug.php
[edit]
[-] dropdown.php
[edit]
[-] email.php
[edit]
[-] form.php
[edit]
[-] formbehavior.php
[edit]
[-] grid.php
[edit]
[-] icons.php
[edit]
[-] index.html
[edit]
[-] jgrid.php
[edit]
[-] jquery.php
[edit]
[+]
language
[-] links.php
[edit]
[-] list.php
[edit]
[-] menu.php
[edit]
[-] number.php
[edit]
[-] rules.php
[edit]
[-] searchtools.php
[edit]
[-] select.php
[edit]
[-] sidebar.php
[edit]
[-] sliders.php
[edit]
[-] sortablelist.php
[edit]
[-] string.php
[edit]
[-] tabs.php
[edit]
[-] tag.php
[edit]
[-] tel.php
[edit]
[-] user.php
[edit]
[-] .htaccess.disabled
[edit]