XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
LostPassEditForm.class.php
1<?php
7
8if (!defined('XOOPS_ROOT_PATH')) {
9 exit();
10}
11
12require_once XOOPS_ROOT_PATH . '/core/XCube_ActionForm.class.php';
13
15{
16 public function getTokenName()
17 {
18 return 'module.user.LostPassEditForm.TOKEN';
19 }
20
21 public function prepare()
22 {
23 //
24 // Set form properties
25 //
26 $this->mFormProperties['email'] =new XCube_StringProperty('email');
27 $this->mFormProperties['code'] =new XCube_StringProperty('code');
28
29 //
30 // Set field properties
31 //
32 $this->mFieldProperties['email'] =new XCube_FieldProperty($this);
33 $this->mFieldProperties['email']->setDependsByArray(['required', 'email']);
34 $this->mFieldProperties['email']->addMessage('required', _MD_USER_ERROR_REQUIRED, _MD_USER_LANG_EMAIL);
35 $this->mFieldProperties['email']->addMessage('email', _MD_USER_ERROR_EMAIL, _MD_USER_LANG_EMAIL);
36 }
37}
getTokenName()
Gets the token name of this actionform's token.
prepare()
[Abstract] Set up form properties and field properties.
[Abstract] Used for validating member property values of XCube_ActionForm.
Represents string property.