* @link http://www.nonumber.nl/modalizer * @copyright Copyright (C) 2008 NoNumber! All Rights Reserved * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL */ // Ensure this file is being included by a parent file defined('_JEXEC') or die( 'Restricted access' ); /** * Radio List Element * * @since Class available since Release 1.2.0 */ class JElementRadioList extends JElement { /** * Element name * * @access protected * @var string */ var $_name = 'RadioList'; function fetchElement( $name, $value, &$node, $control_name ) { $options = array (); foreach ($node->children() as $option) { $val = $option->attributes('value'); $text = $option->data(); $options[] = JHTML::_( 'select.option', $val, JText::_( $text ).'
' ); } return JHTML::_('select.radiolist', $options, ''.$control_name.'['.$name.']', '', 'value', 'text', $value, $control_name.$name ); } }