Minahito
minah****@users*****
2006年 1月 9日 (月) 02:48:47 JST
Index: xoops2jp/html/modules/user/admin/forms/MailjobEditForm.class.php diff -u /dev/null xoops2jp/html/modules/user/admin/forms/MailjobEditForm.class.php:1.1.2.1 --- /dev/null Mon Jan 9 02:48:47 2006 +++ xoops2jp/html/modules/user/admin/forms/MailjobEditForm.class.php Mon Jan 9 02:48:47 2006 @@ -0,0 +1,98 @@ +<?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')); + } +} + +?>