Wikibase
MediaWiki Wikibase extension
|
Provides constraints for each entity type. More...
Public Member Functions | |
__construct (SiteLinkConflictLookup $siteLinkConflictLookup, TermValidatorFactory $termValidatorFactory, array $redirectBadgeItems) | |
getUpdateValidators ( $entityType) | |
Returns validators for hard global constraints that should be enforced on every update of an entity of the given type (including creation). | |
getCreationValidators ( $entityType, EntityId $entityId) | |
Returns validators for soft global constraints that should be enforced only upon creation of an entity of the given type. | |
Private Attributes | |
SiteLinkConflictLookup | $siteLinkConflictLookup |
TermValidatorFactory | $termValidatorFactory |
array | $redirectBadgeItems |
Provides constraints for each entity type.
Used to enforce global constraints upon save.
Wikibase\Repo\Validators\EntityConstraintProvider::__construct | ( | SiteLinkConflictLookup | $siteLinkConflictLookup, |
TermValidatorFactory | $termValidatorFactory, | ||
array | $redirectBadgeItems ) |
Wikibase\Repo\Validators\EntityConstraintProvider::getCreationValidators | ( | $entityType, | |
EntityId | $entityId ) |
Returns validators for soft global constraints that should be enforced only upon creation of an entity of the given type.
This will include at least the validators returned by getUpdateValidators() for that type.
Wikibase\Repo\Validators\EntityConstraintProvider::getUpdateValidators | ( | $entityType | ) |
Returns validators for hard global constraints that should be enforced on every update of an entity of the given type (including creation).
string | $entityType |
|
private |
|
private |
|
private |