|
Wikibase
MediaWiki Wikibase extension
|
Defines validators for the basic well known data types supported by Wikibase. More...
Collaboration diagram for Wikibase\Repo\ValidatorBuilders:Public Member Functions | |
| __construct (EntityLookup $lookup, EntityIdParser $idParser, array $urlSchemes, string $itemVocabularyBaseUri, ContentLanguages $contentLanguages, CachingCommonsMediaFileNameLookup $cachingCommonsMediaFileNameLookup, MediaWikiPageNameNormalizer $mediaWikiPageNameNormalizer, string $geoShapeStorageApiUrl, string $tabularDataStorageApiUrl) | |
| buildItemValidators () | |
| buildPropertyValidators () | |
| buildEntityValidators () | |
| getEntityValidators (?string $entityType=null) | |
| buildMediaValidators (string $checkExistence='checkExistence') | |
| buildGeoShapeValidators (string $checkExistence='checkExistence') | |
| buildTabularDataValidators (string $checkExistence='checkExistence') | |
| buildStringValidators (int $maxLength=400) | |
| buildMonolingualTextValidators (int $maxLength=400) | |
| buildTimeValidators () | |
| buildCoordinateValidators () | |
| buildUrlValidators (int $maxLength=500) | |
| buildQuantityValidators () | |
Private Member Functions | |
| getCommonStringValidators (int $maxLength=400) | |
| getUrlValidators (array $urlSchemes, int $maxLength) | |
| getEntityUriValidator (string $prefix, int $maxLength, ?string $entityType=null) | |
Private Attributes | |
| EntityLookup | $entityLookup |
| EntityIdParser | $entityIdParser |
| array | $urlSchemes |
| string | $itemVocabularyBaseUri |
| string | $wikidataBaseUri = 'http://www.wikidata.org/entity/' |
| ContentLanguages | $contentLanguages |
| CachingCommonsMediaFileNameLookup | $mediaFileNameLookup |
| MediaWikiPageNameNormalizer | $mediaWikiPageNameNormalizer |
| string | $geoShapeStorageApiUrl |
| string | $tabularDataStorageApiUrl |
Defines validators for the basic well known data types supported by Wikibase.
| Wikibase\Repo\ValidatorBuilders::__construct | ( | EntityLookup | $lookup, |
| EntityIdParser | $idParser, | ||
| array | $urlSchemes, | ||
| string | $itemVocabularyBaseUri, | ||
| ContentLanguages | $contentLanguages, | ||
| CachingCommonsMediaFileNameLookup | $cachingCommonsMediaFileNameLookup, | ||
| MediaWikiPageNameNormalizer | $mediaWikiPageNameNormalizer, | ||
| string | $geoShapeStorageApiUrl, | ||
| string | $tabularDataStorageApiUrl ) |
| EntityLookup | $lookup | |
| EntityIdParser | $idParser | |
| string[] | $urlSchemes | |
| string | $itemVocabularyBaseUri | The base URI for vocabulary concepts. |
| ContentLanguages | $contentLanguages | |
| CachingCommonsMediaFileNameLookup | $cachingCommonsMediaFileNameLookup | |
| MediaWikiPageNameNormalizer | $mediaWikiPageNameNormalizer | |
| string | $geoShapeStorageApiUrl | |
| string | $tabularDataStorageApiUrl |
| Wikibase\Repo\ValidatorBuilders::buildCoordinateValidators | ( | ) |
| Wikibase\Repo\ValidatorBuilders::buildEntityValidators | ( | ) |
| Wikibase\Repo\ValidatorBuilders::buildGeoShapeValidators | ( | string | $checkExistence = 'checkExistence' | ) |
| string | $checkExistence | Either 'checkExistence' or 'doNotCheckExistence' |
| Wikibase\Repo\ValidatorBuilders::buildItemValidators | ( | ) |
| Wikibase\Repo\ValidatorBuilders::buildMediaValidators | ( | string | $checkExistence = 'checkExistence' | ) |
| string | $checkExistence | Either 'checkExistence' or 'doNotCheckExistence' |
| Wikibase\Repo\ValidatorBuilders::buildMonolingualTextValidators | ( | int | $maxLength = 400 | ) |
| int | $maxLength | Defaults to 400 characters. This was an arbitrary decision and simply copied the default of the CommonStringValidators |
| Wikibase\Repo\ValidatorBuilders::buildPropertyValidators | ( | ) |
| Wikibase\Repo\ValidatorBuilders::buildQuantityValidators | ( | ) |
| Wikibase\Repo\ValidatorBuilders::buildStringValidators | ( | int | $maxLength = 400 | ) |
| int | $maxLength |
| Wikibase\Repo\ValidatorBuilders::buildTabularDataValidators | ( | string | $checkExistence = 'checkExistence' | ) |
| string | $checkExistence | Either 'checkExistence' or 'doNotCheckExistence' |
| Wikibase\Repo\ValidatorBuilders::buildTimeValidators | ( | ) |
| Wikibase\Repo\ValidatorBuilders::buildUrlValidators | ( | int | $maxLength = 500 | ) |
| int | $maxLength |
|
private |
| int | $maxLength | Defaults to 400 characters. This was an arbitrary decision when it turned out that 255 was to short for descriptions. |
|
private |
| Wikibase\Repo\ValidatorBuilders::getEntityValidators | ( | ?string | $entityType = null | ) |
| string | null | $entityType |
|
private |
| string[] | $urlSchemes | List of URL schemes, e.g. 'http' |
| int | $maxLength | Maximum length in bytes; compare https://stackoverflow.com/a/417184 |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |