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

Public Member Functions

 __construct (&$db)
 
 delete (&$obj, $force=false)
 
 getUserVars ()
 
 insert (&$obj, $force=false)
 
 loadFields ($force_update=false)
 
 ProfileFieldHandler (&$db)
 
- Public Member Functions inherited from XoopsPersistableObjectHandler
 __construct ($db=null, $table= '', $className= '', $keyName= '', $identifierName= '')
 
 __call ($name, $args)
 
 cleanOrphan ($table_link= '', $field_link= '', $field_object= '')
 
 convertResultSet ($result, $id_as_key=false, $as_object=true)
 
create ($isNew=true)
 
 delete (&$object, $force=false)
 
 deleteAll ($criteria=null, $force=true, $asObject=false)
 
 deleteByLink ($criteria=null)
 
get ($id=null, $fields=null)
 
getAll ($criteria=null, $fields=null, $asObject=true, $id_as_key=true)
 
getByLimit ($limit=0, $start=0, $criteria=null, $fields=null, $asObject=true)
 
getByLink ($criteria=null, $fields=null, $asObject=true, $field_link=null, $field_object=null)
 
 getCount ($criteria=null)
 
 getCountByLink ($criteria=null)
 
 getCounts ($criteria=null)
 
 getCountsByLink ($criteria=null)
 
getIds ($criteria=null)
 
 getList ($criteria=null, $limit=0, $start=0)
 
getObjects ($criteria=null, $id_as_key=false, $as_object=true)
 
 insert (&$object, $force=true)
 
 loadHandler ($name, $args=null)
 
 setHandler ($handler=null, $args=null, $path=null)
 
 synchronization ()
 
 updateAll ($fieldname, $fieldvalue, $criteria=null, $force=false)
 
 updateByLink ($data, $criteria=null)
 
 XoopsPersistableObjectHandler ($db=null, $table= '', $className= '', $keyName= '', $identifierName= '')
 
- Public Member Functions inherited from XoopsObjectHandler
create ()
 
 delete (&$object)
 
get ($int_id)
 
 insert (&$object)
 
 XoopsObjectHandler (&$db)
 

Additional Inherited Members

- Public Attributes inherited from XoopsPersistableObjectHandler
 $className
 
 $handler
 
 $handlers = array('read' => null , 'stats' => null , 'joint' => null , 'write' => null , 'sync' => null)
 
 $identifierName
 
 $keyName
 
 $table
 

Detailed Description

Definition at line 415 of file field.php.

Constructor & Destructor Documentation

ProfileFieldHandler::__construct ( $db)

Definition at line 422 of file field.php.

References XoopsObjectHandler\$db.

Referenced by ProfileFieldHandler().

Here is the caller graph for this function:

Member Function Documentation

ProfileFieldHandler::delete ( $obj,
  $force = false 
)

delete a profile field from the database

Parameters
object$objreference to the object to delete
bool$force
Returns
bool FALSE if failed.

Definition at line 593 of file field.php.

References $criteria, $module_handler, $profile_handler, $sql, xoops_gethandler(), and xoops_getmodulehandler().

Here is the call graph for this function:

ProfileFieldHandler::getUserVars ( )

Get array of standard variable names (user table)

Returns
array

Definition at line 624 of file field.php.

Referenced by insert().

Here is the caller graph for this function:

ProfileFieldHandler::insert ( $obj,
  $force = false 
)

save a profile field in the database

Parameters
object$objreference to the object
bool$forcewhether to force the query execution despite security settings
bool$checkObjectcheck if the object is dirty and clean the attributes
Returns
bool FALSE if failed, TRUE if already present and unchanged or successful

Definition at line 457 of file field.php.

References $_REQUEST, $profile_handler, $sql, $type, getUserVars(), XOBJ_DTYPE_ARRAY, XOBJ_DTYPE_DECIMAL, XOBJ_DTYPE_EMAIL, XOBJ_DTYPE_FLOAT, XOBJ_DTYPE_INT, XOBJ_DTYPE_MTIME, XOBJ_DTYPE_OTHER, XOBJ_DTYPE_TXTAREA, XOBJ_DTYPE_TXTBOX, XOBJ_DTYPE_UNICODE_ARRAY, XOBJ_DTYPE_UNICODE_EMAIL, XOBJ_DTYPE_UNICODE_TXTAREA, XOBJ_DTYPE_UNICODE_TXTBOX, XOBJ_DTYPE_UNICODE_URL, XOBJ_DTYPE_URL, and xoops_getmodulehandler().

Here is the call graph for this function:

ProfileFieldHandler::loadFields (   $force_update = false)

Read field information from cached storage

Parameters
bool$force_updateread fields from database and not cached storage
Returns
array

Definition at line 434 of file field.php.

References $criteria, $fields, $i, and XoopsPersistableObjectHandler\getByLink().

Here is the call graph for this function:

ProfileFieldHandler::ProfileFieldHandler ( $db)

Definition at line 417 of file field.php.

References XoopsObjectHandler\$db, and __construct().

Here is the call graph for this function:


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