API - XOOPS 2.5.11 Beta 2
By monxoops.fr
|
Public Member Functions | |
__construct (XoopsDatabase $db) | |
create ($isNew=true) | |
get ($id) | |
insert (XoopsObject $mship) | |
delete (XoopsObject $mship) | |
getObjects (CriteriaElement $criteria=null, $id_as_key=false) | |
getCount (CriteriaElement $criteria=null) | |
deleteAll (CriteriaElement $criteria=null) | |
getGroupsByUser ($uid) | |
getUsersByGroup ($groupid, $limit=0, $start=0) | |
Public Member Functions inherited from XoopsObjectHandler | |
__construct (XoopsDatabase $db) | |
XoopsObjectHandler ($db) | |
create () | |
get ($id) | |
insert (XoopsObject $object) | |
delete (XoopsObject $object) | |
Data Fields | |
$table | |
Data Fields inherited from XoopsObjectHandler | |
$db | |
__construct | ( | XoopsDatabase | $db | ) |
called from child classes only
XoopsDatabase | $db | reference to the XoopsDatabase object @access protected |
Reimplemented from XoopsObjectHandler.
create | ( | $isNew = true | ) |
create a new membership
bool | $isNew | should the new object be set to "new"? |
delete | ( | XoopsObject | $mship | ) |
delete a membership from the database
XoopsObject | XoopsMembership | $mship | a XoopsMembership object |
Reimplemented from XoopsObjectHandler.
deleteAll | ( | CriteriaElement | $criteria = null | ) |
delete all memberships meeting the conditions
CriteriaElement | CriteriaCompo | $criteria | CriteriaElement with conditions to meet |
get | ( | $id | ) |
retrieve a membership
int | $id | ID of the membership to get |
Reimplemented from XoopsObjectHandler.
getCount | ( | CriteriaElement | $criteria = null | ) |
count how many memberships meet the conditions
CriteriaElement | CriteriaCompo | $criteria | CriteriaElement conditions to meet |
getGroupsByUser | ( | $uid | ) |
retrieve groups for a user
int | $uid | ID of the user |
getObjects | ( | CriteriaElement | $criteria = null , |
$id_as_key = false |
|||
) |
retrieve memberships from the database
CriteriaElement | CriteriaCompo | $criteria | CriteriaElement conditions to meet |
bool | $id_as_key | should the ID be used as the array's key? |
getUsersByGroup | ( | $groupid, | |
$limit = 0 , |
|||
$start = 0 |
|||
) |
retrieve users belonging to a group
int | $groupid | ID of the group |
int | $limit | number of entries to return |
int | $start | offset of first entry to return |
insert | ( | XoopsObject | $mship | ) |
inserts a membership in the database
XoopsObject | XoopsMembership | $mship | a XoopsMembership object |
Reimplemented from XoopsObjectHandler.
$table |