Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\RestApi\Infrastructure\SiteLinkConflictLookupSitelinkValidator Class Reference
+ Inheritance diagram for Wikibase\Repo\RestApi\Infrastructure\SiteLinkConflictLookupSitelinkValidator:
+ Collaboration diagram for Wikibase\Repo\RestApi\Infrastructure\SiteLinkConflictLookupSitelinkValidator:

Public Member Functions

 __construct (SitelinkDeserializer $sitelinkDeserializer, SiteLinkConflictLookup $siteLinkConflictLookup)
 
 validate (string $itemId, string $siteId, array $sitelink)
 
 getValidatedSitelink ()
 

Private Member Functions

 checkSitelinkConflict (string $itemId, string $siteId, array $sitelink)
 

Private Attributes

SitelinkDeserializer $sitelinkDeserializer
 
SiteLinkConflictLookup $siteLinkConflictLookup
 
SiteLink $deserializedSitelink = null
 

Additional Inherited Members

- Public Attributes inherited from Wikibase\Repo\RestApi\Application\Validation\SitelinkValidator
const CODE_TITLE_MISSING = 'title-missing'
 
const CODE_EMPTY_TITLE = 'empty-title'
 
const CODE_INVALID_TITLE = 'invalid-title'
 
const CODE_INVALID_TITLE_TYPE = 'invalid-title-type'
 
const CODE_INVALID_BADGES_TYPE = 'invalid-badges-type'
 
const CODE_INVALID_BADGE = 'invalid-badge'
 
const CODE_BADGE_NOT_ALLOWED = 'badge-not-allowed'
 
const CODE_TITLE_NOT_FOUND = 'title-not-found'
 
const CODE_SITELINK_CONFLICT = 'sitelink-conflict'
 
const CONTEXT_BADGE = 'badge'
 
const CONTEXT_CONFLICT_ITEM_ID = 'conflict_item_id'
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\Infrastructure\SiteLinkConflictLookupSitelinkValidator::__construct ( SitelinkDeserializer $sitelinkDeserializer,
SiteLinkConflictLookup $siteLinkConflictLookup )

Member Function Documentation

◆ checkSitelinkConflict()

Wikibase\Repo\RestApi\Infrastructure\SiteLinkConflictLookupSitelinkValidator::checkSitelinkConflict ( string $itemId,
string $siteId,
array $sitelink )
private

◆ getValidatedSitelink()

Wikibase\Repo\RestApi\Infrastructure\SiteLinkConflictLookupSitelinkValidator::getValidatedSitelink ( )

◆ validate()

Wikibase\Repo\RestApi\Infrastructure\SiteLinkConflictLookupSitelinkValidator::validate ( string $itemId,
string $siteId,
array $sitelink )

Member Data Documentation

◆ $deserializedSitelink

SiteLink Wikibase\Repo\RestApi\Infrastructure\SiteLinkConflictLookupSitelinkValidator::$deserializedSitelink = null
private

◆ $siteLinkConflictLookup

SiteLinkConflictLookup Wikibase\Repo\RestApi\Infrastructure\SiteLinkConflictLookupSitelinkValidator::$siteLinkConflictLookup
private

◆ $sitelinkDeserializer

SitelinkDeserializer Wikibase\Repo\RestApi\Infrastructure\SiteLinkConflictLookupSitelinkValidator::$sitelinkDeserializer
private

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