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_Link
Resource_Link object
string
User ID value
delete() : boolean
boolean
True if the user object was successfully deletedgetContext() : \LTI_Resource_Link
getId(integer $id_scope = NULL
) : string
integer
Scope to use for user ID (optional, default is null for consumer default setting)
string
User ID valuegetResourceLink() : \LTI_Resource_Link
\LTI_Resource_Link
Resource link objectinitialise()
isAdmin() : boolean
boolean
True if the user has a role of administratorisLearner() : boolean
boolean
True if the user has a role of learnerisStaff() : boolean
boolean
True if the user has a role of instructor, contentdeveloper or teachingassistantload() : boolean
boolean
True if the user object was successfully loadedsave() : boolean
boolean
True if the user object was successfully savedsetEmail(string $email, string $defaultEmail = NULL
)
string
Email address value
string
Value to use if no email is provided (optional, default is none)
setNames(string $firstname, string $lastname, string $fullname)
string
User's first name.
string
User's last name.
string
User's full name.
hasRole(string $role) : boolean
string
Name of role
boolean
True 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