XOOPS
2.6.0
|
Public Member Functions | |
__construct (Connection $db=null) | |
activateUser (XoopsUser &$user) | |
addUserToGroup ($group_id, $user_id) | |
createGroup () | |
createUser () | |
deleteGroup (XoopsGroup &$group) | |
deleteUser (XoopsUser &$user) | |
getGroup ($id) | |
getGroupList (CriteriaElement $criteria=null) | |
getGroups (CriteriaElement $criteria=null, $id_as_key=false) | |
getGroupsByUser ($user_id, $asobject=false) | |
getUser ($id) | |
getUserCount (CriteriaElement $criteria=null) | |
getUserCountByGroup ($group_id) | |
getUserCountByGroupLink ($groups, $criteria=null) | |
getUserList (CriteriaElement $criteria=null) | |
getUsers (CriteriaElement $criteria=null, $id_as_key=false) | |
getUsersByGroup ($group_id, $asobject=false, $limit=0, $start=0) | |
getUsersByGroupLink ($groups, CriteriaElement $criteria=null, $asobject=false, $id_as_key=false) | |
insertGroup (XoopsGroup &$group) | |
insertUser (XoopsUser &$user, $force=false) | |
loginUser ($uname, $pwd) | |
loginUserMd5 ($uname, $md5pwd) | |
removeUsersFromGroup ($group_id, $user_ids=array()) | |
updateUserByField (XoopsUser &$user, $fieldName, $fieldValue) | |
updateUsersByField ($fieldName, $fieldValue, CriteriaElement $criteria=null) | |
Private Attributes | |
$_gHandler | |
$_members = array() | |
$_mHandler | |
$_uHandler | |
Definition at line 34 of file member.php.
XoopsMemberHandler::__construct | ( | Connection | $db = null | ) |
#@- Constructor
Connection | null | $db | database connection |
Definition at line 70 of file member.php.
References Xoops\getInstance().
XoopsMemberHandler::activateUser | ( | XoopsUser & | $user | ) |
activate a user
Definition at line 456 of file member.php.
References Xoops\Core\Kernel\XoopsObject\getVar(), and Xoops\Core\Kernel\XoopsObject\setVar().
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 249 of file member.php.
References $user_id.
XoopsMemberHandler::createGroup | ( | ) |
create a new group
Definition at line 82 of file member.php.
XoopsMemberHandler::createUser | ( | ) |
create a new user
Definition at line 93 of file member.php.
XoopsMemberHandler::deleteGroup | ( | XoopsGroup & | $group | ) |
delete a group
XoopsGroup | &$group | reference to the group to delete |
Definition at line 133 of file member.php.
References Xoops\Core\Kernel\XoopsObject\getVar().
XoopsMemberHandler::deleteUser | ( | XoopsUser & | $user | ) |
delete a user
XoopsUser | &$user | reference to the user to delete |
Definition at line 147 of file member.php.
References Xoops\Core\Kernel\XoopsObject\getVar().
XoopsMemberHandler::getGroup | ( | $id | ) |
retrieve a group
int | $id | ID for the group |
Definition at line 106 of file member.php.
References $id.
Referenced by getGroupsByUser().
XoopsMemberHandler::getGroupList | ( | CriteriaElement | $criteria = null | ) |
get a list of groupnames and their IDs
CriteriaElement | null | $criteria | CriteriaElement object |
Definition at line 214 of file member.php.
XoopsMemberHandler::getGroups | ( | CriteriaElement | $criteria = null , |
$id_as_key = false |
|||
) |
retrieve groups from the database
CriteriaElement | null | $criteria | CriteriaElement |
bool | $id_as_key | use the group's ID as key for the array? |
Definition at line 189 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 314 of file member.php.
References $user_id, and getGroup().
XoopsMemberHandler::getUser | ( | $id | ) |
retrieve a user
int | $id | ID for the user |
Definition at line 118 of file member.php.
References $id.
Referenced by getUsersByGroup().
XoopsMemberHandler::getUserCount | ( | CriteriaElement | $criteria = null | ) |
count users matching certain conditions
CriteriaElement | null | $criteria | CriteriaElement object |
Definition at line 400 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 412 of file member.php.
XoopsMemberHandler::getUserCountByGroupLink | ( | $groups, | |
$criteria = null |
|||
) |
Get count of users belonging to certain groups and matching criteria Temporary solution
array | $groups | IDs of groups |
CriteriaElement | null | $criteria | criteria to match |
Definition at line 533 of file member.php.
XoopsMemberHandler::getUserList | ( | CriteriaElement | $criteria = null | ) |
get a list of usernames and their IDs
CriteriaElement | null | $criteria | CriteriaElement object |
Definition at line 231 of file member.php.
XoopsMemberHandler::getUsers | ( | CriteriaElement | $criteria = null , |
$id_as_key = false |
|||
) |
retrieve users from the database
CriteriaElement | null | $criteria | CriteriaElement |
bool | $id_as_key | use the group's ID as key for the array? |
Definition at line 202 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 288 of file member.php.
References $limit, $start, $user, and getUser().
XoopsMemberHandler::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
array | $groups | IDs of groups |
CriteriaElement | $criteria | CriteriaElement object or null |
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 477 of file member.php.
XoopsMemberHandler::insertGroup | ( | XoopsGroup & | $group | ) |
insert a group into the database
XoopsGroup | &$group | reference to the group to insert |
Definition at line 162 of file member.php.
insert a user into the database
XoopsUser | XoopsObject | &$user | reference to the user to insert |
bool | $force | force insert |
Definition at line 176 of file member.php.
Referenced by updateUserByField().
XoopsMemberHandler::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 339 of file member.php.
XoopsMemberHandler::loginUserMd5 | ( | $uname, | |
$md5pwd | |||
) |
logs in a user with an md5 encrypted password
string | $uname | username |
string | $md5pwd | password encrypted with md5 |
Definition at line 381 of file member.php.
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 265 of file member.php.
References $criteria, $criteria2, and $uid.
XoopsMemberHandler::updateUserByField | ( | XoopsUser & | $user, |
$fieldName, | |||
$fieldValue | |||
) |
updates a single field in a users record
XoopsUser | &$user | reference to the XoopsUser object |
string | $fieldName | name of the field to update |
string | $fieldValue | updated value for the field |
Definition at line 426 of file member.php.
References insertUser(), and Xoops\Core\Kernel\XoopsObject\setVar().
XoopsMemberHandler::updateUsersByField | ( | $fieldName, | |
$fieldValue, | |||
CriteriaElement | $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 |
CriteriaElement | $criteria | CriteriaElement object or null |
Definition at line 441 of file member.php.
References $criteria.
|
private |
Definition at line 42 of file member.php.
|
private |
holds temporary user objects
Definition at line 61 of file member.php.
|
private |
Definition at line 56 of file member.php.
|
private |
Definition at line 49 of file member.php.