Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\RestApi\Application\Validation\ItemValidator Class Reference
+ Collaboration diagram for Wikibase\Repo\RestApi\Application\Validation\ItemValidator:

Public Member Functions

 __construct (LabelsSyntaxValidator $labelsSyntaxValidator, ItemLabelsContentsValidator $labelsContentsValidator, DescriptionsSyntaxValidator $descriptionsSyntaxValidator, ItemDescriptionsContentsValidator $descriptionsContentsValidator, AliasesValidator $itemAliasesValidator, StatementsValidator $itemStatementsValidator, SitelinksValidator $sitelinksValidator)
 
 validate (array $serialization)
 
 getValidatedItem ()
 

Public Attributes

const CODE_INVALID_FIELD = 'item-validator-code-invalid-item-field'
 
const CODE_UNEXPECTED_FIELD = 'item-validator-code-item-data-unexpected-field'
 
const CONTEXT_FIELD = 'item-validator-context-field'
 
const CONTEXT_VALUE = 'item-validator-context-value'
 
const CONTEXT_LABELS = 'item-validator-context-labels'
 
const CONTEXT_DESCRIPTIONS = 'item-validator-context-descriptions'
 

Private Member Functions

 validateLabelsAndDescriptions (array $itemSerialization)
 

Private Attributes

Item $deserializedItem = null
 
LabelsSyntaxValidator $labelsSyntaxValidator
 
ItemLabelsContentsValidator $labelsContentsValidator
 
DescriptionsSyntaxValidator $descriptionsSyntaxValidator
 
ItemDescriptionsContentsValidator $descriptionsContentsValidator
 
AliasesValidator $itemAliasesValidator
 
StatementsValidator $itemStatementsValidator
 
SitelinksValidator $sitelinksValidator
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\Application\Validation\ItemValidator::__construct ( LabelsSyntaxValidator $labelsSyntaxValidator,
ItemLabelsContentsValidator $labelsContentsValidator,
DescriptionsSyntaxValidator $descriptionsSyntaxValidator,
ItemDescriptionsContentsValidator $descriptionsContentsValidator,
AliasesValidator $itemAliasesValidator,
StatementsValidator $itemStatementsValidator,
SitelinksValidator $sitelinksValidator )

Member Function Documentation

◆ getValidatedItem()

Wikibase\Repo\RestApi\Application\Validation\ItemValidator::getValidatedItem ( )

◆ validate()

Wikibase\Repo\RestApi\Application\Validation\ItemValidator::validate ( array $serialization)

◆ validateLabelsAndDescriptions()

Wikibase\Repo\RestApi\Application\Validation\ItemValidator::validateLabelsAndDescriptions ( array $itemSerialization)
private

Member Data Documentation

◆ $descriptionsContentsValidator

ItemDescriptionsContentsValidator Wikibase\Repo\RestApi\Application\Validation\ItemValidator::$descriptionsContentsValidator
private

◆ $descriptionsSyntaxValidator

DescriptionsSyntaxValidator Wikibase\Repo\RestApi\Application\Validation\ItemValidator::$descriptionsSyntaxValidator
private

◆ $deserializedItem

Item Wikibase\Repo\RestApi\Application\Validation\ItemValidator::$deserializedItem = null
private

◆ $itemAliasesValidator

AliasesValidator Wikibase\Repo\RestApi\Application\Validation\ItemValidator::$itemAliasesValidator
private

◆ $itemStatementsValidator

StatementsValidator Wikibase\Repo\RestApi\Application\Validation\ItemValidator::$itemStatementsValidator
private

◆ $labelsContentsValidator

ItemLabelsContentsValidator Wikibase\Repo\RestApi\Application\Validation\ItemValidator::$labelsContentsValidator
private

◆ $labelsSyntaxValidator

LabelsSyntaxValidator Wikibase\Repo\RestApi\Application\Validation\ItemValidator::$labelsSyntaxValidator
private

◆ $sitelinksValidator

SitelinksValidator Wikibase\Repo\RestApi\Application\Validation\ItemValidator::$sitelinksValidator
private

◆ CODE_INVALID_FIELD

const Wikibase\Repo\RestApi\Application\Validation\ItemValidator::CODE_INVALID_FIELD = 'item-validator-code-invalid-item-field'

◆ CODE_UNEXPECTED_FIELD

const Wikibase\Repo\RestApi\Application\Validation\ItemValidator::CODE_UNEXPECTED_FIELD = 'item-validator-code-item-data-unexpected-field'

◆ CONTEXT_DESCRIPTIONS

const Wikibase\Repo\RestApi\Application\Validation\ItemValidator::CONTEXT_DESCRIPTIONS = 'item-validator-context-descriptions'

◆ CONTEXT_FIELD

const Wikibase\Repo\RestApi\Application\Validation\ItemValidator::CONTEXT_FIELD = 'item-validator-context-field'

◆ CONTEXT_LABELS

const Wikibase\Repo\RestApi\Application\Validation\ItemValidator::CONTEXT_LABELS = 'item-validator-context-labels'

◆ CONTEXT_VALUE

const Wikibase\Repo\RestApi\Application\Validation\ItemValidator::CONTEXT_VALUE = 'item-validator-context-value'

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