XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
TplsetSelectForm.class.php
1<?php
6
7if (!defined('XOOPS_ROOT_PATH')) {
8 exit();
9}
10
11require_once XOOPS_ROOT_PATH . '/core/XCube_ActionForm.class.php';
12
14{
15 public function getTokenName()
16 {
17 return 'module.legacyRender.TemplatesetSelectForm.TOKEN';
18 }
19
20 public function prepare()
21 {
22 //
23 // Set form properties
24 //
25 $this->mFormProperties['tplset_name'] =new XCube_StringProperty('tplset_name');
26 }
27
28 public function validateTplset_name()
29 {
30 $handler =& xoops_getmodulehandler('tplset');
31 if (0 == $handler->getCount(new Criteria('tplset_name', $this->get('tplset_name')))) {
32 $this->addErrorMessage(_AD_LEGACYRENDER_ERROR_TPLSET_NO_EXIST);
33 }
34 }
35}
getTokenName()
Gets the token name of this actionform's token.
prepare()
[Abstract] Set up form properties and field properties.
addErrorMessage( $message)
Adds a message to the form's error message buffer.
Represents string property.