Function __global->_javascript_tempcode
Definitions
sources/web_resources.php
- Get Tempcode to tie in (to the HTML, in <head>) for an individual JavaScript file.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $j | ID_TEXT | No | No | required parameter | N/A | N/A | The JavaScript file required |
| &$js | Tempcode | Yes | No | required parameter | N/A | N/A | Tempcode object (will be written into if appropriate) |
| $_minify | ?boolean | No | No | Null | N/A | N/A | Whether minifying (null: from what is cached) |
| $_https | ?boolean | No | No | Null | N/A | N/A | Whether doing HTTPS (null: from what is cached) |
| $_mobile | ?boolean | No | No | Null | N/A | N/A | Whether operating in mobile mode (null: from what is cached) |
| $do_enforce | ?boolean | No | No | True | N/A | N/A | Whether to generate the cached file if not already cached (null: from what is cached) |
Preview
Code (PHP)
/**
* Get Tempcode to tie in (to the HTML, in <head>) for an individual JavaScript file.
*
* @param ID_TEXT $j The JavaScript file required
* @param Tempcode $js Tempcode object (will be written into if appropriate)
* @param ?boolean $_minify Whether minifying (null: from what is cached)
* @param ?boolean $_https Whether doing HTTPS (null: from what is cached)
* @param ?boolean $_mobile Whether operating in mobile mode (null: from what is cached)
* @param ?boolean $do_enforce Whether to generate the cached file if not already cached (null: from what is cached)
*/
function _javascript_tempcode(string $j, object &$js, ?bool $_minify = null, ?bool $_https = null, ?bool $_mobile = null, ?bool $do_enforce = true)
* Get Tempcode to tie in (to the HTML, in <head>) for an individual JavaScript file.
*
* @param ID_TEXT $j The JavaScript file required
* @param Tempcode $js Tempcode object (will be written into if appropriate)
* @param ?boolean $_minify Whether minifying (null: from what is cached)
* @param ?boolean $_https Whether doing HTTPS (null: from what is cached)
* @param ?boolean $_mobile Whether operating in mobile mode (null: from what is cached)
* @param ?boolean $do_enforce Whether to generate the cached file if not already cached (null: from what is cached)
*/
function _javascript_tempcode(string $j, object &$js, ?bool $_minify = null, ?bool $_https = null, ?bool $_mobile = null, ?bool $do_enforce = true)

