[xoops-cvslog 5852] CVS update: xoops2jp/html/modules/pm/preload

Zurück zum Archiv-Index

Minahito minah****@users*****
2006年 11月 15日 (水) 19:42:27 JST


Index: xoops2jp/html/modules/pm/preload/Preload.class.php
diff -u xoops2jp/html/modules/pm/preload/Preload.class.php:1.1.2.6 xoops2jp/html/modules/pm/preload/Preload.class.php:1.1.2.6.2.1
--- xoops2jp/html/modules/pm/preload/Preload.class.php:1.1.2.6	Fri Sep 22 19:06:16 2006
+++ xoops2jp/html/modules/pm/preload/Preload.class.php	Wed Nov 15 19:42:27 2006
@@ -6,28 +6,16 @@
 {
 	function preBlockFilter()
 	{
+		require_once XOOPS_MODULE_PATH . "/pm/service/Service.class.php";
+		$service =& new Pm_Service();
+		$service->prepare();
+		
+		$this->mRoot->mServiceManager->addService('privateMessage', $service);
+
 		$root =& XCube_Root::getSingleton();
 		$root->mDelegateManager->add('Legacypage.Viewpmsg.Access', "Pm_Preload::accessToViewpmsg");
 		$root->mDelegateManager->add('Legacypage.Readpmsg.Access', "Pm_Preload::accessToReadpmsg");
 		$root->mDelegateManager->add('Legacypage.Pmlite.Access', "Pm_Preload::accessToPmlite");
-		
-		$this->mController->mGetPMInboxUrl->add("Pm_Preload::getPmInboxUrl");
-		$this->mController->mGetCountUnreadPM->add("Pm_Preload::getCountUnreadPM");
-	}
-	
-	function getPmInboxUrl(&$url, $uid)
-	{
-		if ($uid > 0) {
-			$url = XOOPS_MODULE_URL . "/pm/index.php";
-		}
-	}
-	
-	function getCountUnreadPM(&$count, $uid)
-	{
-		if ($uid > 0) {
-			$handler =& xoops_gethandler('privmessage');
-			$count = $handler->getCountUnreadByFromUid($uid);
-		}
 	}
 	
 	function accessToReadpmsg()


xoops-cvslog メーリングリストの案内
Zurück zum Archiv-Index