ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
Class to represent a platform user. More...
Public Member Functions | |
__construct () | |
Class constructor. More... | |
initialize () | |
Initialise the user. More... | |
initialise () | |
Initialise the user. More... | |
setNames (string $firstname, string $lastname, string $fullname) | |
Set the user's name. More... | |
setEmail (string $email, string $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 | |
string | $firstname = '' |
User's first name. More... | |
string | $lastname = '' |
User's last name (surname or family name). More... | |
string | $fullname = '' |
User's fullname. More... | |
string | $sourcedId = null |
User's sourcedId. More... | |
string | $username = null |
User's username. More... | |
string | $email = '' |
User's email address. More... | |
string | $image = '' |
User's image URI. More... | |
array | $roles = array() |
Roles for user. More... | |
array | $groups = array() |
Groups for user. More... | |
string | $ltiUserId = null |
user ID as supplied in the last connection request. More... | |
Static Public Attributes | |
static bool | $allowEmptyName = false |
Allow user name field to be empty? More... | |
Private Member Functions | |
hasRole (string $role) | |
Check whether the user has a specified role name. More... | |
Class to represent a platform user.
ILIAS\LTI\ToolProvider\User::__construct | ( | ) |
Class constructor.
Definition at line 112 of file User.php.
References ILIAS\LTI\ToolProvider\User\initialize().
|
private |
Check whether the user has a specified role name.
string | $role | Name of role |
Definition at line 244 of file User.php.
Referenced by ILIAS\LTI\ToolProvider\User\isAdmin(), ILIAS\LTI\ToolProvider\User\isLearner(), and ILIAS\LTI\ToolProvider\User\isStaff().
ILIAS\LTI\ToolProvider\User::initialise | ( | ) |
Initialise the user.
Synonym for initialize().
Definition at line 138 of file User.php.
References ILIAS\LTI\ToolProvider\User\initialize().
ILIAS\LTI\ToolProvider\User::initialize | ( | ) |
Initialise the user.
Definition at line 120 of file User.php.
Referenced by ILIAS\LTI\ToolProvider\User\__construct(), and ILIAS\LTI\ToolProvider\User\initialise().
ILIAS\LTI\ToolProvider\User::isAdmin | ( | ) |
Check if the user is an administrator (at any of the system, institution or context levels).
Definition at line 209 of file User.php.
References ILIAS\LTI\ToolProvider\User\hasRole().
ILIAS\LTI\ToolProvider\User::isLearner | ( | ) |
Check if the user is a learner.
Definition at line 230 of file User.php.
References ILIAS\LTI\ToolProvider\User\hasRole().
ILIAS\LTI\ToolProvider\User::isStaff | ( | ) |
Check if the user is staff.
Definition at line 220 of file User.php.
References ILIAS\LTI\ToolProvider\User\hasRole().
ILIAS\LTI\ToolProvider\User::setEmail | ( | string | $email, |
string | $defaultEmail = null |
||
) |
Set the user's email address.
string | Email address value | |
string | null | $defaultEmail | Value to use if no email is provided (optional, default is none) |
Definition at line 186 of file User.php.
References ILIAS\LTI\ToolProvider\User\$email.
ILIAS\LTI\ToolProvider\User::setNames | ( | string | $firstname, |
string | $lastname, | ||
string | $fullname | ||
) |
Set the user's name.
string | $firstname | User's first name. |
string | $lastname | User's last name. |
string | $fullname | User's full name. |
Definition at line 149 of file User.php.
References ILIAS\LTI\ToolProvider\User\$firstname, ILIAS\LTI\ToolProvider\User\$lastname, and ILIAS\LTI\ToolProvider\User\$ltiUserId.
|
static |
string ILIAS\LTI\ToolProvider\User::$email = '' |
User's email address.
Definition at line 79 of file User.php.
Referenced by ILIAS\LTI\ToolProvider\User\setEmail().
string ILIAS\LTI\ToolProvider\User::$firstname = '' |
User's first name.
Definition at line 37 of file User.php.
Referenced by ILIAS\LTI\ToolProvider\User\setNames().
string ILIAS\LTI\ToolProvider\User::$fullname = '' |
array ILIAS\LTI\ToolProvider\User::$groups = array() |
string ILIAS\LTI\ToolProvider\User::$image = '' |
string ILIAS\LTI\ToolProvider\User::$lastname = '' |
User's last name (surname or family name).
Definition at line 44 of file User.php.
Referenced by ILIAS\LTI\ToolProvider\User\setNames().
string null ILIAS\LTI\ToolProvider\User::$ltiUserId = null |
user ID as supplied in the last connection request.
Definition at line 107 of file User.php.
Referenced by ILIAS\LTI\ToolProvider\UserResult\fromResourceLink(), ILIAS\LTI\ToolProvider\UserResult\getId(), and ILIAS\LTI\ToolProvider\User\setNames().
array ILIAS\LTI\ToolProvider\User::$roles = array() |
string ILIAS\LTI\ToolProvider\User::$sourcedId = null |
string ILIAS\LTI\ToolProvider\User::$username = null |