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