Wikibase
MediaWiki Wikibase extension
|
Provides constraints for each entity type. More...
Public Member Functions | |
__construct (SiteLinkConflictLookup $siteLinkConflictLookup) | |
getUpdateValidators ( $entityType) | |
Returns validators for hard global constraints that should be enforced on every update of an entity of the given type (including creation). More... | |
getCreationValidators ( $entityType, EntityId $entityId) | |
Returns validators for soft global constraints that should be enforced only upon creation of an entity of the given type. More... | |
Private Attributes | |
$siteLinkConflictLookup | |
Provides constraints for each entity type.
Used to enforce global constraints upon save.
Wikibase\Repo\Validators\EntityConstraintProvider::__construct | ( | SiteLinkConflictLookup | $siteLinkConflictLookup | ) |
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 |