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

Back to archive index

Minahito minah****@users*****
2006年 2月 2日 (木) 17:12:08 JST


Index: xoops2jp/html/modules/user/admin/forms/MailjobEditForm.class.php
diff -u xoops2jp/html/modules/user/admin/forms/MailjobEditForm.class.php:1.1.2.1 xoops2jp/html/modules/user/admin/forms/MailjobEditForm.class.php:removed
--- xoops2jp/html/modules/user/admin/forms/MailjobEditForm.class.php:1.1.2.1	Mon Jan  9 02:48:47 2006
+++ xoops2jp/html/modules/user/admin/forms/MailjobEditForm.class.php	Thu Feb  2 17:12:08 2006
@@ -1,98 +0,0 @@
-<?php
-
-require_once XOOPS_ROOT_PATH . "/class/XCube_ActionForm.class.php";
-
-/**
- * This class is generated by makeActionForm tool.
- */
-class User_MailjobEditForm extends XCube_ActionForm
-{
-	function prepare()
-	{
-		//
-		// Set form properties
-		//
-		$this->mFormProperties['id'] =& new XCube_IntProperty('id');
-		$this->mFormProperties['lastlogin'] =& new XCube_IntProperty('lastlogin');
-		$this->mFormProperties['lastlogin_flag'] =& new XCube_BoolProperty('lastlogin_flag');
-		$this->mFormProperties['mailok'] =& new XCube_BoolProperty('mailok');
-		$this->mFormProperties['activeuser'] =& new XCube_BoolProperty('activeuser');
-		$this->mFormProperties['registdate'] =& new XCube_IntProperty('registdate');
-		$this->mFormProperties['registdate_flag'] =& new XCube_BoolProperty('registdate_flag');
-		$this->mFormProperties['sender'] =& new XCube_StringProperty('sender');
-		$this->mFormProperties['email'] =& new XCube_StringProperty('email');
-		$this->mFormProperties['subject'] =& new XCube_StringProperty('subject');
-		$this->mFormProperties['body'] =& new XCube_TextProperty('body');
-		$this->mFormProperties['by_pm'] =& new XCube_BoolProperty('by_pm');
-		$this->mFormProperties['by_email'] =& new XCube_BoolProperty('by_email');
-
-		//
-		// Set field properties
-		//
-		$this->mFieldProperties['id'] =& new XCube_FieldProperty($this);
-		$this->mFieldProperties['id']->setDependsByArray(array('required'));
-		$this->mFieldProperties['id']->addMessage('required', _AD_USER_ERROR_REQUIRED, _AD_USER_LANG_ID);
-
-		$this->mFieldProperties['lastlogin'] =& new XCube_FieldProperty($this);
-		$this->mFieldProperties['lastlogin']->setDependsByArray(array(''));
-
-		$this->mFieldProperties['registdate'] =& new XCube_FieldProperty($this);
-		$this->mFieldProperties['registdate']->setDependsByArray(array(''));
-
-		$this->mFieldProperties['sender'] =& new XCube_FieldProperty($this);
-		$this->mFieldProperties['sender']->setDependsByArray(array('maxlength'));
-		$this->mFieldProperties['sender']->addMessage('maxlength', _AD_USER_ERROR_MAXLENGTH, '255');
-		$this->mFieldProperties['sender']->addVar('maxlength', 255);
-
-		$this->mFieldProperties['email'] =& new XCube_FieldProperty($this);
-		$this->mFieldProperties['email']->setDependsByArray(array('maxlength'));
-		$this->mFieldProperties['email']->addMessage('maxlength', _AD_USER_ERROR_MAXLENGTH, '255');
-		$this->mFieldProperties['email']->addVar('maxlength', 255);
-
-		$this->mFieldProperties['subject'] =& new XCube_FieldProperty($this);
-		$this->mFieldProperties['subject']->setDependsByArray(array('required','maxlength'));
-		$this->mFieldProperties['subject']->addMessage('required', _AD_USER_ERROR_REQUIRED, _AD_USER_LANG_SUBJECT, '255');
-		$this->mFieldProperties['subject']->addMessage('maxlength', _AD_USER_ERROR_MAXLENGTH, _AD_USER_LANG_SUBJECT, '255');
-		$this->mFieldProperties['subject']->addVar('maxlength', 255);
-
-		$this->mFieldProperties['body'] =& new XCube_FieldProperty($this);
-		$this->mFieldProperties['body']->setDependsByArray(array('required'));
-		$this->mFieldProperties['body']->addMessage('required', _AD_USER_ERROR_REQUIRED, _AD_USER_LANG_BODY);
-	}
-
-	function load(&$obj)
-	{
-		$this->setVar('id', $obj->get('id'));
-		$this->setVar('lastlogin', $obj->get('lastlogin'));
-		$this->setVar('lastlogin_flag', $obj->get('lastlogin_flag'));
-		$this->setVar('mailok', $obj->get('mailok'));
-		$this->setVar('activeuser', $obj->get('activeuser'));
-		$this->setVar('registdate', $obj->get('registdate'));
-		$this->setVar('registdate_flag', $obj->get('registdate_flag'));
-		$this->setVar('sender', $obj->get('sender'));
-		$this->setVar('email', $obj->get('email'));
-		$this->setVar('subject', $obj->get('subject'));
-		$this->setVar('body', $obj->get('body'));
-		$this->setVar('by_pm', $obj->get('by_pm'));
-		$this->setVar('by_email', $obj->get('by_email'));
-	}
-
-	function update(&$obj)
-	{
-		$obj->setVar('id', $this->get('id'));
-		$obj->setVar('lastlogin', $this->get('lastlogin'));
-		$obj->setVar('lastlogin_flag', $this->get('lastlogin_flag'));
-		$obj->setVar('mailok', $this->get('mailok'));
-		$obj->setVar('activeuser', $this->get('activeuser'));
-		$obj->setVar('registdate', $this->get('registdate'));
-		$obj->setVar('registdate_flag', $this->get('registdate_flag'));
-		$obj->setVar('sender', $this->get('sender'));
-		$obj->setVar('email', $this->get('email'));
-		$obj->setVar('subject', $this->get('subject'));
-		$obj->setVar('body', $this->get('body'));
-		$obj->setVar('by_pm', $this->get('by_pm'));
-		$obj->setVar('by_email', $this->get('by_email'));
-	}
-}
-
-?>
Index: xoops2jp/html/modules/user/admin/forms/MailjobFilterForm.class.php
diff -u xoops2jp/html/modules/user/admin/forms/MailjobFilterForm.class.php:1.1.2.1 xoops2jp/html/modules/user/admin/forms/MailjobFilterForm.class.php:removed
--- xoops2jp/html/modules/user/admin/forms/MailjobFilterForm.class.php:1.1.2.1	Wed Jan 11 20:52:36 2006
+++ xoops2jp/html/modules/user/admin/forms/MailjobFilterForm.class.php	Thu Feb  2 17:12:08 2006
@@ -1,127 +0,0 @@
-<?php
-
-define('MAILJOB_SORT_KEY_DEFAULT', 0);
-define('MAILJOB_SORT_KEY_ID', 1);
-define('MAILJOB_SORT_KEY_LASTLOGIN', 2);
-define('MAILJOB_SORT_KEY_LASTLOGIN_FLAG', 3);
-define('MAILJOB_SORT_KEY_MAILOK', 4);
-define('MAILJOB_SORT_KEY_ACTIVEUSER', 5);
-define('MAILJOB_SORT_KEY_REGISTDATE', 6);
-define('MAILJOB_SORT_KEY_REGISTDATE_FLAG', 7);
-define('MAILJOB_SORT_KEY_SENDER', 8);
-define('MAILJOB_SORT_KEY_EMAIL', 9);
-define('MAILJOB_SORT_KEY_SUBJECT', 10);
-define('MAILJOB_SORT_KEY_BODY', 11);
-define('MAILJOB_SORT_KEY_BY_PM', 12);
-define('MAILJOB_SORT_KEY_BY_EMAIL', 13);
-define('MAILJOB_SORT_KEY_MAXVALUE', 13);
-
-class User_MailjobFilterForm
-{
-	var $mSort = 0;
-	var $_mSortKeys = array(
-		MAILJOB_SORT_KEY_DEFAULT => 'id',
-		MAILJOB_SORT_KEY_ID => 'id',
-		MAILJOB_SORT_KEY_LASTLOGIN => 'lastlogin',
-		MAILJOB_SORT_KEY_LASTLOGIN_FLAG => 'lastlogin_flag',
-		MAILJOB_SORT_KEY_MAILOK => 'mailok',
-		MAILJOB_SORT_KEY_ACTIVEUSER => 'activeuser',
-		MAILJOB_SORT_KEY_REGISTDATE => 'registdate',
-		MAILJOB_SORT_KEY_REGISTDATE_FLAG => 'registdate_flag',
-		MAILJOB_SORT_KEY_SENDER => 'sender',
-		MAILJOB_SORT_KEY_EMAIL => 'email',
-		MAILJOB_SORT_KEY_SUBJECT => 'subject',
-		MAILJOB_SORT_KEY_BODY => 'body',
-		MAILJOB_SORT_KEY_BY_PM => 'by_pm',
-		MAILJOB_SORT_KEY_BY_EMAIL => 'by_email'
-	);
-	var $_mCriteria = null;
-
-	function User_MailjobFilterForm()
-	{
-		$this->_mCriteria =& new CriteriaCompo();
-	}
-
-	function fetch()
-	{
-		$this->mSort = isset($_REQUEST['sort']) ? intval($_REQUEST['sort']) : 0;
-	
-		if ($this->mSort > MAILJOB_SORT_KEY_MAXVALUE) {
-			$this->mSort = MAILJOB_SORT_KEY_DEFAULT;
-		}
-	
-		if (isset($_REQUEST['id'])) {
-			$this->_mCriteria->add(new Criteria('id', array(XOBJ_DTYPE_INT, xoops_getrequest('id'))));
-		}
-	
-		if (isset($_REQUEST['lastlogin'])) {
-			$this->_mCriteria->add(new Criteria('lastlogin', array(XOBJ_DTYPE_INT, xoops_getrequest('lastlogin'))));
-		}
-	
-		if (isset($_REQUEST['lastlogin_flag'])) {
-			$this->_mCriteria->add(new Criteria('lastlogin_flag', array(XOBJ_DTYPE_BOOL, xoops_getrequest('lastlogin_flag'))));
-		}
-	
-		if (isset($_REQUEST['mailok'])) {
-			$this->_mCriteria->add(new Criteria('mailok', array(XOBJ_DTYPE_BOOL, xoops_getrequest('mailok'))));
-		}
-	
-		if (isset($_REQUEST['activeuser'])) {
-			$this->_mCriteria->add(new Criteria('activeuser', array(XOBJ_DTYPE_BOOL, xoops_getrequest('activeuser'))));
-		}
-	
-		if (isset($_REQUEST['registdate'])) {
-			$this->_mCriteria->add(new Criteria('registdate', array(XOBJ_DTYPE_INT, xoops_getrequest('registdate'))));
-		}
-	
-		if (isset($_REQUEST['registdate_flag'])) {
-			$this->_mCriteria->add(new Criteria('registdate_flag', array(XOBJ_DTYPE_BOOL, xoops_getrequest('registdate_flag'))));
-		}
-	
-		if (isset($_REQUEST['sender'])) {
-			$this->_mCriteria->add(new Criteria('sender', array(XOBJ_DTYPE_STRING, xoops_getrequest('sender'))));
-		}
-	
-		if (isset($_REQUEST['email'])) {
-			$this->_mCriteria->add(new Criteria('email', array(XOBJ_DTYPE_STRING, xoops_getrequest('email'))));
-		}
-	
-		if (isset($_REQUEST['subject'])) {
-			$this->_mCriteria->add(new Criteria('subject', array(XOBJ_DTYPE_STRING, xoops_getrequest('subject'))));
-		}
-	
-		if (isset($_REQUEST['by_pm'])) {
-			$this->_mCriteria->add(new Criteria('by_pm', array(XOBJ_DTYPE_BOOL, xoops_getrequest('by_pm'))));
-		}
-	
-		if (isset($_REQUEST['by_email'])) {
-			$this->_mCriteria->add(new Criteria('by_email', array(XOBJ_DTYPE_BOOL, xoops_getrequest('by_email'))));
-		}
-	}
-
-	function getSort()
-	{
-		$sortkey = abs($this->mSort);
-		return $this->_mSortKeys[$sortkey];
-	}
-
-	function getOrder()
-	{
-		return ($this->mSort < 0) ? "DESC" : "ASC";
-	}
-
-	function getCriteria($start = 0, $limit = 0)
-	{
-		$criteria = $this->_mCriteria;
-	
-		$criteria->setStart($start);
-		$criteria->setLimit($limit);
-	
-		$criteria->setSort($this->getSort());
-		$criteria->setOrder($this->getOrder());
-	
-		return $criteria;
-	}
-}
-
-?>


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