config_support extends facade
Facade for local_middag\framework\support\moodle\config_support.
Tags
Table of Contents
Methods
- get() : mixed
- get_config() : mixed
- get_facade_accessor() : string
- Return the service accessor key for this facade.
- get_global() : mixed
- get_site() : stdClass
- get_site_id() : int
- set_config() : bool
- unset_config() : bool
Methods
get()
public
static get([string|null $name = = 'null' ]) : mixed
Parameters
- $name : string|null = = 'null'
get_config()
public
static get_config(string $plugin[, string|null $name = = 'null' ]) : mixed
Parameters
- $plugin : string
- $name : string|null = = 'null'
get_facade_accessor()
Return the service accessor key for this facade.
public
static get_facade_accessor() : string
Return values
stringget_global()
public
static get_global(string $name) : mixed
Parameters
- $name : string
get_site()
public
static get_site() : stdClass
Return values
stdClassget_site_id()
public
static get_site_id() : int
Return values
intset_config()
public
static set_config(string $name, mixed $value[, string $plugin = = '\\local_middag\\framework\\support\\moodle\\config_support::PLUGIN_NAME' ]) : bool
Parameters
- $name : string
- $value : mixed
- $plugin : string = = '\\local_middag\\framework\\support\\moodle\\config_support::PLUGIN_NAME'
Return values
boolunset_config()
public
static unset_config(string $name[, string $plugin = = '\\local_middag\\framework\\support\\moodle\\config_support::PLUGIN_NAME' ]) : bool
Parameters
- $name : string
- $plugin : string = = '\\local_middag\\framework\\support\\moodle\\config_support::PLUGIN_NAME'