[xoops-cvslog 3418] CVS update: xoops2jp/html/modules/pm/forms

Zurück zum Archiv-Index

Minahito minah****@users*****
2006年 7月 4日 (火) 18:49:32 JST


Index: xoops2jp/html/modules/pm/forms/PmDeleteForm.class.php
diff -u /dev/null xoops2jp/html/modules/pm/forms/PmDeleteForm.class.php:1.1.2.1
--- /dev/null	Tue Jul  4 18:49:32 2006
+++ xoops2jp/html/modules/pm/forms/PmDeleteForm.class.php	Tue Jul  4 18:49:31 2006
@@ -0,0 +1,33 @@
+<?php
+
+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 Pm_PmDeleteForm extends XCube_ActionForm
+{
+	function getTokenName()
+	{
+		return "module.pm.PmDeleteForm.TOKEN";
+	}
+
+	function prepare()
+	{
+		//
+		// Set form properties
+		//
+		$this->mFormProperties['msg_id'] =& new XCube_IntArrayProperty('msg_id');
+	
+		//
+		// Set field properties
+		//
+		$this->mFieldProperties['msg_id'] =& new XCube_FieldProperty($this);
+		$this->mFieldProperties['msg_id']->setDependsByArray(array('required','objectExist'));
+		$this->mFieldProperties['msg_id']->addMessage('required', _MD_PM_ERROR_REQUIRED, _MD_PM_LANG_MSG_ID);
+		$this->mFieldProperties['msg_id']->addMessage('objectExist', _MD_PM_ERROR_OBJECTEXIST, _MD_PM_LANG_MSG_ID);
+		$this->mFieldProperties['msg_id']->addVar('handler', 'privmessage');
+	}
+}
+
+?>


xoops-cvslog メーリングリストの案内
Zurück zum Archiv-Index