MediaWiki REL1_30
|
Class responsible for validating Gadget definition contents. More...
Public Member Functions | |
validate (array $properties, $tolerateMissing=false) | |
Check the validity of the given properties array. | |
Static Public Member Functions | |
static | isArrayOrTrue ( $value) |
Static Protected Attributes | |
static | $propertyValidation |
Validation metadata. | |
Class responsible for validating Gadget definition contents.
Definition at line 8 of file GadgetDefinitionValidator.php.
|
static |
mixed | $value |
Definition at line 34 of file GadgetDefinitionValidator.php.
References $value.
GadgetDefinitionValidator::validate | ( | array | $properties, |
$tolerateMissing = false ) |
Check the validity of the given properties array.
array | $properties | Return value of FormatJson::decode( $blob, true ) |
bool | $tolerateMissing | If true, don't complain about missing keys |
Definition at line 44 of file GadgetDefinitionValidator.php.
References $property.
|
staticprotected |
Validation metadata.
'foo.bar.baz' => [ 'type check callback', 'type name' [, 'member type check callback', 'member type name'] ]
Definition at line 14 of file GadgetDefinitionValidator.php.