|
| __construct (XoopsDatabase $db) |
|
& | createGroup () |
|
| createUser () |
|
| getGroup ($id) |
|
| getUser ($id) |
|
| deleteGroup (XoopsGroup $group) |
|
| deleteUser (XoopsUser $user) |
|
| insertGroup (XoopsGroup $group) |
|
| insertUser (XoopsUser $user, $force=false) |
|
| getGroups (CriteriaElement $criteria=null, $id_as_key=false) |
|
| getUsers (CriteriaElement $criteria=null, $id_as_key=false) |
|
| getGroupList (CriteriaElement $criteria=null) |
|
| getUserList (CriteriaElement $criteria=null) |
|
| addUserToGroup ($group_id, $user_id) |
|
| removeUsersFromGroup ($group_id, $user_ids=array()) |
|
| getUsersByGroup ($group_id, $asobject=false, $limit=0, $start=0) |
|
| getGroupsByUser ($user_id, $asobject=false) |
|
| loginUser ($uname, $pwd) |
|
| getUserCount (CriteriaElement $criteria=null) |
|
| getUserCountByGroup ($group_id) |
|
| updateUserByField (XoopsUser $user, $fieldName, $fieldValue) |
|
| updateUsersByField ($fieldName, $fieldValue, CriteriaElement $criteria=null) |
|
| activateUser (XoopsUser $user) |
|
| getUsersByGroupLink ($groups, CriteriaElement $criteria=null, $asobject=false, $id_as_key=false) |
|
| getUserCountByGroupLink (array $groups, CriteriaElement $criteria=null) |
|
◆ __construct()
◆ activateUser()
activate a user
- Parameters
-
- Returns
- mixed successful? false on failure
◆ addUserToGroup()
addUserToGroup |
( |
|
$group_id, |
|
|
|
$user_id |
|
) |
| |
◆ createGroup()
◆ createUser()
create a new user
- Returns
- XoopsUser reference to the new user
◆ deleteGroup()
delete a group
- Parameters
-
- Returns
- bool FALSE if failed
◆ deleteUser()
delete a user
- Parameters
-
XoopsUser | $user | reference to the user to delete |
- Returns
- bool FALSE if failed
◆ getGroup()
◆ getGroupList()
get a list of groupnames and their IDs
- Parameters
-
- Returns
- array associative array of group-IDs and names
◆ getGroups()
retrieve groups from the database
- Parameters
-
- Returns
- array array of
XoopsGroup
objects
◆ getGroupsByUser()
getGroupsByUser |
( |
|
$user_id, |
|
|
|
$asobject = false |
|
) |
| |
get a list of groups that a user is member of
- Parameters
-
int | $user_id | ID of the user |
bool | $asobject | return groups as XoopsGroup objects or arrays? |
- Returns
- array array of objects or arrays
◆ getUser()
retrieve a user
- Parameters
-
- Returns
- XoopsUser reference to the user
◆ getUserCount()
count users matching certain conditions
- Parameters
-
- Returns
- int
◆ getUserCountByGroup()
getUserCountByGroup |
( |
|
$group_id | ) |
|
count users belonging to a group
- Parameters
-
int | $group_id | ID of the group |
- Returns
- int
◆ getUserCountByGroupLink()
getUserCountByGroupLink |
( |
array |
$groups, |
|
|
CriteriaElement |
$criteria = null |
|
) |
| |
Get count of users belonging to certain groups and matching criteria Temporary solution
- Parameters
-
- Returns
- int count of users
◆ getUserList()
get a list of usernames and their IDs
- Parameters
-
- Returns
- array associative array of user-IDs and names
◆ getUsers()
retrieve users from the database
- Parameters
-
- Returns
- array array of
XoopsUser
objects
◆ getUsersByGroup()
getUsersByGroup |
( |
|
$group_id, |
|
|
|
$asobject = false , |
|
|
|
$limit = 0 , |
|
|
|
$start = 0 |
|
) |
| |
get a list of users belonging to a group
- Parameters
-
int | $group_id | ID of the group |
bool | $asobject | return the users as objects? |
int | $limit | number of users to return |
int | $start | index of the first user to return |
- Returns
- array Array of
XoopsUser
objects (if $asobject is TRUE) or of associative arrays matching the record structure in the database.
◆ getUsersByGroupLink()
getUsersByGroupLink |
( |
|
$groups, |
|
|
CriteriaElement |
$criteria = null , |
|
|
|
$asobject = false , |
|
|
|
$id_as_key = false |
|
) |
| |
Get a list of users belonging to certain groups and matching criteria Temporary solution
- Parameters
-
array | $groups | IDs of groups |
CriteriaElement | $criteria | CriteriaElement object |
bool | $asobject | return the users as objects? |
bool | $id_as_key | use the UID as key for the array if $asobject is TRUE |
- Returns
- array Array of
XoopsUser
objects (if $asobject is TRUE) or of associative arrays matching the record structure in the database.
◆ insertGroup()
insert a group into the database
- Parameters
-
- Returns
- bool TRUE if already in database and unchanged FALSE on failure
◆ insertUser()
insertUser |
( |
XoopsUser |
$user, |
|
|
|
$force = false |
|
) |
| |
insert a user into the database
- Parameters
-
XoopsUser | $user | reference to the user to insert |
bool | $force | |
- Returns
- bool TRUE if already in database and unchanged FALSE on failure
◆ loginUser()
loginUser |
( |
|
$uname, |
|
|
|
$pwd |
|
) |
| |
log in a user
- Parameters
-
string | $uname | username as entered in the login form |
string | $pwd | password entered in the login form |
- Returns
- XoopsUser|false logged in XoopsUser, FALSE if failed to log in
◆ removeUsersFromGroup()
removeUsersFromGroup |
( |
|
$group_id, |
|
|
|
$user_ids = array() |
|
) |
| |
remove a list of users from a group
- Parameters
-
int | $group_id | ID of the group |
array | $user_ids | array of user-IDs |
- Returns
- bool success?
◆ updateUserByField()
updateUserByField |
( |
XoopsUser |
$user, |
|
|
|
$fieldName, |
|
|
|
$fieldValue |
|
) |
| |
updates a single field in a users record
- Parameters
-
XoopsUser | $user | reference to the XoopsUser object |
string | $fieldName | name of the field to update |
string | $fieldValue | updated value for the field |
- Returns
- bool TRUE if success or unchanged, FALSE on failure
◆ updateUsersByField()
updateUsersByField |
( |
|
$fieldName, |
|
|
|
$fieldValue, |
|
|
CriteriaElement |
$criteria = null |
|
) |
| |
updates a single field in a users record
- Parameters
-
- Returns
- bool TRUE if success or unchanged, FALSE on failure
◆ $groupHandler
holds reference to group handler(DAO) class @access private
◆ $membershipHandler
holds reference to membership handler(DAO) class
◆ $membersWorkingList
$membersWorkingList = array() |
|
protected |
holds temporary user objects
◆ $userHandler
holds reference to user handler(DAO) class
The documentation for this class was generated from the following file: