Function __global->_get_web_resources_env
Definitions
sources/web_resources.php
- Get the environment needed for web resources.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $_seed | ?ID_TEXT | No | No | Null | N/A | N/A | The seed colour (blank: none) (null: from what is cached) |
| $_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) |
Returns
- A tuple: whether we are minify, if HTTPS is on, if mobile mode is on, seed
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get the environment needed for web resources.
*
* @param ?ID_TEXT $_seed The seed colour (blank: none) (null: from what is cached)
* @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)
* @return array A tuple: whether we are minify, if HTTPS is on, if mobile mode is on, seed
*/
function _get_web_resources_env(?string $_seed = null, ?bool $_minify = null, ?bool $_https = null, ?bool $_mobile = null) : array
* Get the environment needed for web resources.
*
* @param ?ID_TEXT $_seed The seed colour (blank: none) (null: from what is cached)
* @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)
* @return array A tuple: whether we are minify, if HTTPS is on, if mobile mode is on, seed
*/
function _get_web_resources_env(?string $_seed = null, ?bool $_minify = null, ?bool $_https = null, ?bool $_mobile = null) : array

