API - XOOPS 2.5.11 Beta 2
By monxoops.fr
|
Public Member Functions | |
__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) | |
Public Member Functions inherited from 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) | |
create ($isNew=true) | |
get ($id=null, $fields=null) | |
insert (XoopsObject $object, $force=true) | |
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) | |
Public Member Functions inherited from XoopsObjectHandler | |
__construct (XoopsDatabase $db) | |
XoopsObjectHandler ($db) | |
create () | |
get ($id) | |
insert (XoopsObject $object) | |
delete (XoopsObject $object) | |
Data Fields | |
$_fHandler | |
$_fields = array() | |
Data Fields inherited from XoopsPersistableObjectHandler | |
$handler | |
$handlers = array('read' => null, 'stats' => null, 'joint' => null, 'write' => null, 'sync' => null) | |
$table | |
$keyName | |
$className | |
$identifierName | |
$field_link | |
$field_object | |
Data Fields inherited from XoopsObjectHandler | |
$db | |
__construct | ( | XoopsDatabase | $db | ) |
null | XoopsDatabase | $db |
Reimplemented from XoopsObjectHandler.
create | ( | $isNew = true | ) |
create a new ProfileProfile
bool | $isNew | Flag the new objects as "new"? |
ProfileProfile
Reimplemented from XoopsPersistableObjectHandler.
createField | ( | $isNew = true | ) |
Create new ProfileField
object
bool | $isNew |
deleteField | ( | ProfileField | $field, |
$force = false |
|||
) |
get | ( | $uid = null , |
|
$fields = null |
|||
) |
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 |
ProfileProfile
Reimplemented from 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 |
Reimplemented from 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() |