Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
core_lib

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.
 
 wasm_send_cached (string $wasmpath, string $etag, string $filename='wasm.php')
 Send Web Assembly file content with as much caching as possible.
 
 wasm_send_uncached (string $wasm, string $filename='wasm.php')
 Send Web Assembly file without any caching.
 
 wasm_send_unmodified (int $lastmodified, string $etag)
 Send Web Assembly file not modified headers.
 
 wasm_write_cache_file_content (string $file, string $content)
 Create cache file for Web Assembly content.
 

Detailed Description

Function Documentation

◆ js_send_cached()

js_send_cached ( $jspath,
$etag,
$filename = 'javascript.php' )

Send javascript file content with as much caching as possible.

Parameters
string$jspath
string$etag
string$filename

◆ js_send_uncached()

js_send_uncached ( $js,
$filename = 'javascript.php' )

Send javascript without any caching.

Parameters
string$js
string$filename

◆ js_send_unmodified()

js_send_unmodified ( $lastmodified,
$etag )

Send file not modified headers.

Parameters
int$lastmodified
string$etag

◆ js_write_cache_file_content()

js_write_cache_file_content ( $file,
$content )

Create cache file for JS content.

Parameters
string$filefull file path to cache file
string$contentJS code

◆ wasm_send_cached()

wasm_send_cached ( string $wasmpath,
string $etag,
string $filename = 'wasm.php' )

Send Web Assembly file content with as much caching as possible.

Parameters
string$wasmpathPath to Web Assembly file
string$etagEtag
string$filenameFile name to be served

◆ wasm_send_uncached()

wasm_send_uncached ( string $wasm,
string $filename = 'wasm.php' )

Send Web Assembly file without any caching.

Parameters
string$wasmWeb Assembly file content
string$filenameFile name to be served

◆ wasm_send_unmodified()

wasm_send_unmodified ( int $lastmodified,
string $etag )

Send Web Assembly file not modified headers.

Parameters
int$lastmodifiedLast modified timestamp
string$etagEtag

◆ wasm_write_cache_file_content()

wasm_write_cache_file_content ( string $file,
string $content )

Create cache file for Web Assembly content.

Parameters
string$filefull file path to cache file
string$contentWeb Assembly content