Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\RestApi\Application\UseCases\PatchProperty\PatchedPropertyValidator Class Reference
+ Collaboration diagram for Wikibase\Repo\RestApi\Application\UseCases\PatchProperty\PatchedPropertyValidator:

Public Member Functions

 __construct (LabelsSyntaxValidator $labelsSyntaxValidator, PropertyLabelsContentsValidator $labelsContentsValidator, DescriptionsSyntaxValidator $descriptionsSyntaxValidator, PropertyDescriptionsContentsValidator $descriptionsContentsValidator, AliasesValidator $aliasesValidator, StatementsValidator $statementsValidator)
 
 validateAndDeserialize (array $serialization, Property $originalProperty, array $originalPropertySerialization)
 

Private Member Functions

 assertNoMissingMandatoryFields (array $serialization)
 
 assertValidFields (array $serialization)
 
 assertNoIllegalModification (array $serialization, Property $originalProperty)
 
 assertValidLabelsAndDescriptions (Property $property, array $serialization)
 
 getModifiedLanguages (TermList $original, TermList $modified)
 
 handleLanguageCodeValidationError (ValidationError $validationError)
 
 handleLabelsValidationError (ValidationError $validationError)
 
 handleDescriptionsValidationError (ValidationError $validationError)
 
 assertValidAliases (array $aliasesSerialization)
 
 assertValidStatements (array $statementsSerialization, Property $originalProperty, array $originalStatementsSerialization)
 
 getStatementIdPath (array $serialization, string $id)
 

Private Attributes

LabelsSyntaxValidator $labelsSyntaxValidator
 
PropertyLabelsContentsValidator $labelsContentsValidator
 
DescriptionsSyntaxValidator $descriptionsSyntaxValidator
 
PropertyDescriptionsContentsValidator $descriptionsContentsValidator
 
AliasesValidator $aliasesValidator
 
StatementsValidator $statementsValidator
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\Application\UseCases\PatchProperty\PatchedPropertyValidator::__construct ( LabelsSyntaxValidator $labelsSyntaxValidator,
PropertyLabelsContentsValidator $labelsContentsValidator,
DescriptionsSyntaxValidator $descriptionsSyntaxValidator,
PropertyDescriptionsContentsValidator $descriptionsContentsValidator,
AliasesValidator $aliasesValidator,
StatementsValidator $statementsValidator )

Member Function Documentation

◆ assertNoIllegalModification()

Wikibase\Repo\RestApi\Application\UseCases\PatchProperty\PatchedPropertyValidator::assertNoIllegalModification ( array $serialization,
Property $originalProperty )
private

◆ assertNoMissingMandatoryFields()

Wikibase\Repo\RestApi\Application\UseCases\PatchProperty\PatchedPropertyValidator::assertNoMissingMandatoryFields ( array $serialization)
private

◆ assertValidAliases()

Wikibase\Repo\RestApi\Application\UseCases\PatchProperty\PatchedPropertyValidator::assertValidAliases ( array $aliasesSerialization)
private

◆ assertValidFields()

Wikibase\Repo\RestApi\Application\UseCases\PatchProperty\PatchedPropertyValidator::assertValidFields ( array $serialization)
private

◆ assertValidLabelsAndDescriptions()

Wikibase\Repo\RestApi\Application\UseCases\PatchProperty\PatchedPropertyValidator::assertValidLabelsAndDescriptions ( Property $property,
array $serialization )
private

◆ assertValidStatements()

Wikibase\Repo\RestApi\Application\UseCases\PatchProperty\PatchedPropertyValidator::assertValidStatements ( array $statementsSerialization,
Property $originalProperty,
array $originalStatementsSerialization )
private

◆ getModifiedLanguages()

Wikibase\Repo\RestApi\Application\UseCases\PatchProperty\PatchedPropertyValidator::getModifiedLanguages ( TermList $original,
TermList $modified )
private

◆ getStatementIdPath()

Wikibase\Repo\RestApi\Application\UseCases\PatchProperty\PatchedPropertyValidator::getStatementIdPath ( array $serialization,
string $id )
private

◆ handleDescriptionsValidationError()

Wikibase\Repo\RestApi\Application\UseCases\PatchProperty\PatchedPropertyValidator::handleDescriptionsValidationError ( ValidationError $validationError)
private

◆ handleLabelsValidationError()

Wikibase\Repo\RestApi\Application\UseCases\PatchProperty\PatchedPropertyValidator::handleLabelsValidationError ( ValidationError $validationError)
private

◆ handleLanguageCodeValidationError()

Wikibase\Repo\RestApi\Application\UseCases\PatchProperty\PatchedPropertyValidator::handleLanguageCodeValidationError ( ValidationError $validationError)
private

◆ validateAndDeserialize()

Wikibase\Repo\RestApi\Application\UseCases\PatchProperty\PatchedPropertyValidator::validateAndDeserialize ( array $serialization,
Property $originalProperty,
array $originalPropertySerialization )
Exceptions
UseCaseError

Member Data Documentation

◆ $aliasesValidator

AliasesValidator Wikibase\Repo\RestApi\Application\UseCases\PatchProperty\PatchedPropertyValidator::$aliasesValidator
private

◆ $descriptionsContentsValidator

PropertyDescriptionsContentsValidator Wikibase\Repo\RestApi\Application\UseCases\PatchProperty\PatchedPropertyValidator::$descriptionsContentsValidator
private

◆ $descriptionsSyntaxValidator

DescriptionsSyntaxValidator Wikibase\Repo\RestApi\Application\UseCases\PatchProperty\PatchedPropertyValidator::$descriptionsSyntaxValidator
private

◆ $labelsContentsValidator

PropertyLabelsContentsValidator Wikibase\Repo\RestApi\Application\UseCases\PatchProperty\PatchedPropertyValidator::$labelsContentsValidator
private

◆ $labelsSyntaxValidator

LabelsSyntaxValidator Wikibase\Repo\RestApi\Application\UseCases\PatchProperty\PatchedPropertyValidator::$labelsSyntaxValidator
private

◆ $statementsValidator

StatementsValidator Wikibase\Repo\RestApi\Application\UseCases\PatchProperty\PatchedPropertyValidator::$statementsValidator
private

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