LimeSurvey API - Master branch

UserManager
in package

Service class for managing users and their permissions

Table of Contents

Properties

$managingUser  : LSWebUser
$targetUser  : User

Methods

__construct()  : mixed
canAssignPermissions()  : bool
Returns true if the managing user can assign permissions to the target user.
canAssignRole()  : bool
Returns true if the managing user can assign roles to the target user.
canEdit()  : bool
Returns true if the managing user can edit the attribute of the target user Return true if target is same then managing (user can always update himself)
deleteUser()  : OperationResult
Deletes the user with the given id.

Properties

Methods

__construct()

public __construct([LSWebUser|null $managingUser = null ][, User|null $targetUser = null ]) : mixed
Parameters
$managingUser : LSWebUser|null = null
$targetUser : User|null = null

canAssignPermissions()

Returns true if the managing user can assign permissions to the target user.

public canAssignPermissions() : bool
Return values
bool

canAssignRole()

Returns true if the managing user can assign roles to the target user.

public canAssignRole() : bool
Return values
bool

canEdit()

Returns true if the managing user can edit the attribute of the target user Return true if target is same then managing (user can always update himself)

public canEdit() : bool
Return values
bool

        
On this page

Search results