|
| | __construct (?DataConnector $dataConnector=null) |
| | Class constructor.
|
|
void | initialize () |
| | Initialise the tool.
|
| bool | save () |
| | Save the tool to the database.
|
| bool | delete () |
| | Delete the tool from the database.
|
| array null | getMessageParameters (?bool $strictMode=null, bool $disableCookieCheck=false, bool $generateWarnings=false) |
| | Get the message parameters.
|
| | handleRequest (?bool $strictMode=null, bool $disableCookieCheck=false, bool $generateWarnings=false) |
| | Process an incoming request.
|
| | setParameterConstraint (string $name, bool $required=true, ?int $maximumLength=null, ?array $messageTypes=null) |
| | Add a parameter constraint to be checked on launch.
|
| array | getPlatforms () |
| | Get an array of defined platforms.
|
| ServiceDefinition bool | findService (string $format, array $methods) |
| | Find an offered service based on a media type and HTTP action(s).
|
| bool | doToolProxyService () |
| | Send the tool proxy to the platform.
|
| bool | hasCustomQueryParameters () |
| | Whether a tool has received custom parameters in the query string.
|
| int string null | getRecordId () |
| | Get the system record ID.
|
| void | setRecordId (int|string|null $id) |
| | Sets the system record ID.
|
| string null | getKey () |
| | Get the consumer key.
|
| void | setKey (?string $key) |
| | Set the consumer key.
|
| string null | getSetting (string $name, ?string $default="") |
| | Get a setting value.
|
| void | setSetting (string $name, string|array|null $value=null) |
| | Set a setting value.
|
| array | getSettings () |
| | Get an array of all setting values.
|
| void | setSettings (array $settings) |
| | Set an array of all setting values.
|
| bool | saveSettings () |
| | Save setting values.
|
| bool | hasJwt () |
| | Check whether a JWT exists.
|
| ClientInterface | getJwt () |
| | Get the JWT.
|
| array | getRawParameters () |
| | Get the raw POST parameters.
|
| array | getMessageClaims (bool $fullyQualified=false) |
| | Get the message claims.
|
| array string | signParameters (string $url, string $type, string $ltiVersionString, array $params) |
| | Add the signature to an LTI message.
|
| array string | signMessage (string &$url, string $type, string $ltiVersionString, array $params, ?string $loginHint=null, ?string $ltiMessageHint=null) |
| | Add the signature to an LTI message.
|
| string | sendMessage (string $url, string $type, array $messageParams, string $target="", ?string $userId=null, ?string $hint=null) |
| | Generate a web page containing an auto-submitted form of LTI message parameters.
|
| array string | signServiceRequest (string $url, string $method, string $type, array|string|null $data=null) |
| | Generates the headers for an LTI service request.
|
| HttpMessage | doServiceRequest (ServiceDefinition $service, string $method, string $format, array|string $data) |
| | Perform a service request.
|
| bool | useOAuth1 () |
| | Determine whether this consumer is using the OAuth 1 security model.
|
| array string | addSignature (string $endpoint, array|string|null $data, string $method="POST", ?string $type=null, ?string $nonce="", ?string $hash=null, ?int $timestamp=null) |
| | Add the signature to an array of message parameters or to a header string.
|
| string null | getBaseString () |
| | Get the last signature base string.
|
| bool | checkMessage (bool $generateWarnings=false) |
| | Verify the required properties of an LTI message.
|
| bool | verifySignature ($generateWarnings=false) |
| | Verify the signature of a message.
|
| bool | setReason (string $reason) |
| | Set the error reason.
|
|
|
const | CONNECTION_ERROR_MESSAGE = 'Sorry, there was an error connecting you to the application.' |
| | Default connection error message.
|
|
Platform | $platform = null |
| | Platform object.
|
|
string | $returnUrl = null |
| | Return URL provided by platform.
|
|
UserResult | $userResult = null |
| | UserResult object.
|
|
ResourceLink | $resourceLink = null |
| | Resource link object.
|
|
Context | $context = null |
| | Context object.
|
|
string | $defaultEmail = '' |
| | Default email domain.
|
|
bool | $allowSharing = false |
| | Whether shared resource link arrangements are permitted.
|
|
string | $message = null |
| | Message for last request processed.
|
|
string | $baseUrl = null |
| | Base URL for tool service.
|
|
Profile Item | $vendor = null |
| | Vendor details.
|
|
Profile Item | $product = null |
| | Product details.
|
|
array | $requiredServices = null |
| | Services required by Tool.
|
|
array | $optionalServices = null |
| | Optional services used by Tool.
|
|
array | $resourceHandlers = null |
| | Resource handlers for Tool.
|
|
string | $messageUrl = null |
| | Message URL for Tool.
|
|
string | $initiateLoginUrl = null |
| | Initiate Login request URL for Tool.
|
|
array | $redirectionUris = null |
| | Redirection URIs for Tool.
|
|
bool | $ok = true |
| | True if the last request was successful.
|
|
LtiVersion | $ltiVersion = null |
| | LTI version.
|
|
string | $name = null |
| | Local name of platform/tool.
|
|
string | $secret = null |
| | Shared secret.
|
|
string | $signatureMethod = 'HMAC-SHA1' |
| | Method used for signing messages.
|
|
string | $encryptionMethod = '' |
| | Algorithm used for encrypting messages.
|
|
DataConnector | $dataConnector = null |
| | Data connector object.
|
| string | $rsaKey = null |
| | RSA/EC key in PEM or JSON format.
|
|
array | $requiredScopes = [] |
| | Scopes to request when obtaining an access token.
|
|
string | $kid = null |
| | Key ID.
|
|
string | $jku = null |
| | Endpoint for public key.
|
|
string | $reason = null |
| | Error message for last request processed.
|
|
array | $details = [] |
| | Details for error message relating to last request processed.
|
| array | $warnings = [] |
| | Warnings relating to last request processed.
|
|
bool | $debugMode = false |
| | Whether debug level messages are to be reported.
|
|
bool | $enabled = false |
| | Whether the system instance is enabled to accept connection requests.
|
|
int | $enableFrom = null |
| | Timestamp from which the the system instance is enabled to accept connection requests.
|
|
int | $enableUntil = null |
| | Timestamp until which the system instance is enabled to accept connection requests.
|
|
int | $lastAccess = null |
| | Timestamp for date of last connection to this system.
|
|
int | $created = null |
| | Timestamp for when the object was created.
|
|
int | $updated = null |
| | Timestamp for when the object was last updated.
|
|
IdScope | $idScope = IdScope::IdOnly |
| | Default scope to use when generating an Id value for a user.
|
|
string | $onExitExceptionClass = null |
| | Class of exception to be thrown instead of calling exit.
|
|
|
void | onLaunch () |
| | Process a valid launch request.
|
|
void | onConfigure () |
| | Process a valid configure request.
|
|
void | onDashboard () |
| | Process a valid dashboard request.
|
|
void | onContentItem () |
| | Process a valid content-item request.
|
|
void | onContentItemUpdate () |
| | Process a valid content-item update request.
|
|
void | onSubmissionReview () |
| | Process a valid submission review request.
|
|
void | onRegistration () |
| | Process a dynamic registration request.
|
|
| onLtiStartProctoring () |
| | Process a valid start proctoring request.
|
|
void | onLtiEndAssessment () |
| | Process a valid end assessment request.
|
| void | onInitiateLogin (array $requestParameters, array &$authParameters) |
| | Process a login initiation request.
|
| void | onAuthenticate (string $state, string $nonce, bool $usePlatformStorage) |
| | Process response to an authentication request.
|
|
void | onResetSessionId () |
| | Process a change in the session ID.
|
|
void | onError () |
| | Process a response to an invalid request.
|
| array null | getPlatformConfiguration () |
| | Fetch a platform's configuration data.
|
| array | getConfiguration (array $platformConfig) |
| | Prepare the tool's configuration data.
|
| array null | sendRegistration (array $platformConfig, array $toolConfig) |
| | Send the tool registration to the platform.
|
| Platform | getPlatformToRegister (array $platformConfig, array $registrationConfig, bool $doSave=true) |
| | Initialise the platform to be registered.
|
| void | getRegistrationResponsePage (array $toolConfig) |
| | Prepare the page to complete a registration request.
|
Class to represent an LTI Tool.
- Author
- Stephen P Vickers steph.nosp@m.en@s.nosp@m.pvsof.nosp@m.twar.nosp@m.eprod.nosp@m.ucts.nosp@m..com
- Copyright
- SPV Software Products
- Licence: http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3