Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\RestApi\Application\Validation\SitelinkValidator Interface Reference
+ Inheritance diagram for Wikibase\Repo\RestApi\Application\Validation\SitelinkValidator:

Public Member Functions

 validate (?string $itemId, string $siteId, array $sitelink, string $basePath='')
 
 getValidatedSitelink ()
 

Public Attributes

const CODE_TITLE_MISSING = 'sitelink-validator-code-title-missing'
 
const CODE_EMPTY_TITLE = 'sitelink-validator-code-empty-title'
 
const CODE_INVALID_TITLE = 'sitelink-validator-code-invalid-title'
 
const CODE_INVALID_FIELD_TYPE = 'sitelink-validator-code-invalid-field-type'
 
const CODE_INVALID_BADGE = 'sitelink-validator-code-invalid-badge'
 
const CODE_BADGE_NOT_ALLOWED = 'sitelink-validator-code-badge-not-allowed'
 
const CODE_TITLE_NOT_FOUND = 'sitelink-validator-code-title-not-found'
 
const CODE_SITELINK_CONFLICT = 'sitelink-validator-code-sitelink-conflict'
 
const CONTEXT_CONFLICTING_ITEM_ID = 'sitelink-validator-context-conflicting-item-id'
 
const CONTEXT_SITE_ID = 'sitelink-validator-context-site-id'
 
const CONTEXT_PATH = 'sitelink-validator-context-path'
 
const CONTEXT_VALUE = 'sitelink-validator-context-value'
 

Detailed Description

Member Function Documentation

◆ getValidatedSitelink()

Wikibase\Repo\RestApi\Application\Validation\SitelinkValidator::getValidatedSitelink ( )

◆ validate()

Wikibase\Repo\RestApi\Application\Validation\SitelinkValidator::validate ( ?string $itemId,
string $siteId,
array $sitelink,
string $basePath = '' )
Parameters
string | null$itemId- null if validating a new item

Implemented in Wikibase\Repo\RestApi\Infrastructure\SiteLinkLookupSitelinkValidator.

Member Data Documentation

◆ CODE_BADGE_NOT_ALLOWED

const Wikibase\Repo\RestApi\Application\Validation\SitelinkValidator::CODE_BADGE_NOT_ALLOWED = 'sitelink-validator-code-badge-not-allowed'

◆ CODE_EMPTY_TITLE

const Wikibase\Repo\RestApi\Application\Validation\SitelinkValidator::CODE_EMPTY_TITLE = 'sitelink-validator-code-empty-title'

◆ CODE_INVALID_BADGE

const Wikibase\Repo\RestApi\Application\Validation\SitelinkValidator::CODE_INVALID_BADGE = 'sitelink-validator-code-invalid-badge'

◆ CODE_INVALID_FIELD_TYPE

const Wikibase\Repo\RestApi\Application\Validation\SitelinkValidator::CODE_INVALID_FIELD_TYPE = 'sitelink-validator-code-invalid-field-type'

◆ CODE_INVALID_TITLE

const Wikibase\Repo\RestApi\Application\Validation\SitelinkValidator::CODE_INVALID_TITLE = 'sitelink-validator-code-invalid-title'

◆ CODE_SITELINK_CONFLICT

const Wikibase\Repo\RestApi\Application\Validation\SitelinkValidator::CODE_SITELINK_CONFLICT = 'sitelink-validator-code-sitelink-conflict'

◆ CODE_TITLE_MISSING

const Wikibase\Repo\RestApi\Application\Validation\SitelinkValidator::CODE_TITLE_MISSING = 'sitelink-validator-code-title-missing'

◆ CODE_TITLE_NOT_FOUND

const Wikibase\Repo\RestApi\Application\Validation\SitelinkValidator::CODE_TITLE_NOT_FOUND = 'sitelink-validator-code-title-not-found'

◆ CONTEXT_CONFLICTING_ITEM_ID

const Wikibase\Repo\RestApi\Application\Validation\SitelinkValidator::CONTEXT_CONFLICTING_ITEM_ID = 'sitelink-validator-context-conflicting-item-id'

◆ CONTEXT_PATH

const Wikibase\Repo\RestApi\Application\Validation\SitelinkValidator::CONTEXT_PATH = 'sitelink-validator-context-path'

◆ CONTEXT_SITE_ID

const Wikibase\Repo\RestApi\Application\Validation\SitelinkValidator::CONTEXT_SITE_ID = 'sitelink-validator-context-site-id'

◆ CONTEXT_VALUE

const Wikibase\Repo\RestApi\Application\Validation\SitelinkValidator::CONTEXT_VALUE = 'sitelink-validator-context-value'

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