Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
|
External tool module external functions. More...
Static Public Member Functions | |
static | create_tool_proxy ($name, $registrationurl, $capabilityoffered, $serviceoffered) |
Creates a new tool proxy. | |
static | create_tool_proxy_parameters () |
Returns description of method parameters. | |
static | create_tool_proxy_returns () |
Returns description of method result value. | |
static | create_tool_type ($cartridgeurl, $key, $secret) |
Creates a tool type. | |
static | create_tool_type_parameters () |
Returns description of method parameters. | |
static | create_tool_type_returns () |
Returns description of method result value. | |
static | delete_tool_proxy ($id) |
Trigger the course module viewed event and update the module completion status. | |
static | delete_tool_proxy_parameters () |
Returns description of method parameters. | |
static | delete_tool_proxy_returns () |
Returns description of method result value. | |
static | delete_tool_type ($id) |
Delete a tool type. | |
static | delete_tool_type_parameters () |
Returns description of method parameters. | |
static | delete_tool_type_returns () |
Returns description of method result value. | |
static | get_ltis_by_courses ($courseids=array()) |
Returns a list of external tools in a provided list of courses, if no list is provided all external tools that the user can view will be returned. | |
static | get_ltis_by_courses_parameters () |
Describes the parameters for get_ltis_by_courses. | |
static | get_ltis_by_courses_returns () |
Describes the get_ltis_by_courses return value. | |
static | get_tool_launch_data ($toolid) |
Return the launch data for a given external tool. | |
static | get_tool_launch_data_parameters () |
Returns description of method parameters. | |
static | get_tool_launch_data_returns () |
Returns description of method result value. | |
static | get_tool_proxies ($orphanedonly) |
Returns the tool types. | |
static | get_tool_proxies_parameters () |
Returns description of method parameters. | |
static | get_tool_proxies_returns () |
Returns description of method result value. | |
static | get_tool_proxy_registration_request ($id) |
Returns the registration request for a tool proxy. | |
static | get_tool_proxy_registration_request_parameters () |
Returns description of method parameters. | |
static | get_tool_proxy_registration_request_returns () |
Returns description of method result value. | |
static | get_tool_types ($toolproxyid) |
Returns the tool types. | |
static | get_tool_types_parameters () |
Returns description of method parameters. | |
static | get_tool_types_returns () |
Returns description of method result value. | |
static | is_cartridge ($url) |
Determine if the url to a tool is for a cartridge. | |
static | is_cartridge_parameters () |
Returns description of method parameters. | |
static | is_cartridge_returns () |
Returns description of method result value. | |
static | update_tool_type ($id, $name, $description, $state) |
Update a tool type. | |
static | update_tool_type_parameters () |
Returns description of method parameters. | |
static | update_tool_type_returns () |
Returns description of method result value. | |
static | view_lti ($ltiid) |
Trigger the course module viewed event and update the module completion status. | |
static | view_lti_parameters () |
Returns description of method parameters. | |
static | view_lti_returns () |
Returns description of method result value. | |
External tool module external functions.
|
static |
Creates a new tool proxy.
string | $name | Tool proxy name |
string | $registrationurl | Registration url |
string[] | $capabilityoffered | List of capabilities this tool proxy should be offered |
string[] | $serviceoffered | List of services this tool proxy should be offered |
object | The new tool proxy |
moodle_exception |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
core_external\external_description |
|
static |
Creates a tool type.
string | $cartridgeurl | Url of the xml cartridge representing the LTI tool |
string | $key | The consumer key to identify this consumer |
string | $secret | The secret |
array | created tool type |
moodle_exception | If the tool type could not be created |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
core_external\external_description |
|
static |
Trigger the course module viewed event and update the module completion status.
int | $id | the lti instance id |
object | The tool proxy |
moodle_exception |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
core_external\external_description |
|
static |
Delete a tool type.
int | $id | The id of the tool type to be deleted |
array | deleted tool type |
moodle_exception |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
core_external\external_description |
|
static |
Returns a list of external tools in a provided list of courses, if no list is provided all external tools that the user can view will be returned.
array | $courseids | the course ids |
array | the lti details |
|
static |
Describes the parameters for get_ltis_by_courses.
external_function_parameters |
|
static |
Describes the get_ltis_by_courses return value.
external_single_structure |
|
static |
Return the launch data for a given external tool.
int | $toolid | the external tool instance id |
array | of warnings and launch data |
moodle_exception |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
core_external\external_description |
|
static |
Returns the tool types.
bool | $orphanedonly | Retrieve only tool proxies that do not have a corresponding tool type |
array | of tool types |
moodle_exception |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
core_external\external_description |
|
static |
Returns the registration request for a tool proxy.
int | $id | the lti instance id |
array | of registration parameters |
moodle_exception |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
core_external\external_description |
|
static |
Returns the tool types.
int | $toolproxyid | The tool proxy id |
array | of tool types |
moodle_exception |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
core_external\external_description |
|
static |
Determine if the url to a tool is for a cartridge.
string | $url | Url that may or may not be an xml cartridge |
bool | True if the url is for a cartridge. |
moodle_exception |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
core_external\external_description |
|
static |
Update a tool type.
int | $id | The id of the tool type to update |
string | $name | The name of the tool type |
string | $description | The name of the tool type |
int | $state | The state of the tool type |
array | updated tool type |
moodle_exception |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
core_external\external_description |
|
static |
Trigger the course module viewed event and update the module completion status.
int | $ltiid | the lti instance id |
array | of warnings and status result |
moodle_exception |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
Returns description of method result value.
core_external\external_description |