[xoops-cvslog 1938] CVS update: xoops2jp/html/modules/base/admin/forms

Zurück zum Archiv-Index

Minahito minah****@users*****
2006年 1月 26日 (木) 01:17:46 JST


Index: xoops2jp/html/modules/base/admin/forms/CommentAdminDeleteForm.class.php
diff -u /dev/null xoops2jp/html/modules/base/admin/forms/CommentAdminDeleteForm.class.php:1.1.2.1
--- /dev/null	Thu Jan 26 01:17:46 2006
+++ xoops2jp/html/modules/base/admin/forms/CommentAdminDeleteForm.class.php	Thu Jan 26 01:17:45 2006
@@ -0,0 +1,41 @@
+<?php
+
+require_once XOOPS_ROOT_PATH . "/class/XCube_ActionForm.class.php";
+
+/**
+ * This class is generated by makeActionForm tool.
+ */
+class Legacy_CommentAdminDeleteForm extends XCube_ActionForm
+{
+	function getTokenName()
+	{
+		return "module.base.XoopscommentsAdminDeleteForm.TOKEN";
+	}
+
+	function prepare()
+	{
+		//
+		// Set form properties
+		//
+		$this->mFormProperties['com_id'] =& new XCube_IntProperty('com_id');
+
+		//
+		// Set field properties
+		//
+		$this->mFieldProperties['com_id'] =& new XCube_FieldProperty($this);
+		$this->mFieldProperties['com_id']->setDependsByArray(array('required'));
+		$this->mFieldProperties['com_id']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_COM_ID);
+	}
+
+	function load(&$obj)
+	{
+		$this->setVar('com_id', $obj->get('com_id'));
+	}
+
+	function update(&$obj)
+	{
+		$obj->setVar('com_id', $this->get('com_id'));
+	}
+}
+
+?>
Index: xoops2jp/html/modules/base/admin/forms/CommentAdminEditForm.class.php
diff -u /dev/null xoops2jp/html/modules/base/admin/forms/CommentAdminEditForm.class.php:1.1.2.1
--- /dev/null	Thu Jan 26 01:17:46 2006
+++ xoops2jp/html/modules/base/admin/forms/CommentAdminEditForm.class.php	Thu Jan 26 01:17:45 2006
@@ -0,0 +1,154 @@
+<?php
+
+require_once XOOPS_ROOT_PATH . "/class/XCube_ActionForm.class.php";
+
+/**
+ * This class is generated by makeActionForm tool.
+ */
+class Legacy_CommentAdminEditForm extends XCube_ActionForm
+{
+	function getTokenName()
+	{
+		return "module.base.XoopscommentsAdminEditForm.TOKEN";
+	}
+
+	function prepare()
+	{
+		//
+		// Set form properties
+		//
+		$this->mFormProperties['com_id'] =& new XCube_IntProperty('com_id');
+		$this->mFormProperties['com_pid'] =& new XCube_IntProperty('com_pid');
+		$this->mFormProperties['com_rootid'] =& new XCube_IntProperty('com_rootid');
+		$this->mFormProperties['com_modid'] =& new XCube_IntProperty('com_modid');
+		$this->mFormProperties['com_itemid'] =& new XCube_IntProperty('com_itemid');
+		$this->mFormProperties['com_icon'] =& new XCube_StringProperty('com_icon');
+		$this->mFormProperties['com_created'] =& new XCube_IntProperty('com_created');
+		$this->mFormProperties['com_modified'] =& new XCube_IntProperty('com_modified');
+		$this->mFormProperties['com_uid'] =& new XCube_IntProperty('com_uid');
+		$this->mFormProperties['com_ip'] =& new XCube_StringProperty('com_ip');
+		$this->mFormProperties['com_title'] =& new XCube_StringProperty('com_title');
+		$this->mFormProperties['com_text'] =& new XCube_TextProperty('com_text');
+		$this->mFormProperties['com_sig'] =& new XCube_BoolProperty('com_sig');
+		$this->mFormProperties['com_status'] =& new XCube_BoolProperty('com_status');
+		$this->mFormProperties['com_exparams'] =& new XCube_StringProperty('com_exparams');
+		$this->mFormProperties['dohtml'] =& new XCube_BoolProperty('dohtml');
+		$this->mFormProperties['dosmiley'] =& new XCube_BoolProperty('dosmiley');
+		$this->mFormProperties['doxcode'] =& new XCube_BoolProperty('doxcode');
+		$this->mFormProperties['doimage'] =& new XCube_BoolProperty('doimage');
+		$this->mFormProperties['dobr'] =& new XCube_BoolProperty('dobr');
+
+		//
+		// Set field properties
+		//
+		$this->mFieldProperties['com_id'] =& new XCube_FieldProperty($this);
+		$this->mFieldProperties['com_id']->setDependsByArray(array('required'));
+		$this->mFieldProperties['com_id']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_COM_ID);
+
+		$this->mFieldProperties['com_pid'] =& new XCube_FieldProperty($this);
+		$this->mFieldProperties['com_pid']->setDependsByArray(array('required'));
+		$this->mFieldProperties['com_pid']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_COM_PID);
+
+		$this->mFieldProperties['com_rootid'] =& new XCube_FieldProperty($this);
+		$this->mFieldProperties['com_rootid']->setDependsByArray(array('required'));
+		$this->mFieldProperties['com_rootid']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_COM_ROOTID);
+
+		$this->mFieldProperties['com_modid'] =& new XCube_FieldProperty($this);
+		$this->mFieldProperties['com_modid']->setDependsByArray(array('required'));
+		$this->mFieldProperties['com_modid']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_COM_MODID);
+
+		$this->mFieldProperties['com_itemid'] =& new XCube_FieldProperty($this);
+		$this->mFieldProperties['com_itemid']->setDependsByArray(array('required'));
+		$this->mFieldProperties['com_itemid']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_COM_ITEMID);
+
+		$this->mFieldProperties['com_icon'] =& new XCube_FieldProperty($this);
+		$this->mFieldProperties['com_icon']->setDependsByArray(array('required','maxlength'));
+		$this->mFieldProperties['com_icon']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_COM_ICON, '25');
+		$this->mFieldProperties['com_icon']->addMessage('maxlength', _AD_BASE_ERROR_MAXLENGTH, _AD_BASE_LANG_COM_ICON, '25');
+		$this->mFieldProperties['com_icon']->addVar('maxlength', 25);
+
+		$this->mFieldProperties['com_created'] =& new XCube_FieldProperty($this);
+		$this->mFieldProperties['com_created']->setDependsByArray(array('required'));
+		$this->mFieldProperties['com_created']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_COM_CREATED);
+
+		$this->mFieldProperties['com_modified'] =& new XCube_FieldProperty($this);
+		$this->mFieldProperties['com_modified']->setDependsByArray(array('required'));
+		$this->mFieldProperties['com_modified']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_COM_MODIFIED);
+
+		$this->mFieldProperties['com_uid'] =& new XCube_FieldProperty($this);
+		$this->mFieldProperties['com_uid']->setDependsByArray(array('required'));
+		$this->mFieldProperties['com_uid']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_COM_UID);
+
+		$this->mFieldProperties['com_ip'] =& new XCube_FieldProperty($this);
+		$this->mFieldProperties['com_ip']->setDependsByArray(array('required','maxlength'));
+		$this->mFieldProperties['com_ip']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_COM_IP, '15');
+		$this->mFieldProperties['com_ip']->addMessage('maxlength', _AD_BASE_ERROR_MAXLENGTH, _AD_BASE_LANG_COM_IP, '15');
+		$this->mFieldProperties['com_ip']->addVar('maxlength', 15);
+
+		$this->mFieldProperties['com_title'] =& new XCube_FieldProperty($this);
+		$this->mFieldProperties['com_title']->setDependsByArray(array('required','maxlength'));
+		$this->mFieldProperties['com_title']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_COM_TITLE, '255');
+		$this->mFieldProperties['com_title']->addMessage('maxlength', _AD_BASE_ERROR_MAXLENGTH, _AD_BASE_LANG_COM_TITLE, '255');
+		$this->mFieldProperties['com_title']->addVar('maxlength', 255);
+
+		$this->mFieldProperties['com_text'] =& new XCube_FieldProperty($this);
+		$this->mFieldProperties['com_text']->setDependsByArray(array('required'));
+		$this->mFieldProperties['com_text']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_COM_TEXT);
+
+		$this->mFieldProperties['com_exparams'] =& new XCube_FieldProperty($this);
+		$this->mFieldProperties['com_exparams']->setDependsByArray(array('required','maxlength'));
+		$this->mFieldProperties['com_exparams']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_COM_EXPARAMS, '255');
+		$this->mFieldProperties['com_exparams']->addMessage('maxlength', _AD_BASE_ERROR_MAXLENGTH, _AD_BASE_LANG_COM_EXPARAMS, '255');
+		$this->mFieldProperties['com_exparams']->addVar('maxlength', 255);
+	}
+
+	function load(&$obj)
+	{
+		$this->setVar('com_id', $obj->get('com_id'));
+		$this->setVar('com_pid', $obj->get('com_pid'));
+		$this->setVar('com_rootid', $obj->get('com_rootid'));
+		$this->setVar('com_modid', $obj->get('com_modid'));
+		$this->setVar('com_itemid', $obj->get('com_itemid'));
+		$this->setVar('com_icon', $obj->get('com_icon'));
+		$this->setVar('com_created', $obj->get('com_created'));
+		$this->setVar('com_modified', $obj->get('com_modified'));
+		$this->setVar('com_uid', $obj->get('com_uid'));
+		$this->setVar('com_ip', $obj->get('com_ip'));
+		$this->setVar('com_title', $obj->get('com_title'));
+		$this->setVar('com_text', $obj->get('com_text'));
+		$this->setVar('com_sig', $obj->get('com_sig'));
+		$this->setVar('com_status', $obj->get('com_status'));
+		$this->setVar('com_exparams', $obj->get('com_exparams'));
+		$this->setVar('dohtml', $obj->get('dohtml'));
+		$this->setVar('dosmiley', $obj->get('dosmiley'));
+		$this->setVar('doxcode', $obj->get('doxcode'));
+		$this->setVar('doimage', $obj->get('doimage'));
+		$this->setVar('dobr', $obj->get('dobr'));
+	}
+
+	function update(&$obj)
+	{
+		$obj->setVar('com_id', $this->get('com_id'));
+		$obj->setVar('com_pid', $this->get('com_pid'));
+		$obj->setVar('com_rootid', $this->get('com_rootid'));
+		$obj->setVar('com_modid', $this->get('com_modid'));
+		$obj->setVar('com_itemid', $this->get('com_itemid'));
+		$obj->setVar('com_icon', $this->get('com_icon'));
+		$obj->setVar('com_created', $this->get('com_created'));
+		$obj->setVar('com_modified', $this->get('com_modified'));
+		$obj->setVar('com_uid', $this->get('com_uid'));
+		$obj->setVar('com_ip', $this->get('com_ip'));
+		$obj->setVar('com_title', $this->get('com_title'));
+		$obj->setVar('com_text', $this->get('com_text'));
+		$obj->setVar('com_sig', $this->get('com_sig'));
+		$obj->setVar('com_status', $this->get('com_status'));
+		$obj->setVar('com_exparams', $this->get('com_exparams'));
+		$obj->setVar('dohtml', $this->get('dohtml'));
+		$obj->setVar('dosmiley', $this->get('dosmiley'));
+		$obj->setVar('doxcode', $this->get('doxcode'));
+		$obj->setVar('doimage', $this->get('doimage'));
+		$obj->setVar('dobr', $this->get('dobr'));
+	}
+}
+
+?>
Index: xoops2jp/html/modules/base/admin/forms/CommentFilterForm.class.php
diff -u /dev/null xoops2jp/html/modules/base/admin/forms/CommentFilterForm.class.php:1.1.2.1
--- /dev/null	Thu Jan 26 01:17:46 2006
+++ xoops2jp/html/modules/base/admin/forms/CommentFilterForm.class.php	Thu Jan 26 01:17:45 2006
@@ -0,0 +1,142 @@
+<?php
+
+require_once XOOPS_MODULE_PATH . "/base/class/AbstractFilterForm.class.php";
+
+define('COMMENT_SORT_KEY_DEFAULT', 0);
+define('COMMENT_SORT_KEY_COM_ID', 1);
+define('COMMENT_SORT_KEY_COM_PID', 2);
+define('COMMENT_SORT_KEY_COM_ROOTID', 3);
+define('COMMENT_SORT_KEY_COM_MODID', 4);
+define('COMMENT_SORT_KEY_COM_ITEMID', 5);
+define('COMMENT_SORT_KEY_COM_ICON', 6);
+define('COMMENT_SORT_KEY_COM_CREATED', 7);
+define('COMMENT_SORT_KEY_COM_MODIFIED', 8);
+define('COMMENT_SORT_KEY_COM_UID', 9);
+define('COMMENT_SORT_KEY_COM_IP', 10);
+define('COMMENT_SORT_KEY_COM_TITLE', 11);
+define('COMMENT_SORT_KEY_COM_TEXT', 12);
+define('COMMENT_SORT_KEY_COM_SIG', 13);
+define('COMMENT_SORT_KEY_COM_STATUS', 14);
+define('COMMENT_SORT_KEY_COM_EXPARAMS', 15);
+define('COMMENT_SORT_KEY_DOHTML', 16);
+define('COMMENT_SORT_KEY_DOSMILEY', 17);
+define('COMMENT_SORT_KEY_DOXCODE', 18);
+define('COMMENT_SORT_KEY_DOIMAGE', 19);
+define('COMMENT_SORT_KEY_DOBR', 20);
+define('COMMENT_SORT_KEY_MAXVALUE', 20);
+
+class Legacy_CommentFilterForm extends Legacy_AbstractFilterForm
+{
+	var $mSort = 0;
+	var $_mSortKeys = array(
+		COMMENT_SORT_KEY_DEFAULT => 'com_id',
+		COMMENT_SORT_KEY_COM_ID => 'com_id',
+		COMMENT_SORT_KEY_COM_PID => 'com_pid',
+		COMMENT_SORT_KEY_COM_ROOTID => 'com_rootid',
+		COMMENT_SORT_KEY_COM_MODID => 'com_modid',
+		COMMENT_SORT_KEY_COM_ITEMID => 'com_itemid',
+		COMMENT_SORT_KEY_COM_ICON => 'com_icon',
+		COMMENT_SORT_KEY_COM_CREATED => 'com_created',
+		COMMENT_SORT_KEY_COM_MODIFIED => 'com_modified',
+		COMMENT_SORT_KEY_COM_UID => 'com_uid',
+		COMMENT_SORT_KEY_COM_IP => 'com_ip',
+		COMMENT_SORT_KEY_COM_TITLE => 'com_title',
+		COMMENT_SORT_KEY_COM_TEXT => 'com_text',
+		COMMENT_SORT_KEY_COM_SIG => 'com_sig',
+		COMMENT_SORT_KEY_COM_STATUS => 'com_status',
+		COMMENT_SORT_KEY_COM_EXPARAMS => 'com_exparams',
+		COMMENT_SORT_KEY_DOHTML => 'dohtml',
+		COMMENT_SORT_KEY_DOSMILEY => 'dosmiley',
+		COMMENT_SORT_KEY_DOXCODE => 'doxcode',
+		COMMENT_SORT_KEY_DOIMAGE => 'doimage',
+		COMMENT_SORT_KEY_DOBR => 'dobr'
+	);
+	var $_mCriteria = null;
+
+	function fetch()
+	{
+		$this->mSort = isset($_REQUEST['sort']) ? intval($_REQUEST['sort']) : 0;
+	
+		if ($this->mSort > COMMENT_SORT_KEY_MAXVALUE) {
+			$this->mSort = COMMENT_SORT_KEY_DEFAULT;
+		}
+	
+		if (isset($_REQUEST['com_id'])) {
+			$this->_mCriteria->add(new Criteria('com_id', array(XOBJ_DTYPE_INT, xoops_getrequest('com_id'))));
+		}
+	
+		if (isset($_REQUEST['com_pid'])) {
+			$this->_mCriteria->add(new Criteria('com_pid', array(XOBJ_DTYPE_INT, xoops_getrequest('com_pid'))));
+		}
+	
+		if (isset($_REQUEST['com_rootid'])) {
+			$this->_mCriteria->add(new Criteria('com_rootid', array(XOBJ_DTYPE_INT, xoops_getrequest('com_rootid'))));
+		}
+	
+		if (isset($_REQUEST['com_modid'])) {
+			$this->_mCriteria->add(new Criteria('com_modid', array(XOBJ_DTYPE_INT, xoops_getrequest('com_modid'))));
+		}
+	
+		if (isset($_REQUEST['com_itemid'])) {
+			$this->_mCriteria->add(new Criteria('com_itemid', array(XOBJ_DTYPE_INT, xoops_getrequest('com_itemid'))));
+		}
+	
+		if (isset($_REQUEST['com_icon'])) {
+			$this->_mCriteria->add(new Criteria('com_icon', array(XOBJ_DTYPE_STRING, xoops_getrequest('com_icon'))));
+		}
+	
+		if (isset($_REQUEST['com_created'])) {
+			$this->_mCriteria->add(new Criteria('com_created', array(XOBJ_DTYPE_INT, xoops_getrequest('com_created'))));
+		}
+	
+		if (isset($_REQUEST['com_modified'])) {
+			$this->_mCriteria->add(new Criteria('com_modified', array(XOBJ_DTYPE_INT, xoops_getrequest('com_modified'))));
+		}
+	
+		if (isset($_REQUEST['com_uid'])) {
+			$this->_mCriteria->add(new Criteria('com_uid', array(XOBJ_DTYPE_INT, xoops_getrequest('com_uid'))));
+		}
+	
+		if (isset($_REQUEST['com_ip'])) {
+			$this->_mCriteria->add(new Criteria('com_ip', array(XOBJ_DTYPE_STRING, xoops_getrequest('com_ip'))));
+		}
+	
+		if (isset($_REQUEST['com_title'])) {
+			$this->_mCriteria->add(new Criteria('com_title', array(XOBJ_DTYPE_STRING, xoops_getrequest('com_title'))));
+		}
+	
+		if (isset($_REQUEST['com_sig'])) {
+			$this->_mCriteria->add(new Criteria('com_sig', array(XOBJ_DTYPE_BOOL, xoops_getrequest('com_sig'))));
+		}
+	
+		if (isset($_REQUEST['com_status'])) {
+			$this->_mCriteria->add(new Criteria('com_status', array(XOBJ_DTYPE_BOOL, xoops_getrequest('com_status'))));
+		}
+	
+		if (isset($_REQUEST['com_exparams'])) {
+			$this->_mCriteria->add(new Criteria('com_exparams', array(XOBJ_DTYPE_STRING, xoops_getrequest('com_exparams'))));
+		}
+	
+		if (isset($_REQUEST['dohtml'])) {
+			$this->_mCriteria->add(new Criteria('dohtml', array(XOBJ_DTYPE_BOOL, xoops_getrequest('dohtml'))));
+		}
+	
+		if (isset($_REQUEST['dosmiley'])) {
+			$this->_mCriteria->add(new Criteria('dosmiley', array(XOBJ_DTYPE_BOOL, xoops_getrequest('dosmiley'))));
+		}
+	
+		if (isset($_REQUEST['doxcode'])) {
+			$this->_mCriteria->add(new Criteria('doxcode', array(XOBJ_DTYPE_BOOL, xoops_getrequest('doxcode'))));
+		}
+	
+		if (isset($_REQUEST['doimage'])) {
+			$this->_mCriteria->add(new Criteria('doimage', array(XOBJ_DTYPE_BOOL, xoops_getrequest('doimage'))));
+		}
+	
+		if (isset($_REQUEST['dobr'])) {
+			$this->_mCriteria->add(new Criteria('dobr', array(XOBJ_DTYPE_BOOL, xoops_getrequest('dobr'))));
+		}
+	}
+}
+
+?>


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