| [ Index ] |
|
Code source de XOOPS 2.0.17.1 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
| Poids: | 444 lignes (15 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
XoopsGroup:: (1 méthode):
XoopsGroup()
XoopsGroupHandler:: (5 méthodes):
create()
get()
insert()
delete()
getObjects()
XoopsMembership:: (1 méthode):
XoopsMembership()
XoopsMembershipHandler:: (9 méthodes):
create()
get()
insert()
delete()
getObjects()
getCount()
deleteAll()
getGroupsByUser()
getUsersByGroup()
Classe: XoopsGroupHandler - X-Ref
XOOPS group handler class.| create($isNew = true) X-Ref |
| create a new {@link XoopsGroup} object param: bool $isNew mark the new object as "new"? return: object XoopsGroup reference to the new object |
| get($id) X-Ref |
| retrieve a specific group param: int $id ID of the group to get return: object XoopsGroup reference to the group object, FALSE if failed |
| insert(&$group) X-Ref |
| insert a group into the database param: object reference to the group object return: mixed ID of the group if inserted, FALSE if failed, TRUE if already present and unchanged. |
| delete(&$group) X-Ref |
| remove a group from the database param: object $group reference to the group to be removed return: bool FALSE if failed |
| getObjects($criteria = null, $id_as_key = false) X-Ref |
| retrieve groups from the database param: object $criteria {@link CriteriaElement} with conditions for the groups param: bool $id_as_key should the groups' IDs be used as keys for the associative array? return: mixed Array of groups |
Classe: XoopsMembershipHandler - X-Ref
XOOPS membership handler class. (Singleton)| create($isNew = true) X-Ref |
| create a new membership param: bool $isNew should the new object be set to "new"? return: object XoopsMembership |
| get($id) X-Ref |
| retrieve a membership param: int $id ID of the membership to get return: mixed reference to the object if successful, else FALSE |
| insert(&$mship) X-Ref |
| inserts a membership in the database param: object $mship reference to the membership object return: bool TRUE if already in DB or successful, FALSE if failed |
| delete(&$mship) X-Ref |
| delete a membership from the database param: object $mship reference to the membership object return: bool FALSE if failed |
| getObjects($criteria = null, $id_as_key = false) X-Ref |
| retrieve memberships from the database param: object $criteria {@link CriteriaElement} conditions to meet param: bool $id_as_key should the ID be used as the array's key? return: array array of references |
| getCount($criteria = null) X-Ref |
| count how many memberships meet the conditions param: object $criteria {@link CriteriaElement} conditions to meet return: int |
| deleteAll($criteria = null) X-Ref |
| delete all memberships meeting the conditions param: object $criteria {@link CriteriaElement} with conditions to meet return: bool |
| getGroupsByUser($uid) X-Ref |
| retrieve groups for a user param: int $uid ID of the user param: bool $asobject should the groups be returned as {@link XoopsGroup} return: array array of groups the user belongs to |
| getUsersByGroup($groupid, $limit=0, $start=0) X-Ref |
| retrieve users belonging to a group param: int $groupid ID of the group param: bool $asobject return users as {@link XoopsUser} objects? param: int $limit number of entries to return param: int $start offset of first entry to return return: array array of users belonging to the group |
| Généré le : Sun Nov 25 11:44:32 2007 | par Balluche grâce à PHPXref 0.7 |
|