XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Public Member Functions | |
setNew () | |
unsetNew () | |
isNew () | |
initVar ($key, $dataType, $value=null, $required=false, $size=null) | |
assignVar ($key, $value) | |
assignVars ($values) | |
set ($key, $value) | |
get ($key) | |
gets () | |
setVar ($key, $value) | |
setVars ($values) | |
getVar ($key) | |
getShow ($key) | |
getTypeInformations () | |
getPurifiedHtml ( $key, $encoding=null, $doctype=null) | |
getDirname () | |
Data Fields | |
$mVars = [] | |
$mIsNew = true | |
$mDirname = null | |
This class implements the interface of XoopsObjectInterface, and it gives developers 'TYPE SAFE' to avoid type errors trying to perform an operation on the wrong type of data. The instance can have only five data type that are : BOOL, INT, FLOAT, STRING and TEXT. You can not sanitize values by cleanVars() that is the function of XoopsObject. However, all set functions give you 'TYPE SAFE'. You should use this class with your favorite ActionForm.
"Check values by actionform, set values to XoopsSimpleObject"
This class was defined for the "extending life expectancy plan" of Xoops2. It's not a rule you're forced to use. PHP supports the following data types: String, Integer, Float, Boolean, Array, Object, NULL, Resource.
Definition at line 29 of file object.php.
__construct | ( | ) |
Reimplemented in Legacy_AbstractCategoryObject, Legacy_AbstractGroupObject, Legacy_AbstractImageObject, and Legacy_AbstractObject.
Definition at line 35 of file object.php.
assignVar | ( | $key, | |
$value ) |
Definition at line 72 of file object.php.
assignVars | ( | $values | ) |
You should use this method to initilize object's properties. This method may not trigger setDirty().
array | $values |
Reimplemented from AbstractXoopsObject.
Definition at line 103 of file object.php.
get | ( | $key | ) |
Reimplemented from AbstractXoopsObject.
Definition at line 115 of file object.php.
getDirname | ( | ) |
getPurifiedHtml | ( | $key, | |
$encoding = null, | |||
$doctype = null ) |
getPurifiedHtml
string | $key | |
string | null | $encoding | |
string | null | $doctype |
$key | * string ** |
$encoding | * string ** |
$doctype | * string ** |
Definition at line 201 of file object.php.
gets | ( | ) |
Definition at line 120 of file object.php.
getShow | ( | $key | ) |
Return HTML string for displaying only by HTML. The second parameter doesn't exist.
$key |
Reimplemented from AbstractXoopsObject.
Definition at line 157 of file object.php.
getTypeInformations | ( | ) |
Definition at line 182 of file object.php.
getVar | ( | $key | ) |
$key |
Reimplemented in LegacyCommentObject.
Definition at line 146 of file object.php.
initVar | ( | $key, | |
$dataType, | |||
$value = null, | |||
$required = false, | |||
$size = null ) |
Reimplemented from AbstractXoopsObject.
Definition at line 54 of file object.php.
isNew | ( | ) |
set | ( | $key, | |
$value ) |
You should use this method to change object's properties. This method may trigger setDirty().
$key | |
$value |
Reimplemented from AbstractXoopsObject.
Reimplemented in MessageInboxObject.
Definition at line 110 of file object.php.
setNew | ( | ) |
Reimplemented from AbstractXoopsObject.
Definition at line 39 of file object.php.
setVar | ( | $key, | |
$value ) |
Definition at line 131 of file object.php.
setVars | ( | $values | ) |
Definition at line 136 of file object.php.
unsetNew | ( | ) |
Reimplemented from AbstractXoopsObject.
Definition at line 44 of file object.php.
$mDirname = null |
Definition at line 33 of file object.php.
$mIsNew = true |
Definition at line 32 of file object.php.
$mVars = [] |
Definition at line 31 of file object.php.