Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 400 and 402] [Versions 400 and 403]

(no description)

File Size: 1056 lines (45 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes


Class: assumes  - X-Ref

Class to represent an LTI Data Connector for MySQL

Class: DataConnector_mysql  - X-Ref

loadToolConsumer($consumer)   X-Ref
Load tool consumer object.

return: boolean True if the tool consumer object was successfully loaded
param: ToolConsumer $consumer ToolConsumer object

saveToolConsumer($consumer)   X-Ref
Save tool consumer object.

return: boolean True if the tool consumer object was successfully saved
param: ToolConsumer $consumer Consumer object

deleteToolConsumer($consumer)   X-Ref
Delete tool consumer object.

return: boolean True if the tool consumer object was successfully deleted
param: ToolConsumer $consumer Consumer object

getToolConsumers()   X-Ref
No description

loadToolProxy($toolProxy)   X-Ref
No description

saveToolProxy($toolProxy)   X-Ref
No description

deleteToolProxy($toolProxy)   X-Ref
No description

loadContext($context)   X-Ref
Load context object.

return: boolean True if the context object was successfully loaded
param: Context $context Context object

saveContext($context)   X-Ref
Save context object.

return: boolean True if the context object was successfully saved
param: Context $context Context object

deleteContext($context)   X-Ref
Delete context object.

return: boolean True if the Context object was successfully deleted
param: Context $context Context object

loadResourceLink($resourceLink)   X-Ref
Load resource link object.

return: boolean True if the resource link object was successfully loaded
param: ResourceLink $resourceLink Resource_Link object

saveResourceLink($resourceLink)   X-Ref
Save resource link object.

return: boolean True if the resource link object was successfully saved
param: ResourceLink $resourceLink Resource_Link object

deleteResourceLink($resourceLink)   X-Ref
Delete resource link object.

return: boolean True if the resource link object was successfully deleted
param: ResourceLink $resourceLink Resource_Link object

getUserResultSourcedIDsResourceLink($resourceLink, $localOnly, $idScope)   X-Ref
Get array of user objects.

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.

return: array Array of User objects
param: ResourceLink $resourceLink      Resource link object
param: boolean     $localOnly True if only users within the resource link are to be returned (excluding users sharing this resource link)
param: int         $idScope     Scope value to use for user IDs

getSharesResourceLink($resourceLink)   X-Ref
Get array of shares defined for this resource link.

return: array Array of ResourceLinkShare objects
param: ResourceLink $resourceLink Resource_Link object

loadConsumerNonce($nonce)   X-Ref
Load nonce object.

return: boolean True if the nonce object was successfully loaded
param: ConsumerNonce $nonce Nonce object

saveConsumerNonce($nonce)   X-Ref
Save nonce object.

return: boolean True if the nonce object was successfully saved
param: ConsumerNonce $nonce Nonce object

loadResourceLinkShareKey($shareKey)   X-Ref
Load resource link share key object.

return: boolean True if the resource link share key object was successfully loaded
param: ResourceLinkShareKey $shareKey Resource_Link share key object

saveResourceLinkShareKey($shareKey)   X-Ref
Save resource link share key object.

return: boolean True if the resource link share key object was successfully saved
param: ResourceLinkShareKey $shareKey Resource link share key object

deleteResourceLinkShareKey($shareKey)   X-Ref
Delete resource link share key object.

return: boolean True if the resource link share key object was successfully deleted
param: ResourceLinkShareKey $shareKey Resource link share key object

loadUser($user)   X-Ref
Load user object.

return: boolean True if the user object was successfully loaded
param: User $user User object

saveUser($user)   X-Ref
Save user object.

return: boolean True if the user object was successfully saved
param: User $user User object

deleteUser($user)   X-Ref
Delete user object.

return: boolean True if the user object was successfully deleted
param: User $user User object