XOOPS 2.5.6
Final
|
Public Member Functions | |
activateUser (&$user) | |
addUserToGroup ($group_id, $user_id) | |
& | createGroup () |
& | createUser () |
deleteGroup (&$group) | |
deleteUser (&$user) | |
getGroup ($id) | |
getGroupList ($criteria=null) | |
getGroups ($criteria=null, $id_as_key=false) | |
getGroupsByUser ($user_id, $asobject=false) | |
& | getUser ($id) |
getUserCount ($criteria=null) | |
getUserCountByGroup ($group_id) | |
getUserCountByGroupLink ($groups, $criteria=null) | |
getUserList ($criteria=null) | |
getUsers ($criteria=null, $id_as_key=false) | |
getUsersByGroup ($group_id, $asobject=false, $limit=0, $start=0) | |
getUsersByGroupLink ($groups, $criteria=null, $asobject=false, $id_as_key=false) | |
insertGroup (&$group) | |
insertUser (&$user, $force=false) | |
& | loginUser ($uname, $pwd) |
& | loginUserMd5 ($uname, $md5pwd) |
removeUsersFromGroup ($group_id, $user_ids=array()) | |
updateUserByField (&$user, $fieldName, $fieldValue) | |
updateUsersByField ($fieldName, $fieldValue, $criteria=null) | |
XoopsMemberHandler (&$db) | |
Public Attributes | |
$_gHandler | |
$_members = array() | |
$_mHandler | |
$_uHandler | |
Definition at line 35 of file member.php.
XoopsMemberHandler::activateUser | ( | & | $user | ) |
activate a user
object | $user | reference to the XoopsUser object |
Definition at line 399 of file member.php.
References $user.
XoopsMemberHandler::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 231 of file member.php.
References $user_id.
& XoopsMemberHandler::createGroup | ( | ) |
create a new group
Definition at line 76 of file member.php.
& XoopsMemberHandler::createUser | ( | ) |
create a new user
Definition at line 87 of file member.php.
XoopsMemberHandler::deleteGroup | ( | & | $group | ) |
delete a group
object | $group | reference to the group to delete |
Definition at line 124 of file member.php.
XoopsMemberHandler::deleteUser | ( | & | $user | ) |
delete a user
object | $user | reference to the user to delete |
Definition at line 137 of file member.php.
References $user.
XoopsMemberHandler::getGroup | ( | $id | ) |
retrieve a group
int | $id | ID for the group |
Definition at line 99 of file member.php.
XoopsMemberHandler::getGroupList | ( | $criteria = null | ) |
get a list of groupnames and their IDs
object | $criteria | CriteriaElement object |
Definition at line 198 of file member.php.
XoopsMemberHandler::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? |
Definition at line 175 of file member.php.
References $criteria.
XoopsMemberHandler::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 293 of file member.php.
& XoopsMemberHandler::getUser | ( | $id | ) |
retrieve a user
int | $id | ID for the user |
Definition at line 110 of file member.php.
XoopsMemberHandler::getUserCount | ( | $criteria = null | ) |
count users matching certain conditions
object | $criteria | CriteriaElement object |
Definition at line 350 of file member.php.
References $criteria.
XoopsMemberHandler::getUserCountByGroup | ( | $group_id | ) |
count users belonging to a group
int | $group_id | ID of the group |
Definition at line 361 of file member.php.
XoopsMemberHandler::getUserCountByGroupLink | ( | $groups, | |
$criteria = null |
|||
) |
XoopsMemberHandler::getUserList | ( | $criteria = null | ) |
get a list of usernames and their IDs
object | $criteria | CriteriaElement object |
Definition at line 214 of file member.php.
XoopsMemberHandler::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? |
Definition at line 187 of file member.php.
References $criteria.
XoopsMemberHandler::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 |
Definition at line 268 of file member.php.
XoopsMemberHandler::getUsersByGroupLink | ( | $groups, | |
$criteria = null , |
|||
$asobject = false , |
|||
$id_as_key = false |
|||
) |
Get a list of users belonging to certain groups and matching criteria Temporary solution
array | $groups | IDs of groups |
object | $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 |
Definition at line 419 of file member.php.
References $criteria, $groups, $limit, $result, $ret, $sql, $start, and $user.
XoopsMemberHandler::insertGroup | ( | & | $group | ) |
insert a group into the database
object | $group | reference to the group to insert |
Definition at line 151 of file member.php.
XoopsMemberHandler::insertUser | ( | & | $user, |
$force = false |
|||
) |
insert a user into the database
object | $user | reference to the user to insert |
Definition at line 163 of file member.php.
References $user.
& XoopsMemberHandler::loginUser | ( | $uname, | |
$pwd | |||
) |
& XoopsMemberHandler::loginUserMd5 | ( | $uname, | |
$md5pwd | |||
) |
XoopsMemberHandler::removeUsersFromGroup | ( | $group_id, | |
$user_ids = array() |
|||
) |
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 246 of file member.php.
References $criteria, $criteria2, and $uid.
XoopsMemberHandler::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 374 of file member.php.
References $user.
XoopsMemberHandler::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 388 of file member.php.
References $criteria.
XoopsMemberHandler::XoopsMemberHandler | ( | & | $db | ) |
XoopsMemberHandler::$_gHandler |
#@+ holds reference to group handler(DAO) class private
Definition at line 42 of file member.php.
XoopsMemberHandler::$_members = array() |
holds temporary user objects
Definition at line 57 of file member.php.
XoopsMemberHandler::$_mHandler |
holds reference to membership handler(DAO) class
Definition at line 52 of file member.php.
XoopsMemberHandler::$_uHandler |
holds reference to user handler(DAO) class
Definition at line 47 of file member.php.