MediaWiki REL1_39
|
Constructs a settings array based on a PHP class by inspecting class members to construct a schema. More...
Public Member Functions | |
__construct (string $class, bool $includeDoc=false) | |
__toString () | |
Returns this file source as a string. | |
load () | |
Constructs a settings array based on a PHP class by inspecting class members to construct a schema.
The value of each constant must be an array structured like a JSON Schema. For convenience, type declarations support PHPDoc style types in addition to JSON types. To avoid confusion, use 'list' for sequential arrays and 'map' for associative arrays.
Dynamic default values can be declared using the 'dynamicDefault' key. The structure of the dynamic default declaration is an array with two keys:
The following shorthands can be used with dynamic default declarations:
Definition at line 37 of file ReflectionSchemaSource.php.
MediaWiki\Settings\Source\ReflectionSchemaSource::__construct | ( | string | $class, |
bool | $includeDoc = false ) |
string | $class | |
bool | $includeDoc |
Definition at line 55 of file ReflectionSchemaSource.php.
MediaWiki\Settings\Source\ReflectionSchemaSource::__toString | ( | ) |
Returns this file source as a string.
Definition at line 120 of file ReflectionSchemaSource.php.
MediaWiki\Settings\Source\ReflectionSchemaSource::load | ( | ) |
SettingsBuilderException |
Implements MediaWiki\Settings\Source\SettingsSource.
Definition at line 64 of file ReflectionSchemaSource.php.