Преглед на файлове

Portal (regression with the latest implementation, causing a warning)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1590 a333f486-631f-4898-b8df-5754b55c2be0
romainq преди 13 години
родител
ревизия
4798d06739
променени са 2 файла, в които са добавени 20 реда и са изтрити 20 реда
  1. 20 0
      modules/itop-welcome-itil/model.itop-welcome-itil.php
  2. 0 20
      portal/index.php

+ 20 - 0
modules/itop-welcome-itil/model.itop-welcome-itil.php

@@ -63,4 +63,24 @@ class ItopWelcome extends ModuleHandlerAPI
 	}
 }
 
+/**
+ * Direct end-users to the standard Portal application
+ */ 
+class MyPortalURLMaker implements iDBObjectURLMaker
+{
+	public static function MakeObjectURL($sClass, $iId)
+	{
+		switch($sClass)
+		{
+		case 'UserRequest':
+			$sAbsoluteUrl = utils::GetAbsoluteUrlAppRoot();
+			$sUrl = "{$sAbsoluteUrl}portal/index.php?operation=details&class=$sClass&id=$iId";
+			return $sUrl;
+
+		default:
+			return '';
+		}
+	}
+}
+
 ?>

+ 0 - 20
portal/index.php

@@ -38,26 +38,6 @@ define('VALIDATE_SERVICESUBCATEGORY_QUERY', 'SELECT ServiceSubcategory AS Sub JO
 define('ALL_PARAMS', 'from_service_id,org_id,caller_id,service_id,servicesubcategory_id,title,description,impact,urgency,workgroup_id,moreinfo,caller_id,start_date,end_date,duration,impact_duration');
 
 
-/**
- * Direct end-users to the standard Portal application
- */ 
-class MyPortalURLMaker implements iDBObjectURLMaker
-{
-	public static function MakeObjectURL($sClass, $iId)
-	{
-		switch($sClass)
-		{
-		case 'UserRequest':
-			$sAbsoluteUrl = utils::GetAbsoluteUrlAppRoot();
-			$sUrl = "{$sAbsoluteUrl}portal/index.php?operation=details&class=$sClass&id=$iId";
-			return $sUrl;
-
-		default:
-			return '';
-		}
-	}
-}
-
 
 /**
  * Displays the portal main menu