XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
BannerAdminDeleteForm.class.php
1<?php
6
7if (!defined('XOOPS_ROOT_PATH')) {
8 exit();
9}
10
11require_once XOOPS_ROOT_PATH . '/core/XCube_ActionForm.class.php';
12require_once XOOPS_MODULE_PATH . '/legacy/class/Legacy_Validator.class.php';
13
15{
16 public function getTokenName()
17 {
18 return 'module.legacyRender.BannerAdminDeleteForm.TOKEN' . $this->get('bid');
19 }
20
21 public function prepare()
22 {
23 //
24 // Set form properties
25 //
26 $this->mFormProperties['bid'] =new XCube_IntProperty('bid');
27
28 //
29 // Set field properties
30 //
31 $this->mFieldProperties['bid'] =new XCube_FieldProperty($this);
32 $this->mFieldProperties['bid']->setDependsByArray(['required']);
33 $this->mFieldProperties['bid']->addMessage('required', _AD_LEGACYRENDER_ERROR_REQUIRED, _AD_LEGACYRENDER_LANG_BID);
34 }
35
36 public function load(&$obj)
37 {
38 $this->set('bid', $obj->get('bid'));
39 }
40
41 public function update(&$obj)
42 {
43 $obj->set('bid', $this->get('bid'));
44 }
45}
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.