Definition at line 262 of file group.php.
& XoopsMembershipHandler::create |
( |
|
$isNew = true | ) |
|
create a new membership
- Parameters
-
bool | $isNew | should the new object be set to "new"? |
- Returns
- object XoopsMembership
Definition at line 270 of file group.php.
XoopsMembershipHandler::delete |
( |
& |
$mship | ) |
|
delete a membership from the database
- Parameters
-
object | $mship | reference to the membership object |
- Returns
- bool FALSE if failed
: Change to if (!(class_exists($this->className) && $obj instanceof $this->className)) when going fully PHP5
Definition at line 348 of file group.php.
References $result, and $sql.
XoopsMembershipHandler::deleteAll |
( |
|
$criteria = null | ) |
|
& XoopsMembershipHandler::get |
( |
|
$id | ) |
|
retrieve a membership
- Parameters
-
int | $id | ID of the membership to get |
- Returns
- mixed reference to the object if successful, else FALSE
Definition at line 285 of file group.php.
References $result, and $sql.
XoopsMembershipHandler::getCount |
( |
|
$criteria = null | ) |
|
XoopsMembershipHandler::getGroupsByUser |
( |
|
$uid | ) |
|
retrieve groups for a user
- Parameters
-
int | $uid | ID of the user |
bool | $asobject | should the groups be returned as XoopsGroup objects? FALSE returns associative array. |
- Returns
- array array of groups the user belongs to
Definition at line 444 of file group.php.
References $result, $ret, $sql, and $uid.
XoopsMembershipHandler::getObjects |
( |
|
$criteria = null , |
|
|
|
$id_as_key = false |
|
) |
| |
XoopsMembershipHandler::getUsersByGroup |
( |
|
$groupid, |
|
|
|
$limit = 0 , |
|
|
|
$start = 0 |
|
) |
| |
retrieve users belonging to a group
- Parameters
-
int | $groupid | ID of the group |
bool | $asobject | return users as XoopsUser objects? FALSE will return arrays |
int | $limit | number of entries to return |
int | $start | offset of first entry to return |
- Returns
- array array of users belonging to the group
Definition at line 468 of file group.php.
References $limit, $result, $ret, $sql, and $start.
XoopsMembershipHandler::insert |
( |
& |
$mship | ) |
|
inserts a membership in the database
- Parameters
-
object | $mship | reference to the membership object |
- Returns
- bool TRUE if already in DB or successful, FALSE if failed
: Change to if (!(class_exists($this->className) && $obj instanceof $this->className)) when going fully PHP5
Definition at line 309 of file group.php.
References $result, $sql, and $uid.
The documentation for this class was generated from the following file:
- L:/0xoops/xoops-2.5.6/htdocs/kernel/group.php