Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

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

(no description)

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

Defines 1 class

ToolProxy:: (9 methods):
  __construct()
  initialize()
  initialise()
  getRecordId()
  setRecordId()
  getConsumer()
  setConsumerId()
  getDataConnector()
  load()


Class: ToolProxy  - X-Ref

Class to represent an LTI Tool Proxy

__construct($dataConnector, $id = null)   X-Ref
Class constructor.

param: DataConnector   $dataConnector   Data connector
param: string                        $id              Tool Proxy ID (optional, default is null)

initialize()   X-Ref
Initialise the tool proxy.


initialise()   X-Ref
Initialise the tool proxy.

Pseudonym for initialize().

getRecordId()   X-Ref
Get the tool proxy record ID.

return: int Tool Proxy record ID value

setRecordId($recordId)   X-Ref
Sets the tool proxy record ID.

param: int $recordId  Tool Proxy record ID value

getConsumer()   X-Ref
Get tool consumer.

return: ToolConsumer Tool consumer object for this context.

setConsumerId($consumerId)   X-Ref
Set tool consumer ID.

param: int $consumerId  Tool Consumer ID for this resource link.

getDataConnector()   X-Ref
Get the data connector.

return: DataConnector  Data connector object

load($id)   X-Ref
Load the tool proxy from the database.

param: string  $id        The tool proxy id value
return: boolean True if the tool proxy was successfully loaded