[xoops-cvslog 1814] CVS update: xoops2jp/html/modules/user/actions

アーカイブの一覧に戻る

Minahito minah****@users*****
2006年 1月 17日 (火) 19:34:30 JST


Index: xoops2jp/html/modules/user/actions/UserEdituserAction.class.php
diff -u xoops2jp/html/modules/user/actions/UserEdituserAction.class.php:1.1.2.3 xoops2jp/html/modules/user/actions/UserEdituserAction.class.php:removed
--- xoops2jp/html/modules/user/actions/UserEdituserAction.class.php:1.1.2.3	Wed Nov 16 12:18:58 2005
+++ xoops2jp/html/modules/user/actions/UserEdituserAction.class.php	Tue Jan 17 19:34:30 2006
@@ -1,75 +0,0 @@
-<?php
-
-require_once XOOPS_MODULE_PATH."/user/forms/EditUserForm.class.php";
-
-class UserEdituserAction extends UserAction
-{
-	var $mUid;
-	var $mEditUser=null;
-	var $mActionForm=null;
-	
-	function prepare(&$controller,&$xoopsUser)
-	{
-		$this->mUid=isset($_REQUEST['uid']) ? intval($_REQUEST['uid']) : 0;
-		if($this->mUid!==0) {
-			$memberHandler=&xoops_gethandler('member');
-			$this->mEditUser=&$memberHandler->getUser($this->mUid);
-		}
-		else {
-			$this->mUid=$xoopsUser->getVar('uid');
-			$this->mEditUser=&$xoopsUser;
-		}
-	}
-
-	function execute(&$controller,&$xoopsUser)
-	{
-		$this->_processActionForm($controller);
-		$this->mActionForm->fetch();
-		$this->mActionForm->validate();
-		
-		if($this->mActionForm->hasError()) {
-			return USER_FRAME_VIEW_INPUT;
-		}
-		else {
-			$this->mActionForm->update($xoopsUser);
-			$userHandler=&xoops_gethandler('user');
-			$url="./userinfo.php?uid=".$xoopsUser->getVar('uid');
-			if($userHandler->insert($xoopsUser)) {
-				// SUCCESS
-				$controller->executeForward($url);
-			}
-			else {
-				// ERROR
-				XCube_Utils::redirectHeader($url,1,"ERROR");	// TODO message
-			}
-		}
-	}
-
-	function getDefaultView(&$controller,&$xoopsUser)
-	{
-		$this->_processActionForm($controller);
-		$this->mActionForm->load($xoopsUser);
-
-		return USER_FRAME_VIEW_INPUT;
-	}
-	
-	function isSecure()
-	{
-		return true;
-	}
-	
-	function _processActionForm(&$controller)
-	{
-		$this->mActionForm=new EditUserForm();
-		$this->mActionForm->prepare();
-	}
-
-	function executeViewInput(&$controller,&$xoopsUser,&$renderSystem)
-	{
-		$renderSystem->setTemplateName("user_edituser.html");
-		$renderSystem->setAttribute("thisUser",$this->mEditUser);
-		$renderSystem->setAttribute("actionForm",$this->mActionForm);
-	}
-}
-
-?>
\ No newline at end of file


xoops-cvslog メーリングリストの案内
アーカイブの一覧に戻る