XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Public Member Functions | |
__construct () | |
setNew () | |
unsetNew () | |
isNew () | |
setDirty () | |
unsetDirty () | |
isDirty () | |
initVar ($key, $data_type, $value=null, $required=false, $maxlength=null, $options='') | |
assignVar ($key, $value) | |
assignVars ($var_arr) | |
setVar ($key, $value, $not_gpc=false) | |
setVars ($var_arr, $not_gpc=false) | |
setFormVars ($var_arr=null, $pref='xo_', $not_gpc=false) | |
& | getVars () |
& | getVar ($key, $format='s') |
getShow ($key) | |
set ($key, $value) | |
get ($key) | |
getProperty ($key) | |
getProperties () | |
cleanVars () | |
registerFilter ($filtername) | |
_loadFilters () | |
& | xoopsClone () |
setErrors ($err_str) | |
getErrors () | |
getHtmlErrors () | |
![]() | |
initVar ($key, $data_type, $default, $required, $size) | |
Data Fields | |
$vars = [] | |
$cleanVars = [] | |
$_isNew = false | |
$_isDirty = false | |
$_errors = [] | |
$_filters = [] | |
Definition at line 96 of file object.php.
__construct | ( | ) |
constructor
normally, this is called from child classes only @access public
Reimplemented in XoopsAvatar, XoopsCachetime, XoopsComment, XoopsConfigCategory, XoopsConfigItem, XoopsConfigOption, XoopsGroup, XoopsGroupPerm, XoopsImage, XoopsImagecategory, XoopsImageset, XoopsImagesetimg, XoopsMembership, XoopsModule, XoopsNotification, XoopsPrivmessage, XoopsSubjecticon, XoopsTimezone, XoopsTplfile, and XoopsTplset.
Definition at line 152 of file object.php.
_loadFilters | ( | ) |
load all additional filters that have been registered to the object
@access private
Definition at line 594 of file object.php.
assignVar | ( | $key, | |
$value ) |
assign a value to a variable
@access public
string | $key | name of the variable to assign |
mixed | $value | value to assign |
Definition at line 218 of file object.php.
assignVars | ( | $var_arr | ) |
assign values to multiple variables in a batch
@access private
$var_arr |
Reimplemented from AbstractXoopsObject.
Definition at line 232 of file object.php.
cleanVars | ( | ) |
clean values of all variables of the object for storage. also add slashes wherever needed
Reimplemented in XoopsGroupPerm.
Definition at line 476 of file object.php.
get | ( | $key | ) |
Reimplemented from AbstractXoopsObject.
Definition at line 437 of file object.php.
getErrors | ( | ) |
return the errors for this object as an array
Definition at line 637 of file object.php.
getHtmlErrors | ( | ) |
return the errors for this object as html
Definition at line 648 of file object.php.
getProperties | ( | ) |
Definition at line 460 of file object.php.
getProperty | ( | $key | ) |
getShow | ( | $key | ) |
Return html string for template. You can call get() method to get pure value.
$key |
Reimplemented from AbstractXoopsObject.
Definition at line 421 of file object.php.
& getVar | ( | $key, | |
$format = 's' ) |
returns a specific variable for the object in a proper format
@access public
string | $key | key of the object's variable to be returned |
string | $format | format to use for the output |
Definition at line 317 of file object.php.
& getVars | ( | ) |
returns all variables for the object
@access public
Definition at line 304 of file object.php.
initVar | ( | $key, | |
$data_type, | |||
$value = null, | |||
$required = false, | |||
$maxlength = null, | |||
$options = '' ) |
#- initialize variables for the object
@access public
string | $key | |
int | $data_type | set to one of XOBJ_DTYPE_XXX constants (set to XOBJ_DTYPE_OTHER if no data type ckecking nor text sanitizing is required) |
null | $value | |
bool | $required | require html form input? |
int | $maxlength | for XOBJ_DTYPE_TXTBOX type only |
string | $options |
Definition at line 206 of file object.php.
isDirty | ( | ) |
Definition at line 189 of file object.php.
isNew | ( | ) |
registerFilter | ( | $filtername | ) |
dynamically register additional filter for the object
string | $filtername | name of the filter @access public |
Definition at line 584 of file object.php.
set | ( | $key, | |
$value ) |
Sets $value to $key property. This method calls setVar(), but make not_gpc true for the compatibility with XoopsSimpleObject.
string | $key | |
mixed | $value |
Reimplemented from AbstractXoopsObject.
Definition at line 432 of file object.php.
setDirty | ( | ) |
#- #+ mark modified objects as dirty
used for modified objects only @access public
Definition at line 181 of file object.php.
setErrors | ( | $err_str | ) |
setFormVars | ( | $var_arr = null, | |
$pref = 'xo_', | |||
$not_gpc = false ) |
Assign values to multiple variables in a batch
Meant for a CGI contenxt:
@access private
array | $var_arr | associative array of values to assign |
string | $pref | prefix (only keys starting with the prefix will be set) |
bool | $not_gpc |
Definition at line 287 of file object.php.
setNew | ( | ) |
#+ used for new/clone objects
@access public
Reimplemented from AbstractXoopsObject.
Definition at line 161 of file object.php.
setVar | ( | $key, | |
$value, | |||
$not_gpc = false ) |
assign a value to a variable
@access public
string | $key | name of the variable to assign |
mixed | $value | value to assign |
bool | $not_gpc |
Definition at line 250 of file object.php.
setVars | ( | $var_arr, | |
$not_gpc = false ) |
assign values to multiple variables in a batch
@access private
array | $var_arr | associative array of values to assign |
bool | $not_gpc |
Definition at line 268 of file object.php.
unsetDirty | ( | ) |
Definition at line 185 of file object.php.
unsetNew | ( | ) |
Reimplemented from AbstractXoopsObject.
Definition at line 165 of file object.php.
& xoopsClone | ( | ) |
create a clone(copy) of the current object
@access public
Definition at line 608 of file object.php.
$_errors = [] |
Definition at line 137 of file object.php.
$_filters = [] |
additional filters registered dynamically by a child class object
@access private
Definition at line 144 of file object.php.
$_isDirty = false |
Definition at line 129 of file object.php.
$_isNew = false |
Definition at line 121 of file object.php.
$cleanVars = [] |
Definition at line 113 of file object.php.
$vars = [] |
Definition at line 105 of file object.php.