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

Back to archive index

Minahito minah****@users*****
2006年 10月 14日 (土) 20:29:11 JST


Index: xoops2jp/html/modules/user/admin/forms/Mailjob_linkAdminDeletesForm.class.php
diff -u /dev/null xoops2jp/html/modules/user/admin/forms/Mailjob_linkAdminDeletesForm.class.php:1.1.2.1
--- /dev/null	Sat Oct 14 20:29:11 2006
+++ xoops2jp/html/modules/user/admin/forms/Mailjob_linkAdminDeletesForm.class.php	Sat Oct 14 20:29:11 2006
@@ -0,0 +1,39 @@
+<?php
+/**
+ * @package Legacy
+ * @version $Id$
+ */
+
+if (!defined('XOOPS_ROOT_PATH')) exit();
+
+require_once XOOPS_ROOT_PATH."/core/XCube_ActionForm.class.php";
+
+/**
+ * This class is generated by makeActionForm tool.
+ * @auchor makeActionForm
+ */
+class User_Mailjob_linkAdminDeletesForm extends XCube_ActionForm 
+{
+	function getTokenName()
+	{
+		return "module.user.Mailjob_linkAdminDeletesForm.TOKEN." . $this->get('mailjob_id');
+	}
+	
+	/**
+	 * For displaying the confirm-page, don't show CSRF error.
+	 * Always return null.
+	 */
+	function getTokenErrorMessage()
+	{
+		return null;
+	}
+	
+	function prepare()
+	{
+		// set properties
+		$this->mFormProperties['mailjob_id']=new XCube_IntProperty('mailjob_id');
+		$this->mFormProperties['uid']=new XCube_IntArrayProperty('uid');
+	}
+}
+
+?>
Index: xoops2jp/html/modules/user/admin/forms/Mailjob_linkFilterForm.class.php
diff -u /dev/null xoops2jp/html/modules/user/admin/forms/Mailjob_linkFilterForm.class.php:1.1.2.1
--- /dev/null	Sat Oct 14 20:29:11 2006
+++ xoops2jp/html/modules/user/admin/forms/Mailjob_linkFilterForm.class.php	Sat Oct 14 20:29:11 2006
@@ -0,0 +1,44 @@
+<?php
+
+if (!defined('XOOPS_ROOT_PATH')) exit();
+
+require_once XOOPS_MODULE_PATH . "/user/class/AbstractFilterForm.class.php";
+
+define('MAILJOB_LINK_SORT_KEY_MAILJOB_ID', 1);
+define('MAILJOB_LINK_SORT_KEY_UID', 2);
+define('MAILJOB_LINK_SORT_KEY_RETRY', 3);
+define('MAILJOB_LINK_SORT_KEY_MESSAGE', 4);
+
+define('MAILJOB_LINK_SORT_KEY_DEFAULT', MAILJOB_LINK_SORT_KEY_MAILJOB_ID);
+define('MAILJOB_LINK_SORT_KEY_MAXVALUE', 4);
+
+class User_Mailjob_linkFilterForm extends User_AbstractFilterForm
+{
+	var $mSortKeys = array(
+		MAILJOB_LINK_SORT_KEY_DEFAULT => 'mailjob_id',
+		MAILJOB_LINK_SORT_KEY_DEFAULT => 'uid',
+		MAILJOB_LINK_SORT_KEY_MAILJOB_ID => 'mailjob_id',
+		MAILJOB_LINK_SORT_KEY_UID => 'uid',
+		MAILJOB_LINK_SORT_KEY_RETRY => 'retry',
+		MAILJOB_LINK_SORT_KEY_MESSAGE => 'message'
+	);
+	
+	function getDefaultSortKey()
+	{
+		return MAILJOB_LINK_SORT_KEY_DEFAULT;
+	}
+
+	function fetch()
+	{
+		parent::fetch();
+
+		if (isset($_REQUEST['mailjob_id'])) {
+			$this->mNavi->addExtra('mailjob_id', xoops_getrequest('mailjob_id'));
+			$this->_mCriteria->add(new Criteria('mailjob_id', xoops_getrequest('mailjob_id')));
+		}
+	
+		$this->_mCriteria->addSort($this->getSort(), $this->getOrder());
+	}
+}
+
+?>


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