XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
MailjobAdminDeleteForm.class.php
1<?php
7
8if (!defined('XOOPS_ROOT_PATH')) {
9 exit();
10}
11
12require_once XOOPS_ROOT_PATH . '/core/XCube_ActionForm.class.php';
13require_once XOOPS_MODULE_PATH . '/legacy/class/Legacy_Validator.class.php';
14
16{
17 public function getTokenName()
18 {
19 return 'module.user.MailjobAdminDeleteForm.TOKEN' . $this->get('mailjob_id');
20 }
21
22 public function prepare()
23 {
24 //
25 // Set form properties
26 //
27 $this->mFormProperties['mailjob_id'] =new XCube_IntProperty('mailjob_id');
28
29 //
30 // Set field properties
31 //
32 $this->mFieldProperties['mailjob_id'] =new XCube_FieldProperty($this);
33 $this->mFieldProperties['mailjob_id']->setDependsByArray(['required']);
34 $this->mFieldProperties['mailjob_id']->addMessage('required', _MD_USER_ERROR_REQUIRED, _AD_USER_LANG_MAILJOB_ID);
35 }
36
37 public function load(&$obj)
38 {
39 $this->set('mailjob_id', $obj->get('mailjob_id'));
40 }
41
42 public function update(&$obj)
43 {
44 $obj->set('mailjob_id', $this->get('mailjob_id'));
45 }
46}
update(&$obj)
[Abstract] Updates an object with properties values.
getTokenName()
Gets the token name of this actionform's token.
prepare()
[Abstract] Set up form properties and field properties.
load(&$obj)
[Abstract] Initializes properties' values from an object.
[Abstract] Used for validating member property values of XCube_ActionForm.
Represents int property.