module->name])) { if (! is_array($result[$mmo->module->name])) $result[$mmo->module->name] = array($result[$mmo->module->name]); array_push($result[$mmo->module->name],$mmo); continue; } else { $result[$mmo->module->name] = $mmo; } } return $result; } public static function items($type,array $list=array()) { $result = array(); if (empty(URL::$method_directory[$type])) return NULL; $ao = Auth::instance()->get_user(); if (! $ao->loaded()) return FALSE; foreach ($ao->methods() as $mmo) if ($mmo->menu_display AND $type == $mmo->directory()) if (empty($result[$mmo->id])) $result[$mmo->id] = $mmo; return self::collapse($result); } public static function ul($type,array $result,array $append=NULL,$sub=FALSE,$method=NULL) { $output = $sub ? '