[xoops-cvslog 3753] CVS update: xoops2jp/html/modules/user/admin/forms

アーカイブの一覧に戻る

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


Index: xoops2jp/html/modules/user/admin/forms/UserRecountForm.class.php
diff -u /dev/null xoops2jp/html/modules/user/admin/forms/UserRecountForm.class.php:1.1.2.1
--- /dev/null	Fri Jul 28 17:55:58 2006
+++ xoops2jp/html/modules/user/admin/forms/UserRecountForm.class.php	Fri Jul 28 17:55:58 2006
@@ -0,0 +1,48 @@
+<?php
+/**
+ * @package User
+ * @version $Id: UserRecountForm.class.php,v 1.1.2.1 2006/07/28 08:55:58 minahito Exp $
+ */
+
+if (!defined('XOOPS_ROOT_PATH')) exit();
+
+require_once XOOPS_ROOT_PATH . "/class/XCube_ActionForm.class.php";
+require_once XOOPS_MODULE_PATH . "/base/class/Legacy_Validator.class.php";
+
+class User_RecountForm extends XCube_ActionForm
+{
+	function getTokenName()
+	{
+		return "module.user.RecountForm.TOKEN" . $this->get('uid');
+	}
+
+	function prepare()
+	{
+		//
+		// Set form properties
+		//
+		$this->mFormProperties['uid'] =& new XCube_IntProperty('uid');
+	
+		//
+		// Set field properties
+		//
+		$this->mFieldProperties['uid'] =& new XCube_FieldProperty($this);
+		$this->mFieldProperties['uid']->setDependsByArray(array('required','objectExist'));
+		$this->mFieldProperties['uid']->addMessage('required', _AD_USER_ERROR_REQUIRED, _AD_USER_LANG_UID);
+		$this->mFieldProperties['uid']->addMessage('objectExist', _AD_USER_ERROR_OBJECTEXIST, _AD_USER_LANG_UID);
+		$this->mFieldProperties['uid']->addVar('handler', 'users');
+		$this->mFieldProperties['uid']->addVar('module', 'user');
+	}
+
+	function load(&$obj)
+	{
+		$this->set('uid', $obj->get('uid'));
+	}
+
+	function update(&$obj)
+	{
+		$obj->set('uid', $this->get('uid'));
+	}
+}
+
+?>


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