|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Definition at line 59 of file locallib.php.
Definition at line 60 of file locallib.php.
Definition at line 61 of file locallib.php.
Definition at line 63 of file locallib.php.
Definition at line 62 of file locallib.php.
| enum LTI_SETTING_ALWAYS |
Definition at line 71 of file locallib.php.
| enum LTI_SETTING_DELEGATE |
Definition at line 72 of file locallib.php.
| enum LTI_SETTING_NEVER |
Definition at line 70 of file locallib.php.
| enum LTI_TOOL_STATE_ANY |
Definition at line 65 of file locallib.php.
Definition at line 66 of file locallib.php.
Definition at line 67 of file locallib.php.
Definition at line 68 of file locallib.php.
| enum LTI_URL_DOMAIN_REGEX |
Definition at line 57 of file locallib.php.
| lti_add_config | ( | $ | config | ) |
Add a tool configuration in the database
| $config | Tool configuration |
Definition at line 958 of file locallib.php.

| lti_add_type | ( | $ | type, |
| $ | config | ||
| ) |
| lti_build_request | ( | $ | instance, |
| $ | typeconfig, | ||
| $ | course | ||
| ) |
This function builds the request that must be sent to the tool producer
| object | $instance | Basic LTI instance object |
| object | $typeconfig | Basic LTI tool configuration |
| object | $course | Course object |
Definition at line 222 of file locallib.php.


| lti_build_sourcedid | ( | $ | instanceid, |
| $ | userid, | ||
| $ | launchid = null, |
||
| $ | servicesalt | ||
| ) |
| lti_delete_type | ( | $ | id | ) |
Delete a Basic LTI configuration
| int | $id | Configuration id |
Definition at line 707 of file locallib.php.
| lti_ensure_url_is_https | ( | $ | url | ) |
| lti_filter_get_types | ( | $ | course | ) |
Returns all basicLTI tools configured by the administrator
Definition at line 563 of file locallib.php.
| lti_get_best_tool_by_url | ( | $ | url, |
| $ | tools, | ||
| $ | courseid = null |
||
| ) |
Definition at line 627 of file locallib.php.


| lti_get_config | ( | $ | ltiobject | ) |
Transforms a basic LTI object to an array
| object | $ltiobject | Basic LTI object |
Definition at line 735 of file locallib.php.


| lti_get_domain_from_url | ( | $ | url | ) |
| lti_get_ims_role | ( | $ | user, |
| $ | cmid, | ||
| $ | courseid | ||
| ) |
Gets the IMS role string for the specified user and LTI course module.
| mixed | $user | User object or user id |
| int | $cmid | The course module id of the LTI activity |
Definition at line 462 of file locallib.php.


| lti_get_launch_container | ( | $ | lti, |
| $ | toolconfig | ||
| ) |
Definition at line 1100 of file locallib.php.


| lti_get_shared_secrets_by_key | ( | $ | key | ) |
Definition at line 673 of file locallib.php.
| lti_get_tool_by_url_match | ( | $ | url, |
| $ | courseid = null, |
||
| $ | state = LTI_TOOL_STATE_CONFIGURED |
||
| ) |
Definition at line 604 of file locallib.php.


| lti_get_tool_table | ( | $ | tools, |
| $ | id | ||
| ) |
| lti_get_tools_by_domain | ( | $ | domain, |
| $ | state = null, |
||
| $ | courseid = null |
||
| ) |
| lti_get_tools_by_url | ( | $ | url, |
| $ | state, | ||
| $ | courseid = null |
||
| ) |
Definition at line 523 of file locallib.php.


| lti_get_type | ( | $ | typeid | ) |
Definition at line 1094 of file locallib.php.
| lti_get_type_config | ( | $ | typeid | ) |
Returns configuration details for the tool
| int | $typeid | Basic LTI tool typeid |
Definition at line 500 of file locallib.php.

Generates some of the tool configuration based on the instance details
| int | $id |
Definition at line 752 of file locallib.php.

| lti_get_type_type_config | ( | $ | id | ) |
Generates some of the tool configuration based on the admin configuration details
| int | $id |
Definition at line 789 of file locallib.php.

| lti_get_url_thumbprint | ( | $ | url | ) |
| lti_map_keyname | ( | $ | key | ) |
Used for building the names of the different custom parameters
| string | $key | Parameter name |
Definition at line 440 of file locallib.php.


| lti_post_launch_html | ( | $ | newparms, |
| $ | endpoint, | ||
| $ | debug = false |
||
| ) |
Posts the launch petition HTML
| $newparms | Signed parameters |
| $endpoint | URL of the external tool |
| $debug | Debug (true/false) |
Definition at line 1025 of file locallib.php.

| lti_prepare_type_for_save | ( | $ | type, |
| $ | config | ||
| ) |
Definition at line 871 of file locallib.php.


| lti_set_state_for_type | ( | $ | id, |
| $ | state | ||
| ) |
Definition at line 722 of file locallib.php.
| lti_sign_parameters | ( | $ | oldparms, |
| $ | endpoint, | ||
| $ | method, | ||
| $ | oauthconsumerkey, | ||
| $ | oauthconsumersecret | ||
| ) |
Signs the petition to launch the external tool using OAuth
| $oldparms | Parameters to be passed for signing |
| $endpoint | url of the external tool |
| $method | Method for sending the parameters (e.g. POST) |
| $oauth_consumoer_key | Key |
| $oauth_consumoer_secret | Secret |
| $submittext | The text for the submit button |
| $orgid | LMS name |
| $orgdesc | LMS key |
Definition at line 998 of file locallib.php.


| lti_split_custom_parameters | ( | $ | customstr | ) |
Splits the custom parameters field to the various parameters
| string | $customstr | String containing the parameters |
Definition at line 415 of file locallib.php.


| lti_update_config | ( | $ | config | ) |
Updates a tool configuration in the database
| $config | Tool configuration |
Definition at line 971 of file locallib.php.

| lti_update_type | ( | $ | type, |
| $ | config | ||
| ) |
| lti_view | ( | $ | instance | ) |
Prints a Basic LTI activity
$param int $basicltiid Basic LTI activity id
Definition at line 79 of file locallib.php.
