[xoops-cvslog 1339] CVS update: xoops2jp/html/modules/user/class

Back to archive index

Minahito minah****@users*****
2005年 12月 22日 (木) 20:27:40 JST


Index: xoops2jp/html/modules/user/class/AbstractDeleteAction.class.php
diff -u /dev/null xoops2jp/html/modules/user/class/AbstractDeleteAction.class.php:1.1.2.1
--- /dev/null	Thu Dec 22 20:27:40 2005
+++ xoops2jp/html/modules/user/class/AbstractDeleteAction.class.php	Thu Dec 22 20:27:40 2005
@@ -0,0 +1,51 @@
+<?php
+
+class User_AbstractDeleteAction extends UserAction
+{
+	var $mObject=null;
+	var $mHandler=null;
+
+	function isSecure()
+	{
+		return true;
+	}
+
+	function getDefaultView(&$controller,&$xoopsUser)
+	{
+		$this->_proccessObject($controller);
+
+		if($this->mObject == null) {
+			return USER_FRAME_VIEW_ERROR;
+		}
+
+		return USER_FRAME_VIEW_INPUT;
+	}
+	
+	function execute(&$controller,&$xoopsUser)
+	{
+		$this->_proccessObject($controller);
+
+		if ($this->mObject == null) {
+			return USER_FRAME_VIEW_ERROR;
+		}
+
+		return $this->mHandler->delete($this->mObject) ? USER_FRAME_VIEW_SUCCESS : USER_FRAME_VIEW_ERROR;
+	}
+
+	function _proccessObject(&$controller)
+	{
+		$id = $this->getId();
+		$this->mHandler =& $this->getHandler();
+		$this->mObject =& $this->mHandler->get($id);
+	}
+	
+	function &getHandler($controller)
+	{
+	}
+
+	function getId()
+	{
+	}
+}
+
+?>
\ No newline at end of file


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