XOOPS API 2.5.11 Beta1
UI v0.5
Réalisé par monxoops.fr
|
Fonctions membres publiques | |
__construct (XoopsDatabase $db) | |
create ($isNew=true) | |
get ($uid=null, $fields=null) | |
createField ($isNew=true) | |
loadFields () | |
getFields (CriteriaElement $criteria, $id_as_key=true, $as_object=true) | |
insertField (ProfileField $field, $force=false) | |
deleteField (ProfileField $field, $force=false) | |
saveField ($vars, $weight=0) | |
insert (XoopsObject $obj, $force=false) | |
getUserVars () | |
search (CriteriaElement $criteria, $searchvars=array(), $groups=null) | |
Fonctions membres publiques hérités de XoopsPersistableObjectHandler | |
__construct (XoopsDatabase $db=null, $table='', $className='', $keyName='', $identifierName='') | |
XoopsPersistableObjectHandler (XoopsDatabase $db=null, $table='', $className='', $keyName='', $identifierName='') | |
setHandler ($handler=null, $args=null, $path=null) | |
loadHandler ($name, $args=null) | |
__call ($name, $args) | |
delete (XoopsObject $object, $force=false) | |
deleteAll (CriteriaElement $criteria=null, $force=true, $asObject=false) | |
updateAll ($fieldname, $fieldvalue, CriteriaElement $criteria=null, $force=false) | |
& | getObjects (CriteriaElement $criteria=null, $id_as_key=false, $as_object=true) |
& | getAll (CriteriaElement $criteria=null, $fields=null, $asObject=true, $id_as_key=true) |
getList (CriteriaElement $criteria=null, $limit=0, $start=0) | |
& | getIds (CriteriaElement $criteria=null) |
& | getByLimit ($limit=0, $start=0, CriteriaElement $criteria=null, $fields=null, $asObject=true) |
getCount (CriteriaElement $criteria=null) | |
getCounts (CriteriaElement $criteria=null) | |
& | getByLink (CriteriaElement $criteria=null, $fields=null, $asObject=true, $field_link=null, $field_object=null) |
getCountByLink (CriteriaElement $criteria=null) | |
getCountsByLink (CriteriaElement $criteria=null) | |
updateByLink ($data, CriteriaElement $criteria=null) | |
deleteByLink (CriteriaElement $criteria=null) | |
cleanOrphan ($table_link='', $field_link='', $field_object='') | |
synchronization () | |
convertResultSet ($result, $id_as_key=false, $as_object=true) | |
Fonctions membres publiques hérités de XoopsObjectHandler | |
XoopsObjectHandler ($db) | |
create () | |
get ($int_id) | |
insert (XoopsObject $object) | |
delete (XoopsObject $object) | |
Champs de données | |
$_fHandler | |
$_fields = array() | |
Champs de données hérités de XoopsPersistableObjectHandler | |
$handler | |
$handlers = array('read' => null, 'stats' => null, 'joint' => null, 'write' => null, 'sync' => null) | |
$table | |
$keyName | |
$className | |
$identifierName | |
$field_link | |
$field_object | |
Champs de données hérités de XoopsObjectHandler | |
$db | |
__construct | ( | XoopsDatabase | $db | ) |
null | XoopsDatabase | $db |
Réimplémentée à partir de XoopsObjectHandler.
create | ( | $isNew = true | ) |
create a new ProfileProfile
bool | $isNew | Flag the new objects as "new"? |
Réimplémentée à partir de XoopsPersistableObjectHandler.
createField | ( | $isNew = true | ) |
Create new ProfileField object
bool | $isNew |
deleteField | ( | ProfileField | $field, |
$force = false |
|||
) |
Get a ProfileProfile object for a user id.
We will create an empty profile if none exists. This behavior allows user objects created outside of profile to be edited correctly in the profile module.
integer | null | $uid | |
string[] | null | $fields | array of field names to fetch, null for all |
Réimplémentée à partir de XoopsPersistableObjectHandler.
getFields | ( | CriteriaElement | $criteria, |
$id_as_key = true , |
|||
$as_object = true |
|||
) |
Fetch fields
CriteriaElement | $criteria | CriteriaElement object |
bool | $id_as_key | return array with field IDs as key? |
bool | $as_object | return array of objects? |
getUserVars | ( | ) |
Get array of standard variable names (user table)
insert | ( | XoopsObject | $obj, |
$force = false |
|||
) |
insert a new object in the database
XoopsObject | ProfileProfile | $obj | reference to the object |
bool | $force | whether to force the query execution despite security settings |
Réimplémentée à partir de XoopsPersistableObjectHandler.
insertField | ( | ProfileField | $field, |
$force = false |
|||
) |
Insert a field in the database
ProfileField | $field | |
bool | $force |
loadFields | ( | ) |
Load field information
saveField | ( | $vars, | |
$weight = 0 |
|||
) |
Save a new field in the database
array | $vars | array of variables, taken from $module->loadInfo('profile')['field'] |
int | $weight |
search | ( | CriteriaElement | $criteria, |
$searchvars = array() , |
|||
$groups = null |
|||
) |
Search profiles and users
CriteriaElement | $criteria | CriteriaElement |
array | $searchvars | Fields to be fetched |
array | $groups | for Usergroups is selected (only admin!) |
$_fHandler |
holds reference to profileFieldHandler object
$_fields = array() |