[xoops-cvslog 3435] CVS update: xoops2jp/html/modules/pm/kernel

Back to archive index

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


Index: xoops2jp/html/modules/pm/kernel/PmEventProxyRegister.class.php
diff -u xoops2jp/html/modules/pm/kernel/PmEventProxyRegister.class.php:1.1.2.5 xoops2jp/html/modules/pm/kernel/PmEventProxyRegister.class.php:removed
--- xoops2jp/html/modules/pm/kernel/PmEventProxyRegister.class.php:1.1.2.5	Tue Mar 28 22:30:49 2006
+++ xoops2jp/html/modules/pm/kernel/PmEventProxyRegister.class.php	Fri Jul  7 12:17:57 2006
@@ -1,31 +0,0 @@
-<?php
-
-if (!defined('XOOPS_ROOT_PATH')) exit();
-
-require_once XOOPS_ROOT_PATH."/class/XCube_EventManager.class.php";
-
-class PmEventProxyRegister extends XCube_EventProxyRegister
-{
-	var $_mList=array("Legacypage.Viewpmsg.Access","Legacypage.Pmlite.Access","Legacypage.Readpmsg.Access");
-	
-	function getEventNameList()
-	{
-		return $this->_mList;
-	}
-	
-	function &createLegacypage_Viewpmsg_AccessDelegate()
-	{
-		require_once XOOPS_MODULE_PATH."/pm/kernel/PmEventFunction.class.php";
-		$delegate=new XCube_Delegate("PmEventFunction","AccessToViewpmsg");
-		return $delegate;
-	}
-
-	function &createLegacypage_Pmlite_AccessDelegate()
-	{
-		require_once XOOPS_MODULE_PATH."/pm/kernel/PmEventFunction.class.php";
-		$delegate=new XCube_Delegate("PmEventFunction","AccessToPmlite");
-		return $delegate;
-	}
-}
-
-?>
Index: xoops2jp/html/modules/pm/kernel/PmEventFunction.class.php
diff -u xoops2jp/html/modules/pm/kernel/PmEventFunction.class.php:1.1.2.4 xoops2jp/html/modules/pm/kernel/PmEventFunction.class.php:removed
--- xoops2jp/html/modules/pm/kernel/PmEventFunction.class.php:1.1.2.4	Sun Nov 13 13:49:29 2005
+++ xoops2jp/html/modules/pm/kernel/PmEventFunction.class.php	Fri Jul  7 12:17:57 2006
@@ -1,34 +0,0 @@
-<?php
-
-/* TODO: Add code here */
-class PmEventFunction
-{
-	function AccessToViewpmsg(&$controller,$eventArgs)
-	{
-		$controller->executeForward(XOOPS_MODULE_URL."/pm/index.php");
-	}
-
-	function AccessToReadpmsg(&$controller,$eventArgs)
-	{
-		$msg_id=intval($_GET['msg_id']);
-		$controller->executeForward(XOOPS_MODULE_URL."/pm/index.php?action=read&msg_id=".$msg_id);
-	}
-
-	function AccessToPmlite(&$controller,$eventArgs)
-	{
-		//
-		// Does this access request reply mode?
-		//
-		$reply=isset($_GET['reply']) ? intval($_GET['reply']) : null;
-		$msg_id=isset($_GET['msg_id']) ? intval($_GET['msg_id']) : 0;
-
-		if($reply==null||$msg_id==0) {
-			$controller->executeForward(XOOPS_MODULE_URL."/pm/pmlite.php");
-		}
-		else {
-			$controller->executeForward(XOOPS_MODULE_URL."/pm/pmlite.php?reply=1&msg_id=".$msg_id);
-		}
-	}
-}
-
-?>
\ No newline at end of file
Index: xoops2jp/html/modules/pm/kernel/PrivateMessage.class.php
diff -u xoops2jp/html/modules/pm/kernel/PrivateMessage.class.php:1.1.2.2 xoops2jp/html/modules/pm/kernel/PrivateMessage.class.php:removed
--- xoops2jp/html/modules/pm/kernel/PrivateMessage.class.php:1.1.2.2	Tue Mar 28 22:30:49 2006
+++ xoops2jp/html/modules/pm/kernel/PrivateMessage.class.php	Fri Jul  7 12:17:57 2006
@@ -1,85 +0,0 @@
-<?php
-
-if (!defined('XOOPS_ROOT_PATH')) exit();
-
-/**
- * To one user, From one user, No CC, No attach.
- */
-class PrivateMessage
-{
-	var $mToUsers=array();
-	var $mFromUsers=array();
-	var $mSubject=null;
-	var $mMessage=null;
-	
-	function PrivateMessage()
-	{
-	}
-	
-	function setToUsers(&$users)
-	{
-		if(is_array($users))
-			$user=&$users[0];
-		else $user=&$users;
-		
-		$this->_setToUser($user);
-	}
-	
-	function _setToUser(&$user)
-	{
-		$this->mToUsers[0]=&$user;
-	}
-	
-	function setFromUsers(&$users)
-	{
-		if(is_array($users))
-			$user=&$users[0];
-		else
-			$user=&$users;
-		
-		$this->_setFromUser($user);
-	}
-	
-	function _setFromUser(&$user)
-	{
-		$this->mFromUsers[0]=&$user;
-	}
-	
-	function setSubject($subject)
-	{
-		$this->mSubject=$subject;
-	}
-	
-	function setMessage($message)
-	{
-		$this->mMessage=$message;
-	}
-	
-	/**
-	 * @return bool
-	 */
-	function send()
-	{
-		$pmHandler=&xoops_gethandler('privmessage');
-		$pm=&$pmHandler->create();
-		$pm->setVar("to_userid",$this->mToUsers[0]->getVar('uid'));
-		$pm->setVar("from_userid",$this->mFromUsers[0]->getVar('uid'));
-		$pm->setVar("subject",$this->mSubject);
-		$pm->setVar("msg_text",$this->mMessage);
-
-		return $pmHandler->insert($pm);
-	}
-}
-
-// Wmm...
-class PrivateMessageManager
-{
-	function &create()
-	{
-		$instance=new PrivateMessage();
-		return $instance;
-	}
-}
-
-
-?>
\ No newline at end of file


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