1: <?php
2: 3: 4: 5:
6:
7: if (!defined('XOOPS_ROOT_PATH')) exit();
8:
9: require_once XOOPS_ROOT_PATH . "/core/XCube_ActionForm.class.php";
10: require_once XOOPS_MODULE_PATH . "/legacy/class/Legacy_Validator.class.php";
11:
12: class User_MailjobAdminDeleteForm extends XCube_ActionForm
13: {
14: function getTokenName()
15: {
16: return "module.user.MailjobAdminDeleteForm.TOKEN" . $this->get('mailjob_id');
17: }
18:
19: function prepare()
20: {
21:
22:
23:
24: $this->mFormProperties['mailjob_id'] =new XCube_IntProperty('mailjob_id');
25:
26:
27:
28:
29: $this->mFieldProperties['mailjob_id'] =new XCube_FieldProperty($this);
30: $this->mFieldProperties['mailjob_id']->setDependsByArray(array('required'));
31: $this->mFieldProperties['mailjob_id']->addMessage('required', _MD_USER_ERROR_REQUIRED, _AD_USER_LANG_MAILJOB_ID);
32: }
33:
34: function load(&$obj)
35: {
36: $this->set('mailjob_id', $obj->get('mailjob_id'));
37: }
38:
39: function update(&$obj)
40: {
41: $obj->set('mailjob_id', $this->get('mailjob_id'));
42: }
43: }
44:
45: ?>
46: