XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Public Member Functions | |
getTokenName () | |
Gets the token name of this actionform's token. | |
prepare () | |
[Abstract] Set up form properties and field properties. | |
validateImgcat_id () | |
validateUpload () | |
getTokenName () | |
Gets the token name of this actionform's token. | |
prepare () | |
[Abstract] Set up form properties and field properties. | |
validateImgcat_id () | |
validateImage_name () | |
validate () | |
Validates fetched values. | |
load (&$obj) | |
[Abstract] Initializes properties' values from an object. | |
update (&$obj) | |
[Abstract] Updates an object with properties values. | |
![]() | |
__construct () | |
Constructor. | |
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. | |
fetch () | |
Fetches values through the request object. | |
_validateToken () | |
Validates the token. | |
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. | |
Data Fields | |
$mOldFileName = null | |
$_mIsNew = null | |
$mFormFile = null | |
$_allowExtensions = ['tar', 'tar.gz', 'tgz', 'gz', 'zip'] | |
![]() | |
$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 ImageUploadForm.class.php.
getTokenName | ( | ) |
Gets the token name of this actionform's token.
Return token name. If the sub-class doesn't override this member function, features about one-time tokens aren't used.
Reimplemented from XCube_ActionForm.
Reimplemented in Legacy_ImageAdminCreateForm.
Definition at line 25 of file ImageUploadForm.class.php.
getTokenName | ( | ) |
Gets the token name of this actionform's token.
Return token name. If the sub-class doesn't override this member function, features about one-time tokens aren't used.
Reimplemented from XCube_ActionForm.
Reimplemented in Legacy_ImageAdminCreateForm.
Definition at line 24 of file ImageUploadForm.class.php.
load | ( | & | $obj | ) |
[Abstract] Initializes properties' values from an object.
mixed | $obj |
Set the initial values of this Action Form from an object. This member function mediates between logic and validation. For example, developers can use this method to load values from XoopsSimpleObject.
This member function is abstract. But, the subclass of this class does not have to implement it.
Reimplemented from XCube_ActionForm.
Reimplemented in Legacy_ImageAdminCreateForm.
Definition at line 126 of file ImageUploadForm.class.php.
prepare | ( | ) |
[Abstract] Set up form properties and field properties.
Reimplemented from XCube_ActionForm.
Reimplemented in Legacy_ImageAdminCreateForm.
Definition at line 30 of file ImageUploadForm.class.php.
prepare | ( | ) |
[Abstract] Set up form properties and field properties.
Reimplemented from XCube_ActionForm.
Reimplemented in Legacy_ImageAdminCreateForm.
Definition at line 29 of file ImageUploadForm.class.php.
update | ( | & | $obj | ) |
[Abstract] Updates an object with properties values.
mixed | $obj |
Set input values to a object from this action form. This member function mediates between logic and the result of validations. For example, developers can use this method to set values to XoopsSimpleObject.
This member function is abstract. But, the subclass of this class does not have to implement it.
Reimplemented from XCube_ActionForm.
Reimplemented in Legacy_ImageAdminCreateForm.
Definition at line 135 of file ImageUploadForm.class.php.
validate | ( | ) |
Validates fetched values.
Performs validation, so that if an input value is wrong, error messages are added to the error message buffer. The validation procedure is as follows:
For a database, validations are performed by functions of the properties of each field. But, the subclass can define its own validation logic. Define member function with name "validate" + "form name". For example, to validate "message", define the function "validateMessage()".
Reimplemented from XCube_ActionForm.
Definition at line 100 of file ImageUploadForm.class.php.
validateImage_name | ( | ) |
Definition at line 91 of file ImageUploadForm.class.php.
validateImgcat_id | ( | ) |
Definition at line 49 of file ImageUploadForm.class.php.
validateImgcat_id | ( | ) |
Check the permission of uploading.
Definition at line 69 of file ImageUploadForm.class.php.
validateUpload | ( | ) |
Definition at line 72 of file ImageUploadForm.class.php.
$_allowExtensions = ['tar', 'tar.gz', 'tgz', 'gz', 'zip'] |
Definition at line 23 of file ImageUploadForm.class.php.
$_mIsNew = null |
Definition at line 21 of file ImageUploadForm.class.php.
$mFormFile = null |
Definition at line 22 of file ImageUploadForm.class.php.
$mOldFileName = null |
Definition at line 20 of file ImageUploadForm.class.php.