[xoops-cvslog 3437] CVS update: xoops2jp/html/modules/pm/service

Back to archive index

Minahito minah****@users*****
2006年 7月 7日 (金) 12:18:36 JST


Index: xoops2jp/html/modules/pm/service/LegacyPmService.class.php
diff -u xoops2jp/html/modules/pm/service/LegacyPmService.class.php:1.1.2.3 xoops2jp/html/modules/pm/service/LegacyPmService.class.php:removed
--- xoops2jp/html/modules/pm/service/LegacyPmService.class.php:1.1.2.3	Wed May 24 18:42:25 2006
+++ xoops2jp/html/modules/pm/service/LegacyPmService.class.php	Fri Jul  7 12:18:36 2006
@@ -1,42 +0,0 @@
-<?php
-
-if (!defined('XOOPS_ROOT_PATH')) exit();
-
-require_once XOOPS_ROOT_PATH."/class/XCube_Service.class.php";
-
-/**
- * Sample class
- */
-class LegacyPmService extends XCube_Service
-{
-	function doGetList(&$parameters)
-	{
-		$uid=$parameters['uid'];
-		$pmHandler=&xoops_gethandler('privmessage');
-		$pmObjects =& $pmHandler->getObjectsByFromUid($uid);
-		return $pmObjects;
-	}
-	
-	function doGetCountUnread(&$parameters)
-	{
-		$uid=$parameters['uid'];
-		$pmHandler=&xoops_gethandler('privmessage');
-		return $pmHandler->getUnreadCountByFromUid($uid);
-	}
-	
-	function doSend(&$parameters)
-	{
-		$pmHandler=&xoops_gethandler('privmessage');
-		$pm=&$pmHandler->create();
-		$pm->setVar("to_userid",$parameters['to_uid']);
-		$pm->setVar("from_userid",$parameters['from_uid']);
-		$pm->setVar("subject",$parameters['subject']);
-		$pm->setVar("msg_text",$parameters['message']);
-		
-		if(!$pmHandler->insert($pm)) {
-			$this->setError("Sending error");
-		}
-	}
-}
-
-?>
\ No newline at end of file


xoops-cvslog メーリングリストの案内
Back to archive index