Minahito
minah****@users*****
2006年 2月 2日 (木) 17:45:41 JST
Index: xoops2jp/html/modules/user/forms/UserSimpleActionForm.class.php diff -u xoops2jp/html/modules/user/forms/UserSimpleActionForm.class.php:1.1.2.2 xoops2jp/html/modules/user/forms/UserSimpleActionForm.class.php:removed --- xoops2jp/html/modules/user/forms/UserSimpleActionForm.class.php:1.1.2.2 Wed Oct 26 01:46:18 2005 +++ xoops2jp/html/modules/user/forms/UserSimpleActionForm.class.php Thu Feb 2 17:45:41 2006 @@ -1,70 +0,0 @@ -<?php -// $Id: UserSimpleActionForm.class.php,v 1.1.2.2 2005/10/25 16:46:18 minahito Exp $ -// ------------------------------------------------------------------------ // -// XOOPS - PHP Content Management System // -// Copyright (c) 2005 XOOPS Cube.org // -// <http://www.xoopscube.org/> // -// ------------------------------------------------------------------------ // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// You may not change or alter any portion of this comment or credits // -// of supporting developers from this source code or any supporting // -// source code which is considered copyrighted (c) material of the // -// original comment or credit authors. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details. // -// // -// You should have received a copy of the GNU General Public License // -// along with this program; if not, write to the Free Software // -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// ------------------------------------------------------------------------ // - -define("UCONTROLLER_ACTIONFORM_INIT",0); -define("UCONTROLLER_ACTIONFORM_SUCCESS",1); -define("UCONTROLLER_ACTIONFORM_ERROR",2); - -class UserModActionForm -{ - var $mErrorMessages = array(); - - function setup(&$master) - { - if($_SERVER['REQUEST_METHOD']=="POST") { - $this->fetch($master); - $this->validate($master); - } - else { - $this->load($master); - } - } - - function load(&$master) - { - } - - function update(&$master) - { - } - - function addErrorMessage($message) - { - $this->mErrorMessages[]=$message; - } - - function getStatus() - { - if($_SERVER['REQUEST_METHOD']=="POST") - return count($this->mErrorMessages) ? UCONTROLLER_ACTION_ERROR : UCONTROLLER_ACTION_SUCCESS; - else - return UCONTROLLER_ACTION_INIT; - } -} - - -?> \ No newline at end of file