Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
externallib.php File Reference

Functions

 external_create_service_token ($servicename, $contextid)
 Create and return a session linked token.
 
 external_delete_descriptions ($component)
 Delete all pre-built services (+ related tokens) and external functions information defined in the specified component.
 
 external_format_string ($str, $context, $striplinks=true, $options=[])
 Format the string to be returned properly as requested by the either the web service server, either by an internally call.
 
 external_format_text ($text, $textformat, $context, $component=null, $filearea=null, $itemid=null, $options=null)
 Format the text to be returned properly as requested by the either the web service server, either by an internally call.
 
 external_generate_token ($tokentype, $serviceorid, $userid, $contextorid, $validuntil=0, $iprestriction='')
 Generate a token.
 
 external_generate_token_for_current_user ($service)
 Generate or return an existing token for the current authenticated user.
 
 external_log_token_request ($token)
 Set the last time a token was sent and trigger the core\event\webservice_token_sent event.
 
 external_validate_format ($format)
 Validate text field format against known FORMAT_XXX.