ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class to represent a tool consumer resource link. More...
Public Member Functions | |
__construct () | |
Class constructor. More... | |
initialize () | |
Initialise the resource link. More... | |
initialise () | |
Initialise the resource link. More... | |
save () | |
Save the resource link to the database. More... | |
delete () | |
Delete the resource link from the database. More... | |
getConsumer () | |
Get tool consumer. More... | |
setConsumerId ($consumerId) | |
Set tool consumer ID. More... | |
getContext () | |
Get context. More... | |
getContextId () | |
Get context record ID. More... | |
setContextId ($contextId) | |
Set context ID. More... | |
getKey () | |
Get tool consumer key. More... | |
getId () | |
Get resource link ID. More... | |
getRecordId () | |
Get resource link record ID. More... | |
setRecordId ($id) | |
Set resource link record ID. More... | |
getDataConnector () | |
Get the data connector. More... | |
getSetting ($name, $default='') | |
Get a setting value. More... | |
setSetting ($name, $value=null) | |
Set a setting value. More... | |
getSettings () | |
Get an array of all setting values. More... | |
setSettings ($settings) | |
Set an array of all setting values. More... | |
saveSettings () | |
Save setting values. More... | |
hasOutcomesService () | |
Check if the Outcomes service is supported. More... | |
hasMembershipsService () | |
Check if the Memberships extension service is supported. More... | |
hasSettingService () | |
Check if the Setting extension service is supported. More... | |
doOutcomesService ($action, $ltiOutcome, $user) | |
Perform an Outcomes service request. More... | |
doMembershipsService ($withGroups=false) | |
Perform a Memberships service request. More... | |
doSettingService ($action, $value=null) | |
Perform a Setting service request. More... | |
hasToolSettingsService () | |
Check if the Tool Settings service is supported. More... | |
getToolSettings ($mode=Service\ToolSettings::MODE_CURRENT_LEVEL, $simple=true) | |
Get Tool Settings. More... | |
setToolSettings ($settings=array()) | |
Perform a Tool Settings service request. More... | |
hasMembershipService () | |
Check if the Membership service is supported. More... | |
getMembership () | |
Get Memberships. More... | |
getUserResultSourcedIDs ($localOnly=false, $idScope=null) | |
Obtain an array of User objects for users with a result sourcedId. More... | |
getShares () | |
Get an array of ResourceLinkShare objects for each resource link which is sharing this context. More... | |
Static Public Member Functions | |
static | fromConsumer ($consumer, $ltiResourceLinkId, $tempId=null) |
Class constructor from consumer. More... | |
static | fromContext ($context, $ltiResourceLinkId, $tempId=null) |
Class constructor from context. More... | |
static | fromRecordId ($id, $dataConnector) |
Load the resource link from the database. More... | |
Data Fields | |
const | EXT_READ = 1 |
Read action. More... | |
const | EXT_WRITE = 2 |
Write (create/update) action. More... | |
const | EXT_DELETE = 3 |
Delete action. More... | |
const | EXT_CREATE = 4 |
Create action. More... | |
const | EXT_UPDATE = 5 |
Update action. More... | |
const | EXT_TYPE_DECIMAL = 'decimal' |
Decimal outcome type. More... | |
const | EXT_TYPE_PERCENTAGE = 'percentage' |
Percentage outcome type. More... | |
const | EXT_TYPE_RATIO = 'ratio' |
Ratio outcome type. More... | |
const | EXT_TYPE_LETTER_AF = 'letteraf' |
Letter (A-F) outcome type. More... | |
const | EXT_TYPE_LETTER_AF_PLUS = 'letterafplus' |
Letter (A-F) with optional +/- outcome type. More... | |
const | EXT_TYPE_PASS_FAIL = 'passfail' |
Pass/fail outcome type. More... | |
const | EXT_TYPE_TEXT = 'freetext' |
Free text outcome type. More... | |
$title = null | |
Context title. More... | |
$ltiResourceLinkId = null | |
Resource link ID as supplied in the last connection request. More... | |
$groupSets = null | |
User group sets (null if the consumer does not support the groups enhancement) More... | |
$groups = null | |
User groups (null if the consumer does not support the groups enhancement) More... | |
$extRequest = null | |
Request for last service request. More... | |
$extRequestHeaders = null | |
Request headers for last service request. More... | |
$extResponse = null | |
Response from last service request. More... | |
$extResponseHeaders = null | |
Response header from last service request. More... | |
$primaryResourceLinkId = null | |
Consumer key value for resource link being shared (if any). More... | |
$shareApproved = null | |
Whether the sharing request has been approved by the primary resource link. More... | |
$created = null | |
Date/time when the object was created. More... | |
$updated = null | |
Date/time when the object was last updated. More... | |
Private Member Functions | |
load ($id=null) | |
Load the resource link from the database. More... | |
checkValueType ($ltiOutcome, $supportedTypes=null) | |
Convert data type of value to a supported type if possible. More... | |
doService ($type, $url, $params) | |
Send a service request to the tool consumer. More... | |
doLTI11Service ($type, $url, $xml) | |
Send a service request to the tool consumer. More... | |
domnodeToArray ($node) | |
Convert DOM nodes to array. More... | |
Private Attributes | |
$id = null | |
Record ID for this resource link. More... | |
$consumer = null | |
Tool Consumer for this resource link. More... | |
$consumerId = null | |
Tool Consumer ID for this resource link. More... | |
$context = null | |
Context for this resource link. More... | |
$contextId = null | |
Context ID for this resource link. More... | |
$settings = null | |
Setting values (LTI parameters, custom parameters and local parameters). More... | |
$settingsChanged = false | |
Whether the settings value have changed since last saved. More... | |
$extDoc = null | |
XML document for the last extension service request. More... | |
$extNodes = null | |
XML node array for the last extension service request. More... | |
$dataConnector = null | |
Data connector object or string. More... | |
Class to represent a tool consumer resource link.
Definition at line 21 of file ResourceLink.php.
IMSGlobal\LTI\ToolProvider\ResourceLink::__construct | ( | ) |
Class constructor.
Definition at line 211 of file ResourceLink.php.
References IMSGlobal\LTI\ToolProvider\ResourceLink\initialize().
|
private |
Convert data type of value to a supported type if possible.
Outcome | $ltiOutcome | Outcome object |
string[] | $supportedTypes Array of outcome types to be supported (optional, default is null to use supported types reported in the last launch for this resource link) |
Definition at line 1068 of file ResourceLink.php.
References $ok, $type, and IMSGlobal\LTI\ToolProvider\ResourceLink\getSetting().
Referenced by IMSGlobal\LTI\ToolProvider\ResourceLink\doOutcomesService().
IMSGlobal\LTI\ToolProvider\ResourceLink::delete | ( | ) |
Delete the resource link from the database.
Definition at line 269 of file ResourceLink.php.
References IMSGlobal\LTI\ToolProvider\ResourceLink\getDataConnector().
|
private |
Send a service request to the tool consumer.
string | $type | Message type value |
string | $url | URL to send request to |
string | $xml | XML of message request |
Definition at line 1190 of file ResourceLink.php.
References IMSGlobal\LTI\ToolProvider\ResourceLink\$consumer, $header, $http, IMSGlobal\LTI\ToolProvider\ResourceLink\$id, $ok, $params, $req, $type, $url, $xml, array, IMSGlobal\LTI\ToolProvider\ResourceLink\domnodeToArray(), EOD, IMSGlobal\LTI\OAuth\OAuthRequest\from_consumer_and_token(), IMSGlobal\LTI\ToolProvider\ResourceLink\getConsumer(), and IMSGlobal\LTI\ToolProvider\ResourceLink\getKey().
Referenced by IMSGlobal\LTI\ToolProvider\ResourceLink\doOutcomesService().
IMSGlobal\LTI\ToolProvider\ResourceLink::doMembershipsService | ( | $withGroups = false | ) |
Perform a Memberships service request.
The user table is updated with the new list of user objects.
boolean | $withGroups | True is group information is to be requested as well |
Set the user roles
Definition at line 679 of file ResourceLink.php.
References $email, IMSGlobal\LTI\ToolProvider\ResourceLink\$groups, $i, IMSGlobal\LTI\ToolProvider\ResourceLink\$id, $ok, $params, $url, $users, array, IMSGlobal\LTI\ToolProvider\ResourceLink\doService(), IMSGlobal\LTI\ToolProvider\User\fromResourceLink(), IMSGlobal\LTI\ToolProvider\ResourceLink\getConsumer(), IMSGlobal\LTI\ToolProvider\ResourceLink\getSetting(), IMSGlobal\LTI\ToolProvider\ResourceLink\getUserResultSourcedIDs(), IMSGlobal\LTI\ToolProvider\ToolProvider\ID_SCOPE_RESOURCE, and IMSGlobal\LTI\ToolProvider\ToolProvider\parseRoles().
|
private |
Convert DOM nodes to array.
DOMElement | $node | XML element |
Definition at line 1260 of file ResourceLink.php.
References $i, $output, $s, $t, array, and string.
Referenced by IMSGlobal\LTI\ToolProvider\ResourceLink\doLTI11Service(), and IMSGlobal\LTI\ToolProvider\ResourceLink\doService().
IMSGlobal\LTI\ToolProvider\ResourceLink::doOutcomesService | ( | $action, | |
$ltiOutcome, | |||
$user | |||
) |
Perform an Outcomes service request.
Definition at line 547 of file ResourceLink.php.
References $action, $params, $response, $xml, array, IMSGlobal\LTI\ToolProvider\ResourceLink\checkValueType(), IMSGlobal\LTI\ToolProvider\ResourceLink\doLTI11Service(), IMSGlobal\LTI\ToolProvider\ResourceLink\doService(), and EOF.
|
private |
Send a service request to the tool consumer.
string | $type | Message type value |
string | $url | URL to send request to |
array | $params | Associative array of parameter values to be passed |
Definition at line 1147 of file ResourceLink.php.
References $http, $ok, $params, $type, $url, IMSGlobal\LTI\ToolProvider\ResourceLink\domnodeToArray(), and IMSGlobal\LTI\ToolProvider\ResourceLink\getConsumer().
Referenced by IMSGlobal\LTI\ToolProvider\ResourceLink\doMembershipsService(), IMSGlobal\LTI\ToolProvider\ResourceLink\doOutcomesService(), and IMSGlobal\LTI\ToolProvider\ResourceLink\doSettingService().
IMSGlobal\LTI\ToolProvider\ResourceLink::doSettingService | ( | $action, | |
$value = null |
|||
) |
Perform a Setting service request.
int | $action | The action type constant |
string | $value | The setting value (optional, default is null) |
Definition at line 793 of file ResourceLink.php.
References $action, $params, $response, $url, array, IMSGlobal\LTI\ToolProvider\ResourceLink\doService(), IMSGlobal\LTI\ToolProvider\ResourceLink\getSetting(), IMSGlobal\LTI\ToolProvider\ResourceLink\saveSettings(), and IMSGlobal\LTI\ToolProvider\ResourceLink\setSetting().
|
static |
Class constructor from consumer.
ToolConsumer | $consumer | Consumer object |
string | $ltiResourceLinkId | Resource link ID value |
string | $tempId | Temporary Resource link ID value (optional, default is null) |
Definition at line 972 of file ResourceLink.php.
References IMSGlobal\LTI\ToolProvider\ResourceLink\$consumer, and IMSGlobal\LTI\ToolProvider\ResourceLink\$ltiResourceLinkId.
Referenced by IMSGlobal\LTI\ToolProvider\ToolProvider\authenticate(), and IMSGlobal\LTI\ToolProvider\ToolProvider\checkForShare().
|
static |
Class constructor from context.
Context | $context | Context object |
string | $ltiResourceLinkId | Resource link ID value |
string | $tempId | Temporary Resource link ID value (optional, default is null) |
Definition at line 1000 of file ResourceLink.php.
References IMSGlobal\LTI\ToolProvider\ResourceLink\$context, and IMSGlobal\LTI\ToolProvider\ResourceLink\$ltiResourceLinkId.
|
static |
Load the resource link from the database.
int | $id | Record ID of resource link |
DataConnector | $dataConnector | Database connection object |
Definition at line 1029 of file ResourceLink.php.
References IMSGlobal\LTI\ToolProvider\ResourceLink\$dataConnector, and IMSGlobal\LTI\ToolProvider\ResourceLink\$id.
Referenced by IMSGlobal\LTI\ToolProvider\User\getResourceLink(), and ilLTIAppEventListener\tryOutcomeService().
IMSGlobal\LTI\ToolProvider\ResourceLink::getConsumer | ( | ) |
Get tool consumer.
Definition at line 281 of file ResourceLink.php.
References IMSGlobal\LTI\ToolProvider\ResourceLink\$consumer, IMSGlobal\LTI\ToolProvider\ToolConsumer\fromRecordId(), IMSGlobal\LTI\ToolProvider\ResourceLink\getContext(), and IMSGlobal\LTI\ToolProvider\ResourceLink\getDataConnector().
Referenced by IMSGlobal\LTI\ToolProvider\ResourceLink\doLTI11Service(), IMSGlobal\LTI\ToolProvider\ResourceLink\doMembershipsService(), IMSGlobal\LTI\ToolProvider\ResourceLink\doService(), and IMSGlobal\LTI\ToolProvider\ResourceLink\getKey().
IMSGlobal\LTI\ToolProvider\ResourceLink::getContext | ( | ) |
Get context.
Definition at line 316 of file ResourceLink.php.
References IMSGlobal\LTI\ToolProvider\ResourceLink\$context, IMSGlobal\LTI\ToolProvider\Context\fromRecordId(), and IMSGlobal\LTI\ToolProvider\ResourceLink\getDataConnector().
Referenced by IMSGlobal\LTI\ToolProvider\ResourceLink\getConsumer(), IMSGlobal\LTI\ToolProvider\ResourceLink\getMembership(), and IMSGlobal\LTI\ToolProvider\ResourceLink\hasMembershipService().
IMSGlobal\LTI\ToolProvider\ResourceLink::getContextId | ( | ) |
Get context record ID.
Definition at line 332 of file ResourceLink.php.
References IMSGlobal\LTI\ToolProvider\ResourceLink\$contextId.
IMSGlobal\LTI\ToolProvider\ResourceLink::getDataConnector | ( | ) |
Get the data connector.
Definition at line 405 of file ResourceLink.php.
References IMSGlobal\LTI\ToolProvider\ResourceLink\$dataConnector.
Referenced by IMSGlobal\LTI\ToolProvider\ResourceLink\delete(), IMSGlobal\LTI\ToolProvider\ResourceLink\getConsumer(), IMSGlobal\LTI\ToolProvider\ResourceLink\getContext(), IMSGlobal\LTI\ToolProvider\ResourceLink\getShares(), IMSGlobal\LTI\ToolProvider\ResourceLink\getUserResultSourcedIDs(), IMSGlobal\LTI\ToolProvider\ResourceLink\load(), and IMSGlobal\LTI\ToolProvider\ResourceLink\save().
IMSGlobal\LTI\ToolProvider\ResourceLink::getId | ( | ) |
Get resource link ID.
Definition at line 369 of file ResourceLink.php.
References IMSGlobal\LTI\ToolProvider\ResourceLink\$ltiResourceLinkId.
IMSGlobal\LTI\ToolProvider\ResourceLink::getKey | ( | ) |
Get tool consumer key.
Definition at line 357 of file ResourceLink.php.
References IMSGlobal\LTI\ToolProvider\ResourceLink\getConsumer().
Referenced by IMSGlobal\LTI\ToolProvider\ResourceLink\doLTI11Service().
IMSGlobal\LTI\ToolProvider\ResourceLink::getMembership | ( | ) |
Get Memberships.
Definition at line 918 of file ResourceLink.php.
References $response, $service, $url, and IMSGlobal\LTI\ToolProvider\ResourceLink\getContext().
IMSGlobal\LTI\ToolProvider\ResourceLink::getRecordId | ( | ) |
Get resource link record ID.
Definition at line 381 of file ResourceLink.php.
References IMSGlobal\LTI\ToolProvider\ResourceLink\$id.
IMSGlobal\LTI\ToolProvider\ResourceLink::getSetting | ( | $name, | |
$default = '' |
|||
) |
Get a setting value.
string | $name | Name of setting |
string | $default | Value to return if the setting does not exist (optional, default is an empty string) |
Definition at line 420 of file ResourceLink.php.
References $name, and settings().
Referenced by IMSGlobal\LTI\ToolProvider\ResourceLink\checkValueType(), IMSGlobal\LTI\ToolProvider\ResourceLink\doMembershipsService(), IMSGlobal\LTI\ToolProvider\ResourceLink\doSettingService(), IMSGlobal\LTI\ToolProvider\ResourceLink\getToolSettings(), IMSGlobal\LTI\ToolProvider\ResourceLink\hasMembershipService(), IMSGlobal\LTI\ToolProvider\ResourceLink\hasMembershipsService(), IMSGlobal\LTI\ToolProvider\ResourceLink\hasOutcomesService(), IMSGlobal\LTI\ToolProvider\ResourceLink\hasSettingService(), IMSGlobal\LTI\ToolProvider\ResourceLink\hasToolSettingsService(), IMSGlobal\LTI\ToolProvider\ResourceLink\setSetting(), and IMSGlobal\LTI\ToolProvider\ResourceLink\setToolSettings().
IMSGlobal\LTI\ToolProvider\ResourceLink::getSettings | ( | ) |
Get an array of all setting values.
Definition at line 459 of file ResourceLink.php.
References IMSGlobal\LTI\ToolProvider\ResourceLink\$settings.
IMSGlobal\LTI\ToolProvider\ResourceLink::getShares | ( | ) |
Get an array of ResourceLinkShare objects for each resource link which is sharing this context.
Definition at line 957 of file ResourceLink.php.
References IMSGlobal\LTI\ToolProvider\ResourceLink\getDataConnector().
IMSGlobal\LTI\ToolProvider\ResourceLink::getToolSettings | ( | $mode = Service\ToolSettings::MODE_CURRENT_LEVEL , |
|
$simple = true |
|||
) |
Get Tool Settings.
int | $mode | Mode for request (optional, default is current level only) |
boolean | $simple | True if all the simple media type is to be used (optional, default is true) |
Definition at line 867 of file ResourceLink.php.
References $response, $service, $url, and IMSGlobal\LTI\ToolProvider\ResourceLink\getSetting().
IMSGlobal\LTI\ToolProvider\ResourceLink::getUserResultSourcedIDs | ( | $localOnly = false , |
|
$idScope = null |
|||
) |
Obtain an array of User objects for users with a result sourcedId.
The array may include users from other resource links which are sharing this resource link. It may also be optionally indexed by the user ID of a specified scope.
boolean | $localOnly | True if only users from this resource link are to be returned, not users from shared resource links (optional, default is false) |
int | $idScope | Scope to use for ID values (optional, default is null for consumer default) |
Definition at line 945 of file ResourceLink.php.
References IMSGlobal\LTI\ToolProvider\ResourceLink\getDataConnector().
Referenced by IMSGlobal\LTI\ToolProvider\ResourceLink\doMembershipsService().
IMSGlobal\LTI\ToolProvider\ResourceLink::hasMembershipService | ( | ) |
Check if the Membership service is supported.
Definition at line 901 of file ResourceLink.php.
References IMSGlobal\LTI\ToolProvider\ResourceLink\getContext(), and IMSGlobal\LTI\ToolProvider\ResourceLink\getSetting().
IMSGlobal\LTI\ToolProvider\ResourceLink::hasMembershipsService | ( | ) |
Check if the Memberships extension service is supported.
Definition at line 515 of file ResourceLink.php.
References $url, and IMSGlobal\LTI\ToolProvider\ResourceLink\getSetting().
IMSGlobal\LTI\ToolProvider\ResourceLink::hasOutcomesService | ( | ) |
Check if the Outcomes service is supported.
Definition at line 501 of file ResourceLink.php.
References $url, and IMSGlobal\LTI\ToolProvider\ResourceLink\getSetting().
IMSGlobal\LTI\ToolProvider\ResourceLink::hasSettingService | ( | ) |
Check if the Setting extension service is supported.
Definition at line 529 of file ResourceLink.php.
References $url, and IMSGlobal\LTI\ToolProvider\ResourceLink\getSetting().
IMSGlobal\LTI\ToolProvider\ResourceLink::hasToolSettingsService | ( | ) |
Check if the Tool Settings service is supported.
Definition at line 850 of file ResourceLink.php.
References $url, and IMSGlobal\LTI\ToolProvider\ResourceLink\getSetting().
IMSGlobal\LTI\ToolProvider\ResourceLink::initialise | ( | ) |
Initialise the resource link.
Pseudonym for initialize().
Definition at line 240 of file ResourceLink.php.
References IMSGlobal\LTI\ToolProvider\ResourceLink\initialize().
IMSGlobal\LTI\ToolProvider\ResourceLink::initialize | ( | ) |
Initialise the resource link.
Definition at line 221 of file ResourceLink.php.
References array, and settings().
Referenced by IMSGlobal\LTI\ToolProvider\ResourceLink\__construct(), IMSGlobal\LTI\ToolProvider\ResourceLink\initialise(), and IMSGlobal\LTI\ToolProvider\ResourceLink\load().
|
private |
Load the resource link from the database.
int | $id | Record ID of resource link (optional, default is null) |
Definition at line 1050 of file ResourceLink.php.
References IMSGlobal\LTI\ToolProvider\ResourceLink\$id, IMSGlobal\LTI\ToolProvider\ResourceLink\getDataConnector(), and IMSGlobal\LTI\ToolProvider\ResourceLink\initialize().
IMSGlobal\LTI\ToolProvider\ResourceLink::save | ( | ) |
Save the resource link to the database.
Definition at line 252 of file ResourceLink.php.
References $ok, and IMSGlobal\LTI\ToolProvider\ResourceLink\getDataConnector().
Referenced by IMSGlobal\LTI\ToolProvider\ResourceLink\saveSettings().
IMSGlobal\LTI\ToolProvider\ResourceLink::saveSettings | ( | ) |
Save setting values.
Definition at line 483 of file ResourceLink.php.
References $ok, and IMSGlobal\LTI\ToolProvider\ResourceLink\save().
Referenced by IMSGlobal\LTI\ToolProvider\ResourceLink\doSettingService().
IMSGlobal\LTI\ToolProvider\ResourceLink::setConsumerId | ( | $consumerId | ) |
Set tool consumer ID.
int | $consumerId | Tool Consumer ID for this resource link. |
Definition at line 303 of file ResourceLink.php.
References IMSGlobal\LTI\ToolProvider\ResourceLink\$consumerId.
IMSGlobal\LTI\ToolProvider\ResourceLink::setContextId | ( | $contextId | ) |
Set context ID.
int | $contextId | Context ID for this resource link. |
Definition at line 344 of file ResourceLink.php.
References IMSGlobal\LTI\ToolProvider\ResourceLink\$contextId.
IMSGlobal\LTI\ToolProvider\ResourceLink::setRecordId | ( | $id | ) |
Set resource link record ID.
int | $id | Record ID for this resource link. |
Definition at line 393 of file ResourceLink.php.
References IMSGlobal\LTI\ToolProvider\ResourceLink\$id.
IMSGlobal\LTI\ToolProvider\ResourceLink::setSetting | ( | $name, | |
$value = null |
|||
) |
Set a setting value.
string | $name | Name of setting |
string | $value | Value to set, use an empty value to delete a setting (optional, default is null) |
Definition at line 439 of file ResourceLink.php.
References $name, IMSGlobal\LTI\ToolProvider\ResourceLink\getSetting(), and settings().
Referenced by IMSGlobal\LTI\ToolProvider\ResourceLink\doSettingService().
IMSGlobal\LTI\ToolProvider\ResourceLink::setSettings | ( | $settings | ) |
Set an array of all setting values.
array | $settings | Associative array of setting values |
Definition at line 471 of file ResourceLink.php.
References IMSGlobal\LTI\ToolProvider\ResourceLink\$settings, and settings().
IMSGlobal\LTI\ToolProvider\ResourceLink::setToolSettings | ( | $settings = array() | ) |
Perform a Tool Settings service request.
array | $settings | An associative array of settings (optional, default is none) |
Definition at line 885 of file ResourceLink.php.
References $response, $service, IMSGlobal\LTI\ToolProvider\ResourceLink\$settings, $url, and IMSGlobal\LTI\ToolProvider\ResourceLink\getSetting().
|
private |
Tool Consumer for this resource link.
Definition at line 158 of file ResourceLink.php.
Referenced by IMSGlobal\LTI\ToolProvider\ResourceLink\doLTI11Service(), IMSGlobal\LTI\ToolProvider\ResourceLink\fromConsumer(), and IMSGlobal\LTI\ToolProvider\ResourceLink\getConsumer().
|
private |
Tool Consumer ID for this resource link.
Definition at line 164 of file ResourceLink.php.
Referenced by IMSGlobal\LTI\ToolProvider\ResourceLink\setConsumerId().
|
private |
Context for this resource link.
Definition at line 170 of file ResourceLink.php.
Referenced by IMSGlobal\LTI\ToolProvider\ResourceLink\fromContext(), and IMSGlobal\LTI\ToolProvider\ResourceLink\getContext().
|
private |
Context ID for this resource link.
Definition at line 176 of file ResourceLink.php.
Referenced by IMSGlobal\LTI\ToolProvider\ResourceLink\getContextId(), and IMSGlobal\LTI\ToolProvider\ResourceLink\setContextId().
int IMSGlobal\LTI\ToolProvider\ResourceLink::$created = null |
Date/time when the object was created.
Definition at line 139 of file ResourceLink.php.
|
private |
Data connector object or string.
Definition at line 206 of file ResourceLink.php.
Referenced by IMSGlobal\LTI\ToolProvider\ResourceLink\fromRecordId(), and IMSGlobal\LTI\ToolProvider\ResourceLink\getDataConnector().
|
private |
XML document for the last extension service request.
Definition at line 194 of file ResourceLink.php.
|
private |
XML node array for the last extension service request.
Definition at line 200 of file ResourceLink.php.
string IMSGlobal\LTI\ToolProvider\ResourceLink::$extRequest = null |
Request for last service request.
Definition at line 103 of file ResourceLink.php.
array IMSGlobal\LTI\ToolProvider\ResourceLink::$extRequestHeaders = null |
Request headers for last service request.
Definition at line 109 of file ResourceLink.php.
string IMSGlobal\LTI\ToolProvider\ResourceLink::$extResponse = null |
Response from last service request.
Definition at line 115 of file ResourceLink.php.
array IMSGlobal\LTI\ToolProvider\ResourceLink::$extResponseHeaders = null |
Response header from last service request.
Definition at line 121 of file ResourceLink.php.
array IMSGlobal\LTI\ToolProvider\ResourceLink::$groups = null |
User groups (null if the consumer does not support the groups enhancement)
Definition at line 97 of file ResourceLink.php.
Referenced by IMSGlobal\LTI\ToolProvider\ResourceLink\doMembershipsService().
array IMSGlobal\LTI\ToolProvider\ResourceLink::$groupSets = null |
User group sets (null if the consumer does not support the groups enhancement)
Definition at line 91 of file ResourceLink.php.
|
private |
Record ID for this resource link.
Definition at line 152 of file ResourceLink.php.
Referenced by IMSGlobal\LTI\ToolProvider\ResourceLink\doLTI11Service(), IMSGlobal\LTI\ToolProvider\ResourceLink\doMembershipsService(), IMSGlobal\LTI\ToolProvider\ResourceLink\fromRecordId(), IMSGlobal\LTI\ToolProvider\ResourceLink\getRecordId(), IMSGlobal\LTI\ToolProvider\ResourceLink\load(), and IMSGlobal\LTI\ToolProvider\ResourceLink\setRecordId().
string IMSGlobal\LTI\ToolProvider\ResourceLink::$ltiResourceLinkId = null |
Resource link ID as supplied in the last connection request.
Definition at line 85 of file ResourceLink.php.
Referenced by IMSGlobal\LTI\ToolProvider\ResourceLink\fromConsumer(), IMSGlobal\LTI\ToolProvider\ResourceLink\fromContext(), and IMSGlobal\LTI\ToolProvider\ResourceLink\getId().
string IMSGlobal\LTI\ToolProvider\ResourceLink::$primaryResourceLinkId = null |
Consumer key value for resource link being shared (if any).
Definition at line 127 of file ResourceLink.php.
|
private |
Setting values (LTI parameters, custom parameters and local parameters).
Definition at line 182 of file ResourceLink.php.
Referenced by IMSGlobal\LTI\ToolProvider\ResourceLink\getSettings(), IMSGlobal\LTI\ToolProvider\ResourceLink\setSettings(), and IMSGlobal\LTI\ToolProvider\ResourceLink\setToolSettings().
|
private |
Whether the settings value have changed since last saved.
Definition at line 188 of file ResourceLink.php.
boolean IMSGlobal\LTI\ToolProvider\ResourceLink::$shareApproved = null |
Whether the sharing request has been approved by the primary resource link.
Definition at line 133 of file ResourceLink.php.
string IMSGlobal\LTI\ToolProvider\ResourceLink::$title = null |
Context title.
Definition at line 79 of file ResourceLink.php.
int IMSGlobal\LTI\ToolProvider\ResourceLink::$updated = null |
Date/time when the object was last updated.
Definition at line 145 of file ResourceLink.php.
const IMSGlobal\LTI\ToolProvider\ResourceLink::EXT_CREATE = 4 |
Create action.
Definition at line 39 of file ResourceLink.php.
const IMSGlobal\LTI\ToolProvider\ResourceLink::EXT_DELETE = 3 |
Delete action.
Definition at line 35 of file ResourceLink.php.
const IMSGlobal\LTI\ToolProvider\ResourceLink::EXT_READ = 1 |
Read action.
Definition at line 27 of file ResourceLink.php.
const IMSGlobal\LTI\ToolProvider\ResourceLink::EXT_TYPE_DECIMAL = 'decimal' |
Decimal outcome type.
Definition at line 48 of file ResourceLink.php.
const IMSGlobal\LTI\ToolProvider\ResourceLink::EXT_TYPE_LETTER_AF = 'letteraf' |
Letter (A-F) outcome type.
Definition at line 60 of file ResourceLink.php.
const IMSGlobal\LTI\ToolProvider\ResourceLink::EXT_TYPE_LETTER_AF_PLUS = 'letterafplus' |
Letter (A-F) with optional +/- outcome type.
Definition at line 64 of file ResourceLink.php.
const IMSGlobal\LTI\ToolProvider\ResourceLink::EXT_TYPE_PASS_FAIL = 'passfail' |
Pass/fail outcome type.
Definition at line 68 of file ResourceLink.php.
const IMSGlobal\LTI\ToolProvider\ResourceLink::EXT_TYPE_PERCENTAGE = 'percentage' |
Percentage outcome type.
Definition at line 52 of file ResourceLink.php.
const IMSGlobal\LTI\ToolProvider\ResourceLink::EXT_TYPE_RATIO = 'ratio' |
Ratio outcome type.
Definition at line 56 of file ResourceLink.php.
const IMSGlobal\LTI\ToolProvider\ResourceLink::EXT_TYPE_TEXT = 'freetext' |
Free text outcome type.
Definition at line 72 of file ResourceLink.php.
const IMSGlobal\LTI\ToolProvider\ResourceLink::EXT_UPDATE = 5 |
Update action.
Definition at line 43 of file ResourceLink.php.
const IMSGlobal\LTI\ToolProvider\ResourceLink::EXT_WRITE = 2 |
Write (create/update) action.
Definition at line 31 of file ResourceLink.php.