WikiLambda
MediaWiki WikiLambda extension
Loading...
Searching...
No Matches
MediaWiki\Extension\WikiLambda\Validation\ZObjectStructureValidator Class Reference

Public Member Functions

 validate ( $input)
 

Static Public Member Functions

static createCanonicalValidator ( $type)
 Uses function-schemata SchemaFactory to create a canonical validator for a given type, and wraps the SchemaWrapper validate function with other utilities to read and parse Opis errors and convert them to system ZErrors.
 
static createNormalValidator ( $type)
 Uses function-schemata SchemaFactory to create a normal validator for a given type, and wraps the SchemaWrapper validate function with other utilities to read and parse Opis errors and convert them to system ZErrors.
 

Member Function Documentation

◆ createCanonicalValidator()

static MediaWiki\Extension\WikiLambda\Validation\ZObjectStructureValidator::createCanonicalValidator ( $type)
static

Uses function-schemata SchemaFactory to create a canonical validator for a given type, and wraps the SchemaWrapper validate function with other utilities to read and parse Opis errors and convert them to system ZErrors.

Parameters
string$type
Returns
ZObjectStructureValidator
Exceptions
ZErrorException
+ Here is the call graph for this function:

◆ createNormalValidator()

static MediaWiki\Extension\WikiLambda\Validation\ZObjectStructureValidator::createNormalValidator ( $type)
static

Uses function-schemata SchemaFactory to create a normal validator for a given type, and wraps the SchemaWrapper validate function with other utilities to read and parse Opis errors and convert them to system ZErrors.

Parameters
string$type
Returns
ZObjectStructureValidator
Exceptions
ZErrorException
+ Here is the call graph for this function:

◆ validate()

MediaWiki\Extension\WikiLambda\Validation\ZObjectStructureValidator::validate ( $input)
Parameters
\stdClass$input
Returns
ValidationStatus

The documentation for this class was generated from the following file: