Class to represent a tool consumer user
| author | Stephen P Vickers |
|---|---|
| version | 2.5.00 |
| license | GNU Lesser General Public License, version 3 |
| package | LTI |
__construct(\LTI_Resource_Link $resource_link, string $id)
\LTI_Resource_LinkResource_Link object
stringUser ID value
delete() : boolean
booleanTrue if the user object was successfully deletedgetContext() : \LTI_Resource_Link
getId(integer $id_scope = NULL) : string
integerScope to use for user ID (optional, default is null for consumer default setting)
stringUser ID valuegetResourceLink() : \LTI_Resource_Link
\LTI_Resource_LinkResource link objectinitialise()
isAdmin() : boolean
booleanTrue if the user has a role of administratorisLearner() : boolean
booleanTrue if the user has a role of learnerisStaff() : boolean
booleanTrue if the user has a role of instructor, contentdeveloper or teachingassistantload() : boolean
booleanTrue if the user object was successfully loadedsave() : boolean
booleanTrue if the user object was successfully savedsetEmail(string $email, string $defaultEmail = NULL)
stringEmail address value
stringValue to use if no email is provided (optional, default is none)
setNames(string $firstname, string $lastname, string $fullname)
stringUser's first name.
stringUser's last name.
stringUser's full name.
hasRole(string $role) : boolean
stringName of role
booleanTrue if the user has the specified role$created : object
NULL$email : string
''$firstname : string
''$fullname : string
''$groups : array
array()$lastname : string
''$lti_result_sourcedid : string
NULL$roles : array
array()$updated : object
NULL$context : \LTI_Context
NULL$id : string
NULL$resource_link : \LTI_Resource_Link
NULL