XOOPS 2.5.6
Final
|
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 | |
Definition at line 57 of file profile.php.
ProfileProfileHandler::__construct | ( | & | $db | ) |
Definition at line 75 of file profile.php.
References XoopsObjectHandler\$db, and xoops_getmodulehandler().
Referenced by ProfileProfileHandler().
& ProfileProfileHandler::create | ( | $isNew = true | ) |
create a new ProfileProfile
bool | $isNew | Flag the new objects as "new"? |
Definition at line 88 of file profile.php.
References loadFields().
& ProfileProfileHandler::createField | ( | $isNew = true | ) |
Create new profileField object
bool | $isNew |
Definition at line 121 of file profile.php.
Referenced by saveField().
ProfileProfileHandler::deleteField | ( | & | $field, |
$force = false |
|||
) |
Delete a field from the database
object | $field | |
bool | $force |
Definition at line 175 of file profile.php.
& ProfileProfileHandler::get | ( | $uid, | |
$createOnFailure = true |
|||
) |
Get a ProfileProfile
boolean | $createOnFailure | create a new ProfileProfile if none is feteched |
Definition at line 105 of file profile.php.
References $uid, and XoopsObjectHandler\create().
Fetch fields
object | $criteria | CriteriaElement object |
bool | $id_as_key | return array with field IDs as key? |
bool | $as_object | return array of objects? |
Definition at line 149 of file profile.php.
References $criteria.
ProfileProfileHandler::getUserVars | ( | ) |
Get array of standard variable names (user table)
Definition at line 267 of file profile.php.
Referenced by insert(), and search().
insert a new object in the database
object | $obj | reference to the object |
bool | $force | whether to force the query execution despite security settings |
bool | $checkObject | check if the object is dirty and clean the attributes |
Definition at line 249 of file profile.php.
References $var, and getUserVars().
ProfileProfileHandler::insertField | ( | & | $field, |
$force = false |
|||
) |
Insert a field in the database
object | $field | |
bool | $force |
Definition at line 162 of file profile.php.
Referenced by saveField().
ProfileProfileHandler::loadFields | ( | ) |
Load field information
Definition at line 132 of file profile.php.
References $_fields.
Referenced by create().
ProfileProfileHandler::ProfileProfileHandler | ( | & | $db | ) |
Definition at line 70 of file profile.php.
References XoopsObjectHandler\$db, and __construct().
ProfileProfileHandler::saveField | ( | $vars, | |
$weight = 0 |
|||
) |
Save a new field in the database
array | $vars | array of variables, taken from $module->loadInfo('profile')['field'] |
int | $categoryid | ID of the category to add it to |
int | $type | valuetype of the field |
int | $moduleid | ID of the module, this field belongs to |
int | $weight |
Definition at line 191 of file profile.php.
References $msg, $vars, createField(), and insertField().
ProfileProfileHandler::search | ( | $criteria, | |
$searchvars = array() , |
|||
$groups = null |
|||
) |
Search profiles and users
object | $criteria | CriteriaElement |
array | $searchvars | Fields to be fetched |
array | $groups | for Usergroups is selected (only admin!) |
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().
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().