XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
ProfileField Class Reference
Inheritance diagram for ProfileField:
Inheritance graph

Public Member Functions

 __construct ()
 
 getEditElement ($user, $profile)
 
 getOutputValue (&$user, $profile)
 
 getUserVars ()
 
 getValueForSave ($value)
 
 getVar ($key, $format= 's')
 
 ProfileField ()
 
 setVar ($key, $value, $not_gpc=false)
 
- Public Member Functions inherited from XoopsObject
 _loadFilters ()
 
 assignVar ($key, $value)
 
 assignVars ($var_arr)
 
 cleanVars ()
 
 destoryVars ($var)
 
 getErrors ()
 
 getHtmlErrors ()
 
 getValues ($keys=null, $format= 's', $maxDepth=1)
 
 getVar ($key, $format= 's')
 
getVars ()
 
 initVar ($key, $data_type, $value=null, $required=false, $maxlength=null, $options= '', $enumerations= '')
 
 isDirty ()
 
 isNew ()
 
 loadFilters ($method)
 
 registerFilter ($filtername)
 
 setDirty ()
 
 setErrors ($err_str)
 
 setFormVars ($var_arr=null, $pref= 'xo_', $not_gpc=false)
 
 setNew ()
 
 setVar ($key, $value, $not_gpc=false)
 
 setVars ($var_arr, $not_gpc=false)
 
 toArray ()
 
 unsetDirty ()
 
 unsetNew ()
 
xoopsClone ()
 
 XoopsObject ()
 

Additional Inherited Members

- Public Attributes inherited from XoopsObject
 $_errors = array()
 
 $_filters = array()
 
 $_isDirty = false
 
 $_isNew = false
 
 $cleanVars = array()
 
 $vars = array()
 

Detailed Description

Definition at line 27 of file field.php.

Constructor & Destructor Documentation

ProfileField::__construct ( )

Definition at line 29 of file field.php.

References XOBJ_DTYPE_ARRAY, XOBJ_DTYPE_INT, XOBJ_DTYPE_TXTAREA, and XOBJ_DTYPE_TXTBOX.

Member Function Documentation

ProfileField::getEditElement (   $user,
  $profile 
)

Returns a XoopsFormElement for editing the value of this field

Parameters
XoopsUser$userXoopsUser object to edit the value of
ProfileProfile$profileProfileProfile object to edit the value of
Returns
XoopsFormElement

Definition at line 88 of file field.php.

References $dirlist, $file, $GLOBALS, $handle, $options, $profile, $user, _FORM_ENTER, _NONE, _PROFILE_MA_SITEDEFAULT, and XOOPS_THEME_PATH.

ProfileField::getOutputValue ( $user,
  $profile 
)

Returns a value for output of this field

Parameters
XoopsUser$userXoopsUser object to get the value of
profileProfile$profileobject to get the value of
Returns
mixed

Definition at line 235 of file field.php.

References $file, $GLOBALS, $member_handler, $options, $profile, $ret, $user, _NO, _PROFILE_MI_NEVER_LOGGED_IN, _YES, formatTimestamp(), formatURL(), and xoops_gethandler().

Here is the call graph for this function:

ProfileField::getUserVars ( )

Get names of user variables

Returns
array

Definition at line 404 of file field.php.

References $profile_handler, and xoops_getmodulehandler().

Here is the call graph for this function:

ProfileField::getValueForSave (   $value)

Returns a value ready to be saved in the database

Parameters
mixed$valueValue to format
Returns
mixed

Definition at line 360 of file field.php.

ProfileField::getVar (   $key,
  $format = 's' 
)

Definition at line 69 of file field.php.

ProfileField::ProfileField ( )

Definition at line 50 of file field.php.

ProfileField::setVar (   $key,
  $value,
  $not_gpc = false 
)

Extra treatment dealing with non latin encoding Tricky solution

Definition at line 59 of file field.php.


The documentation for this class was generated from the following file: