本文整理汇总了PHP中JText::alt方法的典型用法代码示例。如果您正苦于以下问题:PHP JText::alt方法的具体用法?PHP JText::alt怎么用?PHP JText::alt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JText
的用法示例。
在下文中一共展示了JText::alt方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getInput
/**
* Method to get the radio button field input markup.
*
* @return string The field input markup.
*
* @since 11.1
*/
protected function getInput()
{
// Initialize variables.
$html = array();
// Initialize some field attributes.
$class = $this->element['class'] ? ' class="radio ' . (string) $this->element['class'] . '"' : ' class="radio"';
// Start the radio field output.
$html[] = '<fieldset id="' . $this->id . '"' . $class . '>';
// Get the field options.
$options = $this->getOptions();
// Build the radio field output.
foreach ($options as $i => $option) {
// Initialize some option attributes.
$checked = (string) $option->value == (string) $this->value ? ' checked="checked"' : '';
$class = !empty($option->class) ? ' class="' . $option->class . '"' : '';
$disabled = !empty($option->disable) ? ' disabled="disabled"' : '';
// Initialize some JavaScript option attributes.
$onclick = !empty($option->onclick) ? ' onclick="' . $option->onclick . '"' : '';
$html[] = '<input type="radio" id="' . $this->id . $i . '" name="' . $this->name . '"' . ' value="' . htmlspecialchars($option->value, ENT_COMPAT, 'UTF-8') . '"' . $checked . $class . $onclick . $disabled . '/>';
$html[] = '<label for="' . $this->id . $i . '"' . $class . '>' . JText::alt($option->text, preg_replace('/[^a-zA-Z0-9_\\-]/', '_', $this->fieldname)) . '</label>';
}
// End the radio field output.
$html[] = '</fieldset>';
return implode($html);
}
示例2: getOptions
protected function getOptions()
{
$options = array();
for ($i = 5; $i <= 50; $i++) {
$option = array('value' => '', 'text' => '', 'disabled' => false, 'class' => '', 'onclick' => '');
if ($i > 0) {
$option['value'] = $i . 'px';
$option['text'] = $i . ' px';
}
$value = $option['value'];
$disabled = (string) $option['disabled'];
$disabled = $disabled == 'true' || $disabled == 'disabled' || $disabled == '1';
$disabled = $disabled || $this->readonly && $value != $this->value;
// Create a new option object based on the <option /> element.
$tmp = JHtml::_('select.option', $value, JText::alt($option['text'], preg_replace('/[^a-zA-Z0-9_\\-]/', '_', $this->fieldname)), 'value', 'text', $disabled);
// Set some option attributes.
$tmp->class = (string) $option['class'];
// Set some JavaScript option attributes.
$tmp->onclick = (string) $option['onclick'];
// Add the option object to the result set.
$options[] = $tmp;
if ($i == 0) {
$i = 5;
}
}
reset($options);
return $options;
}
示例3: getOptions
/**
* Method to get the field list options markup.
*
* @param integer $project The currently selected project
*
* @return array $options The list options markup.
*/
protected function getOptions($project = 0)
{
$options = array();
$user = JFactory::getUser();
$db = JFactory::getDbo();
$query = $db->getQuery(true);
// Construct the query
$query->select('a.id AS value, a.path AS text')->from('#__pf_repo_dirs AS a')->where('a.project_id = ' . $project);
// Implement View Level Access
if (!$user->authorise('core.admin')) {
$groups = implode(',', $user->getAuthorisedViewLevels());
$query->where('a.access IN (' . $groups . ')');
}
$query->order('a.path');
$db->setQuery((string) $query);
$items = (array) $db->loadObjectList();
foreach ($items as $item) {
// Create a new option object based on the <option /> element.
$opt = JHtml::_('select.option', (string) $item->value, JText::alt(trim((string) $item->text), preg_replace('/[^a-zA-Z0-9_\\-]/', '_', $this->fieldname)), 'value', 'text');
// Add the option object to the result set.
$options[] = $opt;
}
reset($options);
return $options;
}
示例4: getInput
protected function getInput()
{
// Initialize variables.
$html = array();
$icon = $this->element['icon'];
$suffix = $this->element['suffixck'];
// Initialize some field attributes.
$class = $this->element['class'] ? ' class="radio ' . (string) $this->element['class'] . '"' : ' class="radio"';
// Start the radio field output.
$html[] = $icon ? '<img src="' . $this->getPathToImages() . '/images/' . $icon . '" style="margin-right:5px;" />' : '<div style="float:left;width:15px;margin-right:5px;"> </div>';
$html[] = '<fieldset id="' . $this->id . '-fieldset" class="radio" style="border-left:1px dotted #333;padding-left:0px;"><div style="width:5px;height:0px;border-bottom:1px dotted #333;"></div>';
$html[] = '<input type="hidden" isradio="1" id="' . $this->id . '" class="' . $this->element['class'] . '" value="' . $this->value . '" />';
// Get the field options.
$options = $this->getOptions();
// Build the radio field output.
foreach ($options as $i => $option) {
// Initialize some option attributes.
$checked = (string) $option->value == (string) $this->value ? ' checked="checked"' : '';
$class = !empty($option->class) ? ' class="' . $option->class . '"' : '';
$disabled = !empty($option->disable) ? ' disabled="disabled"' : '';
// Initialize some JavaScript option attributes.
//$onclick = !empty($option->onclick) ? ' onclick="' . $option->onclick . '"' : '';
$onclick = ' onclick="$(\'' . $this->id . '\').setProperty(\'value\',this.value);"';
// $onclick = ' onclick="alert(this.value);"' ;
$html[] = '<div style="clear:both;"><input type="radio" id="' . $this->id . $i . '" name="' . $this->name . '"' . ' value="' . htmlspecialchars($option->value, ENT_COMPAT, 'UTF-8') . '"' . $checked . $class . $onclick . $disabled . ' style="margin-left:5px;"/>';
$html[] = '<label for="' . $this->id . $i . '"' . $class . '>' . JText::alt($option->text, preg_replace('/[^a-zA-Z0-9_\\-]/', '_', $this->fieldname)) . '</label></div>';
}
// End the radio field output.
$html[] = '<div style="width:5px;height:0px;border-bottom:1px dotted #333;clear:both"></div></fieldset>';
return implode($html);
}
示例5: getOptions
protected function getOptions()
{
$options = array();
$path = $this->get('folder');
if (!is_dir($path))
{
$path = JPATH_ROOT . '/' . $path;
}
// Prepend some default options based on field attributes.
if (!$this->get('hidenone', 0))
{
$options[] = JHtml::_('select.option', '-1', JText::alt('JOPTION_DO_NOT_USE', preg_replace('/[^a-zA-Z0-9_\-]/', '_', $this->fieldname)));
}
if (!$this->get('hidedefault', 0))
{
$options[] = JHtml::_('select.option', '', JText::alt('JOPTION_USE_DEFAULT', preg_replace('/[^a-zA-Z0-9_\-]/', '_', $this->fieldname)));
}
// Get a list of files in the search path with the given filter.
$files = JFolder::files($path, $this->get('filter'));
// Build the options list from the list of files.
if (is_array($files))
{
foreach ($files as $file)
{
// Check to see if the file is in the exclude mask.
if ($this->get('exclude'))
{
if (preg_match(chr(1) . $this->get('exclude') . chr(1), $file))
{
continue;
}
}
// If the extension is to be stripped, do it.
if ($this->get('stripext', 1))
{
$file = JFile::stripExt($file);
}
$label = $file;
if ($this->get('language_prefix'))
{
$label = JText::_($this->get('language_prefix') . strtoupper($label));
}
$options[] = JHtml::_('select.option', $file, $label);
}
}
// Merge any additional options in the XML definition.
$options = array_merge(parent::getOptions(), $options);
return $options;
}
示例6: getInput
/**
* Method to get the radio button field input markup.
*
* @return string The field input markup.
*
* @since 11.1
*/
protected function getInput()
{
// Initialize variables.
$html = array();
// Initialize some field attributes.
$class = $this->element['class'] ? ' class="radio btn-group ' . (string) $this->element['class'] . '"' : ' class="radio btn-group pull-left"';
$translationCacheType = $this->element['cachetype'] ? (string) $this->element['cachetype'] : '';
// Start the radio field output.
$html[] = '<fieldset id="' . $this->id . '"' . $class . '>';
// Get the field options.
$options = $this->getOptions();
// Build the radio field output.
foreach ($options as $i => $option) {
// Initialize some option attributes.
$checked = (string) $option->value == (string) $this->value ? ' checked="checked"' : '';
$class = !empty($option->class) ? ' class="' . $option->class . '"' : '';
$disabled = !empty($option->disable) ? ' disabled="disabled"' : '';
// Initialize some JavaScript option attributes.
$onclick = !empty($option->onclick) ? ' onclick="' . $option->onclick . '"' : '';
$html[] = '<input type="radio" id="' . $this->id . $i . '" name="' . $this->name . '"' . ' value="' . htmlspecialchars($option->value, ENT_COMPAT, 'UTF-8') . '"' . $checked . $class . $onclick . $disabled . '/>';
$html[] = '<label for="' . $this->id . $i . '"' . $class . '>' . JText::alt($option->text, preg_replace('/[^a-zA-Z0-9_\\-]/', '_', $this->fieldname)) . '</label>';
}
// End the radio field output.
$html[] = '</fieldset>';
if ($this->value) {
$html[] = '<span data-content="' . JText::sprintf('COM_JMAP_JOOMLA_' . $translationCacheType . 'CACHE_ENABLED_DESC') . '" class="label label-success hasPopover">' . '<span class="glyphicon glyphicon-ok-sign"></span>' . JText::sprintf('COM_JMAP_JOOMLA_' . $translationCacheType . 'CACHE_ENABLED') . '</span>';
} else {
$html[] = '<span data-content="' . JText::sprintf('COM_JMAP_JOOMLA_' . $translationCacheType . 'CACHE_DISABLED_DESC') . '" class="label label-danger hasPopover">' . '<span class="glyphicon glyphicon-warning-sign"></span>' . JText::sprintf('COM_JMAP_JOOMLA_' . $translationCacheType . 'CACHE_DISABLED') . '</span>';
}
return implode($html);
}
示例7: getInput
protected function getInput()
{
$html = array();
// Initialize some field attributes.
$class = $this->element['class'] ? ' class="radio ' . (string) $this->element['class'] . '"' : ' class="radio"';
$icon = $this->element['icon'];
// Start the radio field output.
$html[] = $icon ? '<div style="display:inline-block;vertical-align:top;margin-top:5px;width:20px;"><img src="' . $this->getPathToElements() . '/images/' . $icon . '" style="margin-right:5px;" /></div>' : '<div style="display:inline-block;width:20px;"></div>';
$html[] = '<fieldset id="' . $this->id . '-fieldset"' . $class . ' style="display:inline-block;">';
$html[] = '<input type="hidden" isradio="1" id="' . $this->id . '" class="' . $this->element['class'] . '" value="' . $this->value . '" />';
// Get the field options.
$options = $this->getOptions();
// Build the radio field output.
foreach ($options as $i => $option) {
if (stristr($option->text, "img:")) {
$option->text = '<img src="' . $this->getPathToElements() . '/images/' . str_replace("img:", "", $option->text) . '" style="margin:0; float:none;" />';
}
// Initialize some option attributes.
$checked = (string) $option->value == (string) $this->value ? ' checked="checked"' : '';
$class = !empty($option->class) ? ' class="' . $option->class . '"' : '';
$disabled = !empty($option->disable) ? ' disabled="disabled"' : '';
// Initialize some JavaScript option attributes.
$onclick = !empty($option->onclick) ? ' onclick="' . $option->onclick . '"' : '';
$onclick = ' onclick="$(\'' . $this->id . '\').setProperty(\'value\',this.value);"';
$html[] = '<input type="radio" id="' . $this->id . $i . '" name="' . $this->name . '"' . ' value="' . htmlspecialchars($option->value, ENT_COMPAT, 'UTF-8') . '"' . $checked . $class . $onclick . $disabled . '/>';
$html[] = '<label for="' . $this->id . $i . '"' . $class . '>' . JText::alt($option->text, preg_replace('/[^a-zA-Z0-9_\\-]/', '_', $this->fieldname)) . '</label>';
}
// End the radio field output.
$html[] = '</fieldset>';
return implode($html);
}
示例8: getInput
protected function getInput()
{
// Initialize variables.
$html = array();
$attr = '';
$db =& JFactory::getDBO();
$currentModId = JRequest::getVar('id');
$queryparams = "SELECT `params` FROM `#__modules` WHERE `id` = {$currentModId}";
$db->setQuery($queryparams);
$data = $db->loadResult();
$params = new JParameter($data);
$options = array();
$querymodtype = "SELECT DISTINCT `module` FROM `#__modules` WHERE `published` = 1 AND `client_id` = 0 AND `id` <> {$currentModId} ORDER BY `module`";
$db->setQuery($querymodtype);
$db->getQuery();
$options = $db->loadObjectList();
$temp_opt = array();
if (count($options)) {
foreach ($options as $idx => $option) {
$tmp = JHtml::_('select.option', (string) $option->module, JText::alt(trim((string) $option->module), preg_replace('/[^a-zA-Z0-9_\\-]/', '_', $this->fieldname)), 'value', 'text', false);
$temp_opt[] = $tmp;
}
}
array_unshift($temp_opt, JHTML::_('select.option', '', JText::_('MOD_OT_MINI_TABS_SELECT_MODULE_TYPE'), 'value', 'text', false));
// Initialize some field attributes.
$attr .= $this->element['class'] ? ' class="' . (string) $this->element['class'] . '"' : '';
$attr .= $this->element['size'] ? ' size="' . (int) $this->element['size'] . '"' : '';
$attr .= $this->multiple ? ' multiple="multiple"' : '';
// Create a regular list.
$html[] = JHtml::_('select.genericlist', $temp_opt, $this->name, trim($attr), 'value', 'text', $this->value, $this->id);
return implode($html);
}
示例9: getOptions
/**
* Method to get the field options.
*
* @return array The field option objects.
* @since 11.1
*/
protected function getOptions()
{
// Initialize variables.
$options = array();
foreach ($this->element->children() as $option) {
// Only add <option /> elements.
if ($option->getName() != 'option') {
continue;
}
// Create a new option object based on the <option /> element.
$tmp = JHtml::_('select.option', (string) $option['value'], JText::alt(trim((string) $option), preg_replace('/[^a-zA-Z0-9_\-]/', '_', $this->fieldname)), 'value', 'text', ((string) $option['disabled']=='true'));
// Set some option attributes.
$tmp->class = (string) $option['class'];
// Set some JavaScript option attributes.
$tmp->onclick = (string) $option['onclick'];
// Add the option object to the result set.
$options[] = $tmp;
}
reset($options);
return $options;
}
示例10: getInput
/**
* Method to get the radio button field input markup.
*
* @return string The field input markup.
*
* @since 11.1
*/
protected function getInput()
{
$html = array();
// Initialize some field attributes.
$class = !empty($this->class) ? ' class="radio ' . $this->class . '"' : ' class="radio"';
$required = $this->required ? ' required aria-required="true"' : '';
$autofocus = $this->autofocus ? ' autofocus' : '';
$disabled = $this->disabled ? ' disabled' : '';
$readonly = $this->readonly;
// Start the radio field output.
$html[] = '<span id="' . $this->id . '"' . $class . $required . $autofocus . $disabled . ' >';
// Get the field options.
$options = $this->getOptions();
// Build the radio field output.
foreach ($options as $i => $option) {
// Initialize some option attributes.
$checked = (string) $option->value == (string) $this->value ? ' checked="checked"' : '';
$class = !empty($option->class) ? ' class="' . $option->class . '"' : '';
$disabled = !empty($option->disable) || $readonly && !$checked;
$disabled = $disabled ? ' disabled' : '';
// Initialize some JavaScript option attributes.
$onclick = !empty($option->onclick) ? ' onclick="' . $option->onclick . '"' : '';
$onchange = !empty($option->onchange) ? ' onchange="' . $option->onchange . '"' : '';
$html[] = '<label for="' . $this->id . $i . '"' . $class . ' >';
$html[] = '<input type="radio" id="' . $this->id . $i . '" name="' . $this->name . '" value="' . htmlspecialchars($option->value, ENT_COMPAT, 'UTF-8') . '"' . $checked . $required . $onclick . $onchange . $disabled . ' /> ';
$html[] = JText::alt($option->text, preg_replace('/[^a-zA-Z0-9_\\-]/', '_', $this->fieldname));
$html[] = '</label>';
$required = '';
}
// End the radio field output.
$html[] = '</span>';
return implode($html);
}
示例11: getOptions
/**
* Method to get the field options.
*
* @return array The field option objects.
*
* @since 1.0
*/
protected function getOptions()
{
$options = array();
$path = $this->directory;
if (!is_dir($path)) {
$path = JPATH_ROOT . '/' . $path;
}
// Prepend some default options based on field attributes.
if (!$this->hideNone) {
$options[] = JHtml::_('select.option', '-1', JText::alt('JOPTION_DO_NOT_USE', preg_replace('/[^a-zA-Z0-9_\\-]/', '_', $this->fieldname)));
}
if (!$this->hideDefault) {
$options[] = JHtml::_('select.option', '', JText::alt('JOPTION_USE_DEFAULT', preg_replace('/[^a-zA-Z0-9_\\-]/', '_', $this->fieldname)));
}
// Get a list of folders in the search path with the given filter.
$folders = JFolder::listFolderTree($path, $this->filter);
// Build the options list from the list of folders.
if (is_array($folders)) {
foreach ($folders as $folder) {
// Check to see if the file is in the exclude mask.
if ($this->exclude) {
if (preg_match(chr(1) . $this->exclude . chr(1), $folder['relname'])) {
continue;
}
}
// Add the folder
$options[] = JHtml::_('select.option', $folder['relname'], $folder['relname']);
}
}
return $options;
}
示例12: getOptions
protected function getOptions()
{
$options = array();
foreach ($this->element->children() as $option) {
$disable = false;
if ($option->getName() != 'option') {
continue;
}
if ($option['filter'] == true) {
if ($option['value'] == "ccomment") {
$file = JPATH_ROOT . '/administrator/components/com_comment/comment.php';
} else {
$com = 'com_' . $option['value'];
$file = JPATH_ROOT . '/administrator/components/' . $com . '/' . $option['value'] . '.php';
}
$file = JPath::clean($file);
if (!JFile::exists($file)) {
$disable = true;
}
}
$tmp = JHtml::_('select.option', (string) $option['value'], JText::alt(trim((string) $option), preg_replace('/[^a-zA-Z0-9_\\-]/', '_', $this->fieldname)), 'value', 'text', $disable);
$tmp->class = (string) $option['class'];
$tmp->onclick = (string) $option['onclick'];
$options[] = $tmp;
}
reset($options);
return $options;
}
示例13: getInput
protected function getInput()
{
$template = basename(dirname(dirname(dirname(__FILE__))));
$document = JFactory::getDocument();
$document->addScript(JURI::root(true) . "/templates/{$template}/XTC/elements/jquery.simpleCombo.js");
$document->addScriptDeclaration("jQuery(document).load(function () {\n\t\t\tjQuery(function() {\n\t\t\t\tjQuery('select.combo').simpleCombo();\n\t\t\t});\n\t\t});");
$options = array();
$custom = true;
foreach ($this->element->children() as $option) {
if ($option->getName() != 'option') {
continue;
}
$tmp = JHtml::_('select.option', (string) $option['value'], JText::alt(trim((string) $option), preg_replace('/[^a-zA-Z0-9_\\-]/', '_', $this->fieldname)), 'value', 'text');
if ($option['value'] == $this->value) {
$custom = false;
}
$tmp->class = (string) $option['class'];
$tmp->onclick = (string) $option['onclick'];
$options[] = $tmp;
}
if ($custom) {
$options[] = JHtml::_('select.option', $this->value, $this->value, 'value', 'text');
}
$html = JHtml::_('select.genericlist', $options, $this->name, 'class="combo inputbox"', 'value', 'text', $this->value, $this->id);
return $html;
}
示例14: getGroups
/**
* Method to get the field option groups.
*
* @return array The field option objects as a nested array in groups.
*
* @since 11.1
* @throws UnexpectedValueException
*/
protected function getGroups()
{
$groups = array();
$label = 0;
foreach ($this->element->children() as $element) {
switch ($element->getName()) {
// The element is an <option />
case 'option':
// Initialize the group if necessary.
if (!isset($groups[$label])) {
$groups[$label] = array();
}
// Create a new option object based on the <option /> element.
$tmp = JHtml::_('select.option', $element['value'] ? (string) $element['value'] : trim((string) $element), JText::alt(trim((string) $element), preg_replace('/[^a-zA-Z0-9_\\-]/', '_', $this->fieldname)), 'value', 'text', (string) $element['disabled'] == 'true');
// Set some option attributes.
$tmp->class = (string) $element['class'];
// Set some JavaScript option attributes.
$tmp->onclick = (string) $element['onclick'];
// Add the option.
$groups[$label][] = $tmp;
break;
// The element is a <group />
// The element is a <group />
case 'group':
// Get the group label.
if ($groupLabel = (string) $element['label']) {
$label = JText::_($groupLabel);
}
// Initialize the group if necessary.
if (!isset($groups[$label])) {
$groups[$label] = array();
}
// Iterate through the children and build an array of options.
foreach ($element->children() as $option) {
// Only add <option /> elements.
if ($option->getName() != 'option') {
continue;
}
// Create a new option object based on the <option /> element.
$tmp = JHtml::_('select.option', $option['value'] ? (string) $option['value'] : JText::_(trim((string) $option)), JText::_(trim((string) $option)), 'value', 'text', (string) $option['disabled'] == 'true');
// Set some option attributes.
$tmp->class = (string) $option['class'];
// Set some JavaScript option attributes.
$tmp->onclick = (string) $option['onclick'];
// Add the option.
$groups[$label][] = $tmp;
}
if ($groupLabel) {
$label = count($groups);
}
break;
// Unknown element type.
// Unknown element type.
default:
throw new UnexpectedValueException(sprintf('Unsupported element %s in JFormFieldGroupedList', $element->getName()), 500);
}
}
reset($groups);
return $groups;
}
示例15: getInput
/**
* Method to get the radio button field input markup.
*
* @return string The field input markup.
*
* @since 11.1
*/
protected function getInput()
{
$doc = JFactory::getDocument();
$doc->addScriptDeclaration("\n\t\t\t\twindow.addEvent('domready', function() {\n\n\t\t\t\t\tvar showDescription = " . $this->value . ";\n\t\t\t\t\tvar lblDescriptionWordLimitation \t= document.id('jform_params_description_word_limitation-lbl');\n\t\t\t\t\tvar eleParent \t\t\t\t\t\t= lblDescriptionWordLimitation.getParent();\n\t\t\t\t\tif (showDescription == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\teleParent.getParent().setStyle('display', 'block');\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\teleParent.getParent().setStyle('display', 'none');\n\t\t\t\t\t}\n\t\t\t\t\t\$\$('#jform_params_show_description1').addEvent('click',function(){\n\t\t\t\t\t\t\teleParent.getParent().setStyle('display', 'block');\n\t\t\t\t\t});\n\n\t\t\t\t\t\$\$('#jform_params_show_description0').addEvent('click',function(){\n\t\t\t\t\t\t\teleParent.getParent().setStyle('display', 'none');\n\t\t\t\t\t});\n\n\t\t\t\t});\n\t\t\t");
// Initialize variables.
$html = array();
// Initialize some field attributes.
$class = $this->element['class'] ? ' class="radio ' . (string) $this->element['class'] . '"' : ' class="radio"';
// Start the radio field output.
$html[] = '<fieldset id="' . $this->id . '"' . $class . '>';
// Get the field options.
$options = $this->getOptions();
// Build the radio field output.
foreach ($options as $i => $option) {
// Initialize some option attributes.
$checked = (string) $option->value == (string) $this->value ? ' checked="checked"' : '';
$class = !empty($option->class) ? ' class="' . $option->class . '"' : '';
$disabled = !empty($option->disable) ? ' disabled="disabled"' : '';
// Initialize some JavaScript option attributes.
$onclick = !empty($option->onclick) ? ' onclick="' . $option->onclick . '"' : '';
$html[] = '<input type="radio" id="' . $this->id . $i . '" name="' . $this->name . '"' . ' value="' . htmlspecialchars($option->value, ENT_COMPAT, 'UTF-8') . '"' . $checked . $class . $onclick . $disabled . '/>';
$html[] = '<label for="' . $this->id . $i . '"' . $class . '>' . JText::alt($option->text, preg_replace('/[^a-zA-Z0-9_\\-]/', '_', $this->fieldname)) . '</label>';
}
// End the radio field output.
$html[] = '</fieldset>';
return implode($html);
}