Class to represent an LTI Tool Proxy. More...
Public Member Functions | |
| __construct ($dataConnector, $id=null) | |
| Class constructor. More... | |
| initialize () | |
| Initialise the tool proxy. More... | |
| initialise () | |
| Initialise the tool proxy. More... | |
| getRecordId () | |
| Get the tool proxy record ID. More... | |
| setRecordId ($recordId) | |
| Sets the tool proxy record ID. More... | |
| getConsumer () | |
| Get tool consumer. More... | |
| setConsumerId ($consumerId) | |
| Set tool consumer ID. More... | |
| getDataConnector () | |
| Get the data connector. More... | |
Data Fields | |
| $id = null | |
| Local id of tool consumer. More... | |
Class to represent an LTI Tool Proxy.
Definition at line 17 of file ToolProxy.php.
| __construct | ( | $dataConnector, | |
$id = null |
|||
| ) |
Class constructor.
| DataConnector | $dataConnector | Data connector |
| string | $id | Tool Proxy ID (optional, default is null) |
Definition at line 64 of file ToolProxy.php.
References ToolProxy\$id, DataConnector\getRandomString(), and ToolProxy\initialize().
| getConsumer | ( | ) |
Get tool consumer.
Definition at line 132 of file ToolProxy.php.
References ToolConsumer\fromRecordId(), and ToolProxy\getDataConnector().
| getDataConnector | ( | ) |
Get the data connector.
Definition at line 161 of file ToolProxy.php.
References ToolProxy\$id, and ToolProxy\initialize().
Referenced by ToolProxy\getConsumer().
| getRecordId | ( | ) |
Get the tool proxy record ID.
Definition at line 108 of file ToolProxy.php.
| initialise | ( | ) |
Initialise the tool proxy.
Pseudonym for initialize().
Definition at line 96 of file ToolProxy.php.
References ToolProxy\initialize().
| initialize | ( | ) |
Initialise the tool proxy.
Definition at line 80 of file ToolProxy.php.
Referenced by ToolProxy\__construct(), ToolProxy\getDataConnector(), and ToolProxy\initialise().
| setConsumerId | ( | $consumerId | ) |
Set tool consumer ID.
| int | $consumerId | Tool Consumer ID for this resource link. |
Definition at line 148 of file ToolProxy.php.
| setRecordId | ( | $recordId | ) |
Sets the tool proxy record ID.
| int | $recordId | Tool Proxy record ID value |
Definition at line 120 of file ToolProxy.php.
| int $id = null |
Local id of tool consumer.
Consumer ID value.
Definition at line 25 of file ToolProxy.php.
Referenced by ToolProxy\__construct(), and ToolProxy\getDataConnector().