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

Public Member Functions

 __construct (&$db)
 
create ($isNew=true)
 
createField ($isNew=true)
 
 deleteField (&$field, $force=false)
 
get ($uid, $createOnFailure=true)
 
 getFields ($criteria, $id_as_key=true, $as_object=true)
 
 getUserVars ()
 
 insert (&$obj, $force=false, $checkObject=true)
 
 insertField (&$field, $force=false)
 
 loadFields ()
 
 ProfileProfileHandler (&$db)
 
 saveField ($vars, $weight=0)
 
 search ($criteria, $searchvars=array(), $groups=null)
 
- 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)
 

Public Attributes

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

Detailed Description

Definition at line 57 of file profile.php.

Constructor & Destructor Documentation

ProfileProfileHandler::__construct ( $db)

Definition at line 75 of file profile.php.

References XoopsObjectHandler\$db, and xoops_getmodulehandler().

Referenced by ProfileProfileHandler().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Function Documentation

& ProfileProfileHandler::create (   $isNew = true)

create a new ProfileProfile

Parameters
bool$isNewFlag the new objects as "new"?
Returns
object ProfileProfile

Definition at line 88 of file profile.php.

References loadFields().

Here is the call graph for this function:

& ProfileProfileHandler::createField (   $isNew = true)

Create new profileField object

Parameters
bool$isNew
Returns
object

Definition at line 121 of file profile.php.

Referenced by saveField().

Here is the caller graph for this function:

ProfileProfileHandler::deleteField ( $field,
  $force = false 
)

Delete a field from the database

Parameters
object$field
bool$force
Returns
bool

Definition at line 175 of file profile.php.

& ProfileProfileHandler::get (   $uid,
  $createOnFailure = true 
)

Get a ProfileProfile

Parameters
boolean$createOnFailurecreate a new ProfileProfile if none is feteched
Returns
object ProfileProfile

Definition at line 105 of file profile.php.

References $uid, and XoopsObjectHandler\create().

Here is the call graph for this function:

ProfileProfileHandler::getFields (   $criteria,
  $id_as_key = true,
  $as_object = true 
)

Fetch fields

Parameters
object$criteriaCriteriaElement object
bool$id_as_keyreturn array with field IDs as key?
bool$as_objectreturn array of objects?
Returns
array

Definition at line 149 of file profile.php.

References $criteria.

ProfileProfileHandler::getUserVars ( )

Get array of standard variable names (user table)

Returns
array

Definition at line 267 of file profile.php.

Referenced by insert(), and search().

Here is the caller graph for this function:

ProfileProfileHandler::insert ( $obj,
  $force = false,
  $checkObject = true 
)

insert a new object 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 249 of file profile.php.

References $var, and getUserVars().

Here is the call graph for this function:

ProfileProfileHandler::insertField ( $field,
  $force = false 
)

Insert a field in the database

Parameters
object$field
bool$force
Returns
bool

Definition at line 162 of file profile.php.

Referenced by saveField().

Here is the caller graph for this function:

ProfileProfileHandler::loadFields ( )

Load field information

Returns
array

Definition at line 132 of file profile.php.

References $_fields.

Referenced by create().

Here is the caller graph for this function:

ProfileProfileHandler::ProfileProfileHandler ( $db)

Definition at line 70 of file profile.php.

References XoopsObjectHandler\$db, and __construct().

Here is the call graph for this function:

ProfileProfileHandler::saveField (   $vars,
  $weight = 0 
)

Save a new field in the database

Parameters
array$varsarray of variables, taken from $module->loadInfo('profile')['field']
int$categoryidID of the category to add it to
int$typevaluetype of the field
int$moduleidID of the module, this field belongs to
int$weight
Returns
string

Definition at line 191 of file profile.php.

References $msg, $vars, createField(), and insertField().

Here is the call graph for this function:

ProfileProfileHandler::search (   $criteria,
  $searchvars = array(),
  $groups = null 
)

Search profiles and users

Parameters
object$criteriaCriteriaElement
array$searchvarsFields to be fetched
array$groupsfor Usergroups is selected (only admin!)
Returns
array

Definition at line 281 of file profile.php.

References $criteria, $groups, $limit, $profile, $result, $sql_count, $start, $user, $user_handler, XoopsObjectHandler\create(), getUserVars(), and xoops_gethandler().

Here is the call graph for this function:

Member Data Documentation

ProfileProfileHandler::$_fHandler

holds reference to profileFieldHandler object

Definition at line 62 of file profile.php.

ProfileProfileHandler::$_fields = array()

Definition at line 68 of file profile.php.

Referenced by loadFields().


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