Semantic MediaWiki and related extensions
|
Public Member Functions | |
set ( $key, $value) | |
get ( $key) | |
safeGet ( $key, $default=false) | |
Public Member Functions inherited from SMW\Options | |
__construct (array $options=[]) | |
set ( $key, $value) | |
delete ( $key) | |
has ( $key) | |
is ( $key, $value) | |
get ( $key) | |
safeGet ( $key, $default=false) | |
dotGet ( $key, $default=false) | |
isFlagSet ( $key, $flag) | |
toArray () | |
getOptions () | |
filter (array $keys) | |
Static Public Member Functions | |
static | newFromGlobals () |
static | newFromArray (array $settings) |
static | clear () |
Additional Inherited Members | |
Protected Attributes inherited from SMW\Options | |
$options = [] | |
Encapsulate Semantic MediaWiki settings to access values through a specified interface
GNU GPL v2+
|
static |
SMW\Settings::get | ( | $key | ) |
string | $key |
SettingNotFoundException |
|
static |
Factory method for immediate instantiation of a settings object for a given array
|
static |
Assemble individual SMW related settings into one accessible array for easy instantiation since we don't have unique way of accessing only SMW related settings ( e.g. $smwgSettings['...']) we need this method as short cut to invoke only smwg* related settings
IF YOU REMOVE SETTING(S) FROM THIS ARRAY DEFINTION, PLEASE ENSURE TO REGISTER THEM WITH THE ConfigLegacyTrait
.
SMW\Settings::safeGet | ( | $key, | |
$default = false |
|||
) |
string | $key | |
mixed | $default |
SMW\Settings::set | ( | $key, | |
$value | |||
) |