| [ Index ] |
PHP Cross Reference of Joomla 2.5.4 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Joomla.Platform 4 * @subpackage HTML 5 * 6 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. 7 * @license GNU General Public License version 2 or later; see LICENSE 8 */ 9 10 defined('JPATH_PLATFORM') or die; 11 12 require_once dirname(__FILE__) . '/list.php'; 13 14 /** 15 * Renders a select list of Asset Groups 16 * 17 * @package Joomla.Platform 18 * @subpackage Parameter 19 * @since 11.1 20 * @deprecated Use JFormFieldContentLanguage instead. 21 * @note Be careful in replacing to note that JFormFieldConentLanguage does not end in s. 22 */ 23 class JElementContentLanguages extends JElementList 24 { 25 /** 26 * Element name 27 * 28 * @var string 29 */ 30 protected $_name = 'ContentLanguages'; 31 32 /** 33 * Get the options for the element 34 * 35 * @param JXMLElement &$node JXMLElement node object containing the settings for the element 36 * 37 * @return array 38 * 39 * @since 11.1 40 * 41 * @deprecated 12.1 Use JFormFieldContentLanguage::getOptions instead 42 */ 43 protected function _getOptions(&$node) 44 { 45 // Deprecation warning. 46 JLog::add('JElementContentLanguages::_getOptions() is deprecated.', JLog::WARNING, 'deprecated'); 47 48 $db = JFactory::getDbo(); 49 $query = $db->getQuery(true); 50 51 $query->select('a.lang_code AS value, a.title AS text, a.title_native'); 52 $query->from('#__languages AS a'); 53 $query->where('a.published >= 0'); 54 $query->order('a.title'); 55 56 // Get the options. 57 $db->setQuery($query); 58 $options = $db->loadObjectList(); 59 60 // Check for a database error. 61 if ($db->getErrorNum()) 62 { 63 JError::raiseWarning(500, $db->getErrorMsg()); 64 } 65 66 // Merge any additional options in the XML definition. 67 $options = array_merge(parent::_getOptions($node), $options); 68 69 return $options; 70 } 71 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Tue Apr 3 11:40:28 2012 | Cross-referenced by PHPXref 0.7.1 |