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
)
mixed
Object containing a database connection object (optional, default is a blank prefix and MySQL)
mixed
String containing name of callback function for launch request, or associative array of callback functions for each request type
execute() : mixed
getConsumers() : array
array
Array of LTI_Tool_Consumer objectshandle_request() : mixed
mixed
Returns TRUE or FALSE, a redirection URL or HTMLparseRoles($rolesString) : array
array
Array of rolessendForm(string $url, array $params, string $target = ''
)
string
URL to which the form should be submitted
array
Array of form parameters
string
Name of target (optional)
setParameterConstraint(string $name, boolean $required= TRUE
, integer $max_length= NULL
, array $message_types= NULL
)
string
Name of parameter to be checked
boolean
True if parameter is required (optional, default is TRUE)
integer
Maximum permitted length of parameter value (optional, default is NULL)
array
Array of message types to which the constraint applies (default is all)
onConfigure() : boolean
boolean
True if no erroronContentItem() : boolean
boolean
True if no erroronDashboard() : boolean
boolean
True if no erroronError() : boolean
boolean
True if no further error processing requiredonLaunch() : boolean
boolean
True if no errorauthenticate() : boolean
boolean
True if the request has been successfully validated.checkForShare() : boolean
boolean
True if no error is reportedcheckValue($value, $values, $reason) : boolean
boolean
True if value is validdoCallback() : boolean
boolean
True if no error reporteddoCallbackMethod(string $type = NULL
) : boolean
string
Callback type
boolean
True if no error reportedresult() : string
string
Output 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'