Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 402] [Versions 310 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