![]() |
LTI Integration Library
3.1.0
PHP class library for building LTI integrations
|
Class to represent a tool consumer user. More...
Public Member Functions | |
| __construct () | |
| Class constructor. More... | |
| initialize () | |
| Initialise the user. More... | |
| initialise () | |
| Initialise the user. More... | |
| setNames ($firstname, $lastname, $fullname) | |
| Set the user's name. More... | |
| setEmail ($email, $defaultEmail=null) | |
| Set the user's email address. More... | |
| isAdmin () | |
| Check if the user is an administrator (at any of the system, institution or context levels). More... | |
| isStaff () | |
| Check if the user is staff. More... | |
| isLearner () | |
| Check if the user is a learner. More... | |
Data Fields | |
| $firstname = '' | |
| UserResult's first name. More... | |
| $lastname = '' | |
| UserResult's last name (surname or family name). More... | |
| $fullname = '' | |
| UserResult's fullname. More... | |
| $email = '' | |
| UserResult's email address. More... | |
| $image = '' | |
| UserResult's image URI. More... | |
| $roles = array() | |
| Roles for user. More... | |
| $groups = array() | |
| Groups for user. More... | |
| $ltiUserId = null | |
| user ID as supplied in the last connection request. More... | |
Static Public Attributes | |
| static | $allowEmptyName = false |
| Allow user name field to be empty? More... | |
Class to represent a tool consumer user.
| __construct | ( | ) |
| initialise | ( | ) |
Initialise the user.
Pseudonym for initialize().
Definition at line 106 of file User.php.
References User\initialize().
| initialize | ( | ) |
Initialise the user.
Definition at line 90 of file User.php.
Referenced by User\__construct(), and User\initialise().
| isAdmin | ( | ) |
| isLearner | ( | ) |
| isStaff | ( | ) |
| setEmail | ( | $email, | |
$defaultEmail = null |
|||
| ) |
Set the user's email address.
| string | Email address value | |
| string | $defaultEmail | Value to use if no email is provided (optional, default is none) |
Definition at line 156 of file User.php.
References User\$email.
| setNames | ( | $firstname, | |
| $lastname, | |||
| $fullname | |||
| ) |
Set the user's name.
| string | $firstname | UserResult's first name. |
| string | $lastname | UserResult's last name. |
| string | $fullname | UserResult's full name. |
Definition at line 118 of file User.php.
References User\$firstname, User\$fullname, User\$lastname, and User\$ltiUserId.
|
static |
| string $email = '' |
| string $firstname = '' |
| string $fullname = '' |
| string $image = '' |
UserResult's image URI.
| string $lastname = '' |
UserResult's last name (surname or family name).
Definition at line 28 of file User.php.
Referenced by User\setNames().
| string null $ltiUserId = null |
user ID as supplied in the last connection request.
Definition at line 77 of file User.php.
Referenced by UserResult\fromResourceLink(), UserResult\getId(), and User\setNames().