static
void
&get_instance
()
UserOperations
__construct
()
Show the number of pages the given user's id owns.
mixed
CountPageOwnershipByID
(mixed $id)
-
mixed
$id: Id of the user to count
Deletes an existing user from the database.
mixed
DeleteUserByID
(mixed $id)
-
mixed
$id: Id of the user to delete
void
GenerateDropdown
([ $currentuserid = ''], [ $name = 'ownerid'])
Saves a new user to the database.
mixed
InsertUser
( $user, mixed $usre)
-
mixed
$usre: User object to save
-
$user
Loads a user by user id.
mixed
&LoadUserByID
(mixed $id)
-
mixed
$id: User id to load
Loads a user by username.
mixed
&LoadUserByUsername
(mixed $username, [mixed $password = ''], [mixed $activeonly = true], [mixed $adminaccessonly = false])
-
mixed
$username: Username to load
-
mixed
$password: Password to check against
-
mixed
$activeonly: Only load the user if they are active
-
mixed
$adminaccessonly: Only load the user if they have admin access
Gets a list of all users
array
&LoadUsers
()
Gets a list of all users in a given group
array
&LoadUsersInGroup
(mixed $groupid)
-
mixed
$groupid: Group for the loaded users
Updates an existing user in the database.
mixed
UpdateUser
(mixed $user)
-
mixed
$user: User object to save
Tests $uid is a member of the group identified by $gid
true
UserInGroup
(int $uid, int $gid)
-
int
$uid: User ID to test
-
int
$gid: Group ID to test