Moodle APIs 4.0
Moodle 4.0.11 (Build: 20231009)
Functions
jslib.php File Reference

This file contains various javascript related functions, all functions here are self contained and can be used in ABORT_AFTER_CONFIG scripts. More...

Functions

 js_send_cached ($jspath, $etag, $filename='javascript.php')
 Send javascript file content with as much caching as possible.
 
 js_send_css_not_found ()
 Sends a 404 message about CSS not being found.
 
 js_send_uncached ($js, $filename='javascript.php')
 Send javascript without any caching.
 
 js_send_unmodified ($lastmodified, $etag)
 Send file not modified headers.
 
 js_write_cache_file_content ($file, $content)
 Create cache file for JS content.
 

Detailed Description

This file contains various javascript related functions, all functions here are self contained and can be used in ABORT_AFTER_CONFIG scripts.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later