SiteOptions final class
Minn\Runtime\SiteOptions · public/minn/src/Minn/Runtime/SiteOptions.php · 76 lines
The network's options, as a single site keeps them: options stored not to autoload, with the network layer's own hooks around them, told the network asked for (the current one, 1, when none is).
Public
| static | get(mixed $option, mixed $default = false, mixed $networkId = NULL): mixed# | A network option (get_network_option, get_site_option): pre_site_option_{name} and pre_site_option may answer first, default_site_option_{name} sets its default, site_option_{name} has the last word. |
| static | add(mixed $option, mixed $value, mixed $networkId = NULL): bool# | A new network option (add_network_option, add_site_option), stored not to autoload. |
| static | update(mixed $option, mixed $value, mixed $networkId = NULL): bool# | A network option changed (update_network_option, update_site_option); one not there yet is added. |
| static | delete(mixed $option, mixed $networkId = NULL): bool# | A network option removed (delete_network_option, delete_site_option). |
Internals 1
Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.
| private | network(mixed $networkId): int# | The network asked for, else the current one: Minn is one network, 1. |
Nothing matches.