| [ 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 /** 13 * Renders a editors element 14 * 15 * @package Joomla.Platform 16 * @subpackage Parameter 17 * @since 11.1 18 * @deprecated Use JFormFieldEditors instead 19 */ 20 class JElementEditors extends JElement 21 { 22 /** 23 * Element name 24 * 25 * @var string 26 */ 27 protected $_name = 'Editors'; 28 29 /** 30 * Fetch an editor element 31 * 32 * @param string $name Element name 33 * @param string $value Element value 34 * @param JXMLElement &$node JXMLElement node object containing the settings for the element 35 * @param string $control_name Control name 36 * 37 * @return string 38 * 39 * @deprecated 12.1 40 * @see JFormFieldEditors::getOptions 41 * @since 11.1 42 */ 43 public function fetchElement($name, $value, &$node, $control_name) 44 { 45 // Deprecation warning. 46 JLog::add('JElementEditor::fetchElement is deprecated.', JLog::WARNING, 'deprecated'); 47 48 $db = JFactory::getDbo(); 49 $user = JFactory::getUser(); 50 51 // compile list of the editors 52 $query = 'SELECT element AS value, name AS text' . ' FROM #__extensions' . ' WHERE folder = "editors"' . ' AND type = "plugin"' 53 . ' AND enabled = 1' . ' ORDER BY ordering, name'; 54 $db->setQuery($query); 55 $editors = $db->loadObjectList(); 56 57 array_unshift($editors, JHtml::_('select.option', '', JText::_('JOPTION_SELECT_EDITOR'))); 58 59 return JHtml::_( 60 'select.genericlist', 61 $editors, 62 $control_name . '[' . $name . ']', 63 array('id' => $control_name . $name, 'list.attr' => 'class="inputbox"', 'list.select' => $value) 64 ); 65 } 66 }
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 |