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

Back to archive index

Minahito minah****@users*****
2006年 2月 4日 (土) 12:38:35 JST


Index: xoops2jp/html/modules/user/class/UserModuleAction.class.php
diff -u xoops2jp/html/modules/user/class/UserModuleAction.class.php:1.1.2.1 xoops2jp/html/modules/user/class/UserModuleAction.class.php:removed
--- xoops2jp/html/modules/user/class/UserModuleAction.class.php:1.1.2.1	Fri Nov  4 19:10:36 2005
+++ xoops2jp/html/modules/user/class/UserModuleAction.class.php	Sat Feb  4 12:38:35 2006
@@ -1,56 +0,0 @@
-<?php
-
-class UserModuleAction
-{
-	function prepare()
-	{
-	}
-	
-	function isPermission()
-	{
-		return false;
-	}
-	
-	function isDependsOnActionForm()
-	{
-		return false;
-	}
-
-	/**
-	 */
-	function &getActionForm()
-	{
-	}
-	
-	/**
-	 * @return bool;
-	 */
-	function isSecure()
-	{
-		return false;
-	}
-	
-	function &getMasterForActionForm()
-	{
-		$dmy=null;
-		return $dmy;
-	}
-	
-	function doSuccess(&$actionForm,&$master)
-	{
-	}
-
-	function executePerformSuccessView(&$actionForm,&$xoopsUser,&$renderSystem)
-	{
-	}
-
-	function executePerformSuccessFail(&$actionForm,&$xoopsUser,&$renderSystem)
-	{
-	}
-
-	function executeInitSuccessView(&$actionForm,&$xoopsUser,&$renderSystem)
-	{
-	}
-}
-
-?>
\ No newline at end of file
Index: xoops2jp/html/modules/user/class/UserModuleFrame.class.php
diff -u xoops2jp/html/modules/user/class/UserModuleFrame.class.php:1.1.2.2 xoops2jp/html/modules/user/class/UserModuleFrame.class.php:removed
--- xoops2jp/html/modules/user/class/UserModuleFrame.class.php:1.1.2.2	Tue Nov  8 18:57:00 2005
+++ xoops2jp/html/modules/user/class/UserModuleFrame.class.php	Sat Feb  4 12:38:35 2006
@@ -1,87 +0,0 @@
-<?php
-
-require_once XOOPS_ROOT_PATH."/class/XCube_ActionStrategy.class.php";
-
-define ("USER_MODULE_PERFORM_SUCCESS",1);
-define ("USER_MODULE_PERFORM_FAIL",2);
-define ("USER_MODULE_INIT_SUCCESS",3);
-
-class UserModuleFrame extends XCube_ActionStrategy
-{
-	var $mActionName="";
-	var $mAction;
-	
-	var $mActionForm=null;
-	
-	function UserModuleFrame(&$action)
-	{
-		$this->mAction=&$action;
-	}
-	
-	function prepare(&$controller)
-	{
-
-
-	}
-
-	function execute(&$controller)
-	{
-		global $xoopsTpl;
-
-		$xoopsUser=&$controller->getXoopsUser();
-		if($this->mAction->isSecure()&&!is_object($xoopsUser)){
-			XCube_Utils::redirectHeader(XOOPS_URL,1);
-		}
-		
-		$this->mAction->prepare($xoopsUser);
-		
-		if(!$this->mAction->isPermission($xoopsUser)) {
-			XCube_Utils::redirectHeader(XOOPS_URL,1);
-		}
-
-		$formFlag=USER_MODULE_INIT_SUCCESS;
-		$master=&$this->mAction->getMasterForActionForm();
-		if($this->mAction->isDependsOnActionForm()) {
-			$this->mActionForm=&$this->mAction->getActionForm();
-			$formFlag=$this->_processActionForm($master);
-		}
-
-		switch($formFlag) {
-			case USER_MODULE_PERFORM_SUCCESS:
-				$this->mAction->doSuccess($this->mActionForm,$master);
-				$this->mAction->executePerformSuccessView($this->mActionForm,$xoopsUser,$controller->mRenderSystem);
-				break;
-
-			case USER_MODULE_PERFORM_FAIL:
-				$this->mAction->executePerformFailView($this->mActionForm,$xoopsUser,$controller->mRenderSystem);
-				break;
-
-			case USER_MODULE_INIT_SUCCESS:
-				$this->mAction->executeInitSuccessView($this->mActionForm,$xoopsUser,$controller->mRenderSystem);
-				break;
-		}
-	}
-	
-	function _processActionForm(&$master)
-	{
-		$this->mActionForm->prepare();
-
-		if(xoops_getenv("REQUEST_METHOD")=="POST") {
-			$this->mActionForm->fetch();
-			$this->mActionForm->validate();
-			if($this->mActionForm->hasError()) {
-				return USER_MODULE_PERFORM_FAIL;
-			}
-			else {
-				$this->mActionForm->update($master);
-				return USER_MODULE_PERFORM_SUCCESS;
-			}
-		}
-		else {
-			$this->mActionForm->load($master);
-			return USER_MODULE_INIT_SUCCESS;
-		}
-	}
-}
-
-?>
\ No newline at end of file


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