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:
11: 12: 13: 14:
15: class LegacyRender_TplsetDeleteForm extends XCube_ActionForm
16: {
17: function getTokenName()
18: {
19: return "module.legacyRender.TplsetDeleteForm.TOKEN" . $this->get('tplset_id');
20: }
21:
22: function prepare()
23: {
24:
25:
26:
27: $this->mFormProperties['tplset_id'] =new XCube_IntProperty('tplset_id');
28:
29:
30:
31:
32: $this->mFieldProperties['tplset_id'] =new XCube_FieldProperty($this);
33: $this->mFieldProperties['tplset_id']->setDependsByArray(array('required'));
34: $this->mFieldProperties['tplset_id']->addMessage('required', _AD_LEGACYRENDER_ERROR_REQUIRED, _AD_LEGACYRENDER_LANG_TPLSET_ID);
35: }
36:
37: function load(&$obj)
38: {
39: $this->set('tplset_id', $obj->get('tplset_id'));
40: }
41:
42: function update(&$obj)
43: {
44: $obj->set('tplset_id', $this->get('tplset_id'));
45: }
46: }
47:
48: ?>
49: