|
Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Files | |
| file | jslib.php |
| This file contains various javascript related functions, all functions here are self contained and can be used in ABORT_AFTER_CONFIG scripts. | |
Functions | |
| js_send_cached ($jspath, $etag, $filename='javascript.php') | |
| Send javascript file content with as much caching as possible. More... | |
| 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. More... | |
| js_send_unmodified ($lastmodified, $etag) | |
| Send file not modified headers. More... | |
| js_write_cache_file_content ($file, $content) | |
| Create cache file for JS content. More... | |
| js_send_cached | ( | $jspath, | |
| $etag, | |||
$filename = 'javascript.php' |
|||
| ) |
Send javascript file content with as much caching as possible.
| string | $jspath | |
| string | $etag | |
| string | $filename |
| js_send_uncached | ( | $js, | |
$filename = 'javascript.php' |
|||
| ) |
Send javascript without any caching.
| string | $js | |
| string | $filename |
| js_send_unmodified | ( | $lastmodified, | |
| $etag | |||
| ) |
Send file not modified headers.
| int | $lastmodified | |
| string | $etag |
| js_write_cache_file_content | ( | $file, | |
| $content | |||
| ) |
Create cache file for JS content.
| string | $file | full file path to cache file |
| string | $content | JS code |