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

Back to archive index

Minahito minah****@users*****
2006年 7月 28日 (金) 17:56:52 JST


Index: xoops2jp/html/modules/user/class/AbstractViewAction.class.php
diff -u /dev/null xoops2jp/html/modules/user/class/AbstractViewAction.class.php:1.1.2.1
--- /dev/null	Fri Jul 28 17:56:52 2006
+++ xoops2jp/html/modules/user/class/AbstractViewAction.class.php	Fri Jul 28 17:56:52 2006
@@ -0,0 +1,49 @@
+<?php
+/**
+ * @package User
+ * @version $Id: AbstractViewAction.class.php,v 1.1.2.1 2006/07/28 08:56:52 minahito Exp $
+ */
+
+class User_AbstractViewAction extends User_Action
+{
+	var $mObject = null;
+	var $mObjectHandler = null;
+
+	function _getId()
+	{
+	}
+
+	function &_getHandler()
+	{
+	}
+
+	function _setupObject()
+	{
+		$id = $this->_getId();
+		
+		$this->mObjectHandler =& $this->_getHandler();
+		
+		$this->mObject =& $this->mObjectHandler->get($id);
+	}
+
+	function prepare(&$controller, &$xoopsUser, &$moduleConfig)
+	{
+		$this->_setupObject();
+	}
+
+	function getDefaultView(&$controller, &$xoopsUser)
+	{
+		if ($this->mObject == null) {
+			return USER_FRAME_VIEW_ERROR;
+		}
+	
+		return USER_FRAME_VIEW_SUCCESS;
+	}
+
+	function execute(&$controller, &$xoopsUser)
+	{
+		return $this->getDefaultView($controller, $xoopsUser);
+	}
+}
+
+?>


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