![]() |
XOOPS API 2.5.11 Beta1
UI v0.5
Réalisé par monxoops.fr
|
Graphe d'héritage de XoopsObject:Fonctions membres publiques | |
| __construct () | |
| XoopsObject () | |
| setNew () | |
| unsetNew () | |
| isNew () | |
| setDirty () | |
| unsetDirty () | |
| isDirty () | |
| initVar ($key, $data_type, $value=null, $required=false, $maxlength=null, $options='', $enumerations='') | |
| assignVar ($key, $value) | |
| assignVars ($var_arr) | |
| setVar ($key, $value, $not_gpc=false) | |
| setVars ($var_arr, $not_gpc=false) | |
| destroyVars ($var) | |
| destoryVars ($var) | |
| setFormVars ($var_arr=null, $pref='xo_', $not_gpc=false) | |
| & | getVars () |
| getValues ($keys=null, $format='s', $maxDepth=1) | |
| getVar ($key, $format='s') | |
| cleanVars () | |
| registerFilter ($filtername) | |
| _loadFilters () | |
| loadFilters ($method) | |
| xoopsClone () | |
| __clone () | |
| setErrors ($err_str) | |
| getErrors () | |
| getHtmlErrors () | |
| toArray () | |
Champs de données | |
| $vars = array() | |
| $cleanVars = array() | |
| $_isNew = false | |
| $_isDirty = false | |
| $_errors = array() | |
| $_filters = array() | |
Base class for all objects in the Xoops kernel (and beyond)
| __construct | ( | ) |
constructor
normally, this is called from child classes only
@access public
Réimplémentée dans XoopsMembership, XoopsCacheModelObject, XoUser, XoopsRank, XoopsConfigItem, XoopsModule, ArtObject, XoopsImagecategory, XoopsNotification, XoopsImageSet, XoopsGroupPerm, XoopsTplfile, XoopsAvatar, XoopsConfigCategory, XoopsTplset, XoopsComment, XoopsConfigOption, XoopsPrivmessage, PmMessage, SystemGroup, XoopsGroup, XoopsImage, XoopsImagesetimg, SystemAvatar, SystemBanner, SystemBannerclient, SystemBannerFinish, SystemSmilies, ProfileCategory, ProfileField, SystemBlock, SystemUserrank, SystemUsers, ProfileRegstep, ProfileVisibility, et SystemBlockLinkModule.
Voici le graphe des appelants de cette fonction :| __clone | ( | ) |
Adjust a newly cloned object
Voici le graphe d'appel pour cette fonction :| _loadFilters | ( | ) |
load all additional filters that have been registered to the object
@access private
Voici le graphe des appelants de cette fonction :| assignVar | ( | $key, | |
| $value | |||
| ) |
assign a value to a variable
@access public
| string | $key | name of the variable to assign |
| mixed | $value | value to assign |
Voici le graphe d'appel pour cette fonction :
Voici le graphe des appelants de cette fonction :| assignVars | ( | $var_arr | ) |
assign values to multiple variables in a batch
@access private
| $var_arr |
Voici le graphe d'appel pour cette fonction :
Voici le graphe des appelants de cette fonction :| cleanVars | ( | ) |
clean values of all variables of the object for storage. also add slashes wherever needed
YOU SHOULD NOT USE ANY OF THE UNICODE TYPES, THEY WILL BE REMOVED
Voici le graphe d'appel pour cette fonction :
Voici le graphe des appelants de cette fonction :| destoryVars | ( | $var | ) |
| $var |
Voici le graphe d'appel pour cette fonction :| destroyVars | ( | $var | ) |
unset variable(s) for the object
@access public
| mixed | $var |
Voici le graphe des appelants de cette fonction :| getErrors | ( | ) |
return the errors for this object as an array
Voici le graphe des appelants de cette fonction :| getHtmlErrors | ( | ) |
return the errors for this object as html
| getValues | ( | $keys = null, |
|
$format = 's', |
|||
$maxDepth = 1 |
|||
| ) |
Returns the values of the specified variables
| mixed | $keys | An array containing the names of the keys to retrieve, or null to get all of them |
| string | $format | Format to use (see getVar) |
| int | $maxDepth | Maximum level of recursion to use if some vars are objects themselves |
Voici le graphe d'appel pour cette fonction :
Voici le graphe des appelants de cette fonction :| getVar | ( | $key, | |
$format = 's' |
|||
| ) |
returns a specific variable for the object in a proper format
YOU SHOULD NOT USE ANY OF THE UNICODE TYPES, THEY WILL BE REMOVED
@access public
| string | $key | key of the object's variable to be returned |
| string | $format | format to use for the output |
Réimplémentée dans ProfileField.
Voici le graphe d'appel pour cette fonction :| & getVars | ( | ) |
returns all variables for the object
@access public
| initVar | ( | $key, | |
| $data_type, | |||
$value = null, |
|||
$required = false, |
|||
$maxlength = null, |
|||
$options = '', |
|||
$enumerations = '' |
|||
| ) |
initialize variables for the object
YOU SHOULD NOT USE THE $enumeration PARAMETER
@access public
| string | $key | |
| int | $data_type | set to one of XOBJ_DTYPE_XXX constants (set to XOBJ_DTYPE_OTHER if no data type checking nor text sanitizing is required) |
| null | $value | |
| bool | $required | require html form input? |
| int | $maxlength | for XOBJ_DTYPE_TXTBOX type only |
| string | $options | |
| string | $enumerations |
Voici le graphe des appelants de cette fonction :| isDirty | ( | ) |
Voici le graphe des appelants de cette fonction :| isNew | ( | ) |
Voici le graphe des appelants de cette fonction :| loadFilters | ( | $method | ) |
load all local filters for the object
Filter distribution: In each module folder there is a folder "filter" containing filter files with, filename: [name_of_target_class][.][function/action_name][.php]; function name: [dirname][_][name_of_target_class][_][function/action_name]; parameter: the target object
| string | $method | function or action name |
Voici le graphe d'appel pour cette fonction :| registerFilter | ( | $filtername | ) |
dynamically register additional filter for the object
| string | $filtername | name of the filter |
| setDirty | ( | ) |
*#+ mark modified objects as dirty
used for modified objects only
@access public
Voici le graphe des appelants de cette fonction :| setErrors | ( | $err_str | ) |
add an error
| $err_str |
Voici le graphe des appelants de cette fonction :| XOOPS x a Bootstrap v4 based do not add br tags on new line characters if text contains HTML Fix error in Group administration causing unrequested Description changes during edit Fix inconsistencies in XoopsMultiMailer Fix broken caching in Smarty xoMemberInfo function Fix corruption of chosen options in Blocks administration Attempt graceful failure on missing theme Fix active hyperlink on space between icons in admin form module script php font and color when focus lost Handle negative ini sizes properly in upload file replace with appropriate Xmf Request geekwright Deprecate setFormVars | ( | $var_arr = null, |
|
$pref = 'xo_', |
|||
$not_gpc = false |
|||
| ) |
Assign values to multiple variables in a batch
Meant for a CGI context:
| array | $var_arr | associative array of values to assign |
| string | $pref | prefix (only keys starting with the prefix will be set) |
| bool | $not_gpc |
Voici le graphe d'appel pour cette fonction :| setNew | ( | ) |
*#+ used for new/clone objects
@access public
Voici le graphe des appelants de cette fonction :| 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 |
Réimplémentée dans ProfileField.
Voici le graphe d'appel pour cette fonction :
Voici le graphe des appelants de cette fonction :| 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 |
Voici le graphe d'appel pour cette fonction :| toArray | ( | ) |
Returns an array representation of the object
Deprecated, use getValues() directly
Voici le graphe d'appel pour cette fonction :| unsetDirty | ( | ) |
Voici le graphe des appelants de cette fonction :| unsetNew | ( | ) |
Voici le graphe des appelants de cette fonction :| xoopsClone | ( | ) |
create a clone(copy) of the current object
@access public
| XoopsObject | ( | ) |
PHP 4 style constructor compatibility shim
Voici le graphe d'appel pour cette fonction :| $_errors = array() |
| $_filters = array() |
additional filters registered dynamically by a child class object
@access private
| $_isDirty = false |
| $_isNew = false |
| $cleanVars = array() |
| $vars = array() |