XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Public Member Functions | |
__construct (&$db) | |
XoopsMemberHandler (&$db) | |
& | createGroup () |
& | createUser () |
& | getGroup ($id) |
& | getUser ($id) |
& | getUserByEmail ($email) |
delete (&$object) | |
deleteGroup (&$group) | |
deleteUser (&$user) | |
insertGroup (&$group) | |
insertUser (&$user, $force=false) | |
& | getGroups ($criteria=null, $id_as_key=false) |
& | getUsers ($criteria=null, $id_as_key=false) |
& | getGroupList ($criteria=null) |
getUserList ($criteria=null) | |
addUserToGroup ($group_id, $user_id) | |
removeUserFromGroup ($group_id, $user_id) | |
removeUsersFromGroup ($group_id, $user_ids=[]) | |
& | getUsersByGroup ($group_id, $asobject=false, $limit=0, $start=0) |
& | getUsersByNoGroup ($group_id, $asobject=false, $limit=0, $start=0) |
& | getGroupsByUser ($user_id, $asobject=false) |
& | loginUser ($uname, $pwd) |
& | loginUserMd5 ($uname, $md5pwd) |
getUserCount ($criteria=null) | |
getUserCountByGroup ($group_id) | |
getUserCountByNoGroup ($group_id) | |
updateUserByField (&$user, $fieldName, $fieldValue) | |
updateUsersByField ($fieldName, $fieldValue, $criteria=null) | |
activateUser (&$user) | |
Data Fields | |
$_gHandler | |
$_uHandler | |
$_mHandler | |
$_members = [] | |
Definition at line 29 of file member.php.
__construct | ( | & | $db | ) |
activateUser | ( | & | $user | ) |
activate a user
object | $user | reference to the XoopsUser object |
Definition at line 512 of file member.php.
addUserToGroup | ( | $group_id, | |
$user_id ) |
add a user to a group
int | $group_id | ID of the group |
int | $user_id | ID of the user |
Definition at line 258 of file member.php.
& createGroup | ( | ) |
create a new group
Definition at line 74 of file member.php.
& createUser | ( | ) |
create a new user
Definition at line 85 of file member.php.
delete | ( | & | $object | ) |
Delete function. This function is virtual overload function.
XoopsUser | $object | or XoopsGroup |
Definition at line 138 of file member.php.
deleteGroup | ( | & | $group | ) |
delete a group
object | $group | reference to the group to delete |
Definition at line 153 of file member.php.
deleteUser | ( | & | $user | ) |
delete a user
object | $user | reference to the user to delete |
Definition at line 166 of file member.php.
& getGroup | ( | $id | ) |
retrieve a group
int | $id | ID for the group |
Definition at line 97 of file member.php.
& getGroupList | ( | $criteria = null | ) |
get a list of groupnames and their IDs
object | $criteria | CriteriaElement object |
Definition at line 230 of file member.php.
& getGroups | ( | $criteria = null, | |
$id_as_key = false ) |
retrieve groups from the database
object | $criteria | CriteriaElement |
bool | $id_as_key | use the group's ID as key for the array? |
XoopsGroup
objects Definition at line 205 of file member.php.
& getGroupsByUser | ( | $user_id, | |
$asobject = false ) |
get a list of groups that a user is member of
int | $user_id | ID of the user |
bool | $asobject | return groups as XoopsGroup objects or arrays? |
Definition at line 364 of file member.php.
& getUser | ( | $id | ) |
retrieve a user
int | $id | ID for the user |
Definition at line 109 of file member.php.
& getUserByEmail | ( | ) |
getUserCount | ( | $criteria = null | ) |
count users matching certain conditions
object | $criteria | CriteriaElement object |
Definition at line 437 of file member.php.
getUserCountByGroup | ( | $group_id | ) |
count users belonging to a group
int | $group_id | ID of the group |
Definition at line 448 of file member.php.
getUserCountByNoGroup | ( | $group_id | ) |
$group_id |
Definition at line 458 of file member.php.
getUserList | ( | $criteria = null | ) |
get a list of usernames and their IDs
object | $criteria | CriteriaElement object |
Definition at line 246 of file member.php.
& getUsers | ( | $criteria = null, | |
$id_as_key = false ) |
retrieve users from the database
object | $criteria | CriteriaElement |
bool | $id_as_key | use the group's ID as key for the array? |
XoopsUser
objects Definition at line 218 of file member.php.
& getUsersByGroup | ( | $group_id, | |
$asobject = false, | |||
$limit = 0, | |||
$start = 0 ) |
get a list of users belonging to a group
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 |
XoopsUser
objects (if $asobject is TRUE) or of associative arrays matching the record structure in the database. Definition at line 313 of file member.php.
& getUsersByNoGroup | ( | $group_id, | |
$asobject = false, | |||
$limit = 0, | |||
$start = 0 ) |
$group_id | ||
bool | $asobject | |
int | $limit | |
int | $start |
Definition at line 339 of file member.php.
insertGroup | ( | & | $group | ) |
insert a group into the database
object | $group | reference to the group to insert |
Definition at line 180 of file member.php.
insertUser | ( | & | $user, |
$force = false ) |
insert a user into the database
object | $user | reference to the user to insert |
bool | $force |
Definition at line 193 of file member.php.
& loginUser | ( | $uname, | |
$pwd ) |
log in a user
string | $uname | username as entered in the login form |
string | $pwd | password entered in the login form |
Definition at line 385 of file member.php.
& loginUserMd5 | ( | $uname, | |
$md5pwd ) |
logs in a user with an md5 encrypted password
string | $uname | username |
string | $md5pwd | password encrypted with md5 |
Definition at line 419 of file member.php.
removeUserFromGroup | ( | $group_id, | |
$user_id ) |
remove a one user from a group.
int | $group_id | ID of the group |
int | $user_id | ID of the user |
Definition at line 278 of file member.php.
removeUsersFromGroup | ( | $group_id, | |
$user_ids = [] ) |
remove a list of users from a group
int | $group_id | ID of the group |
array | $user_ids | array of user-IDs |
Definition at line 291 of file member.php.
updateUserByField | ( | & | $user, |
$fieldName, | |||
$fieldValue ) |
updates a single field in a users record
object | $user | reference to the XoopsUser object |
string | $fieldName | name of the field to update |
string | $fieldValue | updated value for the field |
Definition at line 487 of file member.php.
updateUsersByField | ( | $fieldName, | |
$fieldValue, | |||
$criteria = null ) |
updates a single field in a users record
string | $fieldName | name of the field to update |
string | $fieldValue | updated value for the field |
object | $criteria | CriteriaElement object |
Definition at line 501 of file member.php.
XoopsMemberHandler | ( | & | $db | ) |
Definition at line 64 of file member.php.
$_gHandler |
#+ holds reference to group handler(DAO) class @access private
Definition at line 36 of file member.php.
$_members = [] |
holds temporary user objects
Definition at line 51 of file member.php.
$_mHandler |
holds reference to membership handler(DAO) class
Definition at line 46 of file member.php.
$_uHandler |
holds reference to user handler(DAO) class
Definition at line 41 of file member.php.