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