Exemplo n.º 1
0
/**
* @param string
* @return string
*/
function mosParseParams($txt)
{
    return mosParameters::parse($txt);
}
Exemplo n.º 2
0
 /**
 * @var string The name of the form element
 * @var string The value of the element
 * @var object The xml element for the parameter
 * @return string The html for the element
 */
 function _form_mos_menu($name, $value, &$node)
 {
     global $database;
     $database->setQuery("SELECT m.params" . "\n FROM #__modules AS m" . "\n WHERE m.module = 'mod_mainmenu'");
     $menus = $database->loadObjectList();
     $total = count($menus);
     foreach ($menus as $menu) {
         $params = mosParameters::parse($menu->params);
         $menutype = @$params->menutype;
         $options[] = mosHTML::makeOption($menutype, $menutype);
     }
     array_unshift($options, mosHTML::makeOption('', '- Select Menu -'));
     return mosHTML::selectList($options, "params[{$name}]", "class=\"inputbox\"", 'value', 'text', $value);
 }