Class to represent a platform user.
More...
|
| string null | $ltiResultSourcedId = null |
| | UserResult's result sourcedid.
|
| |
| datetime null | $created = null |
| | Date/time the record was created.
|
| |
| datetime null | $updated = null |
| | Date/time the record was last updated.
|
| |
|
const | PRINCIPAL_ROLES |
| | List of principal roles for LTI 1.3.
|
| |
| string | $firstname = '' |
| | User's first name.
|
| |
| string | $middlename = '' |
| | User's middle name.
|
| |
| string | $lastname = '' |
| | User's last name (surname or family name).
|
| |
| string | $fullname = '' |
| | User's fullname.
|
| |
| string | $sourcedId = null |
| | User's sourcedId.
|
| |
| string | $username = null |
| | User's username.
|
| |
| string | $email = '' |
| | User's email address.
|
| |
| string | $image = '' |
| | User's image URI.
|
| |
| array | $roles = array() |
| | Roles for user.
|
| |
| array | $groups = array() |
| | Groups for user.
|
| |
| string null | $ltiUserId = null |
| | user ID as supplied in the last connection request.
|
| |
Class to represent a platform user.
- Author
- Stephen P Vickers steph.nosp@m.en@s.nosp@m.pvsof.nosp@m.twar.nosp@m.eprod.nosp@m.ucts.nosp@m..com
- Copyright
- SPV Software Products
- Licence: http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3
◆ __construct()
Class constructor.
Reimplemented from User.
◆ delete()
Delete the user from the database.
- Returns
- bool True if the user object was successfully deleted
◆ fromRecordId()
| static UserResult fromRecordId |
( |
|
$id, |
|
|
|
$dataConnector |
|
) |
| |
|
static |
Load the user from the database.
- Parameters
-
| int | $id | Record ID of user |
| DataConnector | $dataConnector | Database connection object |
- Returns
- UserResult UserResult object
◆ fromResourceLink()
| static UserResult fromResourceLink |
( |
|
$resourceLink, |
|
|
|
$ltiUserId |
|
) |
| |
|
static |
Class constructor from resource link.
- Parameters
-
| ResourceLink | $resourceLink | ResourceLink object |
| string | $ltiUserId | UserResult ID value |
- Returns
- UserResult UserResult object
◆ getDataConnector()
| mixed getDataConnector |
( |
| ) |
|
Get the data connector.
- Returns
- mixed Data connector object or string
◆ getId()
| string null getId |
( |
|
$idScope = null, |
|
|
|
$source = null |
|
) |
| |
Get the user ID (which may be a compound of the platform and resource link IDs).
- Parameters
-
| int | $idScope | Scope to use for user ID (optional, default is null for consumer default setting) |
| Context | Platform | null | $source | Context or Platform for user (optional) |
- Returns
- string|null UserResult ID value, or null on error
◆ getRecordId()
◆ getResourceLink()
Get resource link.
- Returns
- ResourceLink Resource link object
◆ initialize()
◆ save()
Save the user to the database.
- Returns
- bool True if the user object was successfully saved
◆ setDataConnector()
| setDataConnector |
( |
|
$dataConnector | ) |
|
Set the data connector.
- Parameters
-
| DataConnector | $dataConnector | Data connector object |
◆ setRecordId()
Set record ID of user.
- Parameters
-
◆ setResourceLink()
| setResourceLink |
( |
|
$resourceLink | ) |
|
Set resource link.
- Parameters
-
| ResourceLink | $resourceLink | Resource link object |
◆ setResourceLinkId()
| setResourceLinkId |
( |
|
$resourceLinkId | ) |
|
Set resource link ID of user.
- Parameters
-
| int | $resourceLinkId | Resource link ID of user |
◆ $created
| datetime null $created = null |
Date/time the record was created.
$created
◆ $ltiResultSourcedId
| string null $ltiResultSourcedId = null |
UserResult's result sourcedid.
$ltiResultSourcedId
◆ $updated
| datetime null $updated = null |
Date/time the record was last updated.
$updated
The documentation for this class was generated from the following file: