XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Public Member Functions | |
prepare () | |
[Abstract] Set up form properties and field properties. | |
fetch () | |
Fetches values through the request object. | |
![]() | |
__construct () | |
Constructor. | |
getTokenName () | |
Gets the token name of this actionform's token. | |
getToken () | |
Gets the token value of this actionform's token. | |
getTokenErrorMessage () | |
Gets a message about the failure of the token validation. | |
set () | |
Sets the raw value as the value of the form property. | |
setVar () | |
get ( $key, $index=null) | |
Gets raw value. | |
getVar ( $key, $index=null) | |
& | getFormProperties () |
Gets form properties of this member property. | |
_validateToken () | |
Validates the token. | |
validate () | |
Validates fetched values. | |
hasError () | |
Gets a value indicating whether this action form keeps error messages or error flag. | |
addErrorMessage ( $message) | |
Adds a message to the form's error message buffer. | |
getErrorMessages () | |
Gets error messages. | |
load (&$obj) | |
[Abstract] Initializes properties' values from an object. | |
update (&$obj) | |
[Abstract] Updates an object with properties values. | |
Data Fields | |
$mState = null | |
![]() | |
$mContext | |
[READ ONLY] XCube_HttpContext | |
$mUser | |
[READ ONLY] XCube_Principal | |
$mFormProperties = [] | |
XCube_FormProperty[]. | |
$mFieldProperties = [] | |
XCube_FieldProperty[]. | |
$mErrorFlag = false | |
bool | |
$mErrorMessages = [] | |
string[] | |
$_mToken | |
string | |
Definition at line 18 of file ActionSearchForm.class.php.
fetch | ( | ) |
Fetches values through the request object.
Fetch the input value, set it and form properties. These values can be retrieved by the get() method. The subclass can define its own member function to fetch the values. Define member functions with name "fetch" + "form name". For example, to fetch the "message", define the function "fetchMessage()". The subclass function assigns a value to this action form.
Reimplemented from XCube_ActionForm.
Definition at line 32 of file ActionSearchForm.class.php.
prepare | ( | ) |
[Abstract] Set up form properties and field properties.
Reimplemented from XCube_ActionForm.
Definition at line 22 of file ActionSearchForm.class.php.
$mState = null |
Definition at line 20 of file ActionSearchForm.class.php.