Class to represent an LTI Tool Provider
| author | Stephen P Vickers |
|---|---|
| version | 2.5.00 |
| license | GNU Lesser General Public License, version 3 |
| package | LTI |
__construct(mixed $data_connector= '', mixed $callbackHandler= NULL)
mixedObject containing a database connection object (optional, default is a blank prefix and MySQL)
mixedString containing name of callback function for launch request, or associative array of callback functions for each request type
execute() : mixed
getConsumers() : array
arrayArray of LTI_Tool_Consumer objectshandle_request() : mixed
mixedReturns TRUE or FALSE, a redirection URL or HTMLparseRoles($rolesString) : array
arrayArray of rolessendForm(string $url, array $params, string $target = '')
stringURL to which the form should be submitted
arrayArray of form parameters
stringName of target (optional)
setParameterConstraint(string $name, boolean $required= TRUE, integer $max_length= NULL, array $message_types= NULL)
stringName of parameter to be checked
booleanTrue if parameter is required (optional, default is TRUE)
integerMaximum permitted length of parameter value (optional, default is NULL)
arrayArray of message types to which the constraint applies (default is all)
onConfigure() : boolean
booleanTrue if no erroronContentItem() : boolean
booleanTrue if no erroronDashboard() : boolean
booleanTrue if no erroronError() : boolean
booleanTrue if no further error processing requiredonLaunch() : boolean
booleanTrue if no errorauthenticate() : boolean
booleanTrue if the request has been successfully validated.checkForShare() : boolean
booleanTrue if no error is reportedcheckValue($value, $values, $reason) : boolean
booleanTrue if value is validdoCallback() : boolean
booleanTrue if no error reporteddoCallbackMethod(string $type = NULL) : boolean
stringCallback type
booleanTrue if no error reportedresult() : string
stringOutput to be displayed (redirection, or display HTML or message)$allowSharing : boolean
FALSE$consumer : \LTI_Tool_Consumer
NULL$context : \LTI_Context
NULL$data_connector : \LTI_Data_Connector
NULL$defaultEmail : string
''$details : array
array()$id_scope : integer
self::ID_SCOPE_ID_ONLY$isOK : boolean
TRUE$reason : string
NULL$resource_link : \LTI_Resource_Link
NULL$return_url : string
NULL$user : \LTI_User
NULL$debugMode : boolean
FALSE$documentTargets : string
NULL$error_output : string
NULL$mediaTypes : string
NULL$output : string
NULL$redirectURL : string
NULL$LTI_VERSIONS : array
array(self::LTI_VERSION1, self::LTI_VERSION2)$callbackHandler : array
NULL$constraints : array
NULL$lti_settings_names : array
array('ext_resource_link_content', 'ext_resource_link_content_signature', 'lis_result_sourcedid', 'lis_outcome_service_url', 'ext_ims_lis_basic_outcome_url', 'ext_ims_lis_resultvalue_sourcedids', 'ext_ims_lis_memberships_id', 'ext_ims_lis_memberships_url', 'ext_ims_lti_tool_setting', 'ext_ims_lti_tool_setting_id', 'ext_ims_lti_tool_setting_url')$methodNames : array
array('basic-lti-launch-request' => 'onLaunch', 'ConfigureLaunchRequest' => 'onConfigure', 'DashboardRequest' => 'onDashboard', 'ContentItemSelectionRequest' => 'onContentItem')CONNECTION_ERROR_MESSAGE = 'Sorry, there was an error connecting you to the application.'
ID_SCOPE_CONTEXT = 2
ID_SCOPE_GLOBAL = 1
ID_SCOPE_ID_ONLY = 0
ID_SCOPE_RESOURCE = 3
ID_SCOPE_SEPARATOR = ':'
LTI_VERSION1 = 'LTI-1p0'
LTI_VERSION2 = 'LTI-2p0'