Configuration class for Roundcube
package |
Framework |
---|---|
subpackage |
Core |
__construct($env = '')
load()
todo |
Remove global $CONFIG |
---|---|
load_host_config()
load_from_file(string $file) : \booelan
string
Name of the config file to be loaded
\booelan
True on success, false on failure
resolve_paths($file, $use_env = true) : array
This also takes the 'env' property into account.
array
List of candidates in config dir path(s)
_is_absolute($path)
get(string $name, mixed $def = null) : mixed
string
Parameter name
mixed
Default value if not set
mixed
The requested config value
set(string $name, mixed $value)
string
Parameter name
mixed
Parameter value
merge(array $prefs)
array
Hash array with config props to merge over
set_user_prefs(array $prefs)
array
Hash array with user prefs
all() : array
array
Hash array containing all config properties
get_timezone() : float
deprecated | |
---|---|
float
Timezone offset (in hours)
get_crypto_key(string $key) : string
string
Crypto key name
string
Crypto key
header_delimiter() : string
string
The appropriate mail header delimiter
mail_domain(string $host, boolean $encode = true) : string
string
IMAP host
boolean
If true, domain name will be converted to IDN ASCII
string
Resolved SMTP host
get_error() : mixed
mixed
Error message on error, False if no errors
client_timezone()
fix_legacy_props(array $props) : array
array
Hash array with config props
array
Converted config props
timezone_name_from_abbr(float $offset) : string
float
Timezone offset (in hours)
string
Timezone abbreviation
DEFAULT_SKIN
env :
paths :
prop :
errors :
userprefs :
legacy_props : array
var | |
---|---|
array