Semantic MediaWiki and related extensions
|
Public Member Functions | |
__construct (Store $store, EntityCache $entityCache, PermissionManager $permissionManager) | |
registerPropertyChangeListener (PropertyChangeListener $propertyChangeListener) | |
invalidateCache (DIProperty $property, ChangeRecord $changeRecord) | |
setEditProtectionRight ( $editProtectionRight) | |
getEditProtectionRight () | |
setCreateProtectionRight ( $createProtectionRight) | |
getCreateProtectionRight () | |
setChangePropagationProtection ( $changePropagationProtection) | |
setImportPerformers (array $importPerformers) | |
hasEditProtectionOnNamespace (Title $title) | |
isClassifiedAsImportPerformerProtected (Title $title, User $user) | |
hasChangePropagationProtection (Title $title) | |
hasProtection (Title $title) | |
hasCreateProtection (Title $title=null) | |
hasEditProtection (Title $title=null) | |
Handles protection validation.
GNU GPL v2+
SMW\Protection\ProtectionValidator::__construct | ( | Store | $store, |
EntityCache | $entityCache, | ||
PermissionManager | $permissionManager | ||
) |
Store | $store | |
EntityCache | $entityCache | |
PermissionManager | $permissionManager |
SMW\Protection\ProtectionValidator::getCreateProtectionRight | ( | ) |
SMW\Protection\ProtectionValidator::getEditProtectionRight | ( | ) |
SMW\Protection\ProtectionValidator::hasChangePropagationProtection | ( | Title | $title | ) |
Title | $title |
SMW\Protection\ProtectionValidator::hasCreateProtection | ( | Title | $title = null | ) |
Title | $title |
SMW\Protection\ProtectionValidator::hasEditProtection | ( | Title | $title = null | ) |
PermissionManager
.Title | $title |
SMW\Protection\ProtectionValidator::hasEditProtectionOnNamespace | ( | Title | $title | ) |
Title | $title |
SMW\Protection\ProtectionValidator::hasProtection | ( | Title | $title | ) |
Title | $title |
SMW\Protection\ProtectionValidator::invalidateCache | ( | DIProperty | $property, |
ChangeRecord | $changeRecord | ||
) |
DIProperty | $property | |
ChangeRecord | $changeRecord |
SMW\Protection\ProtectionValidator::isClassifiedAsImportPerformerProtected | ( | Title | $title, |
User | $user | ||
) |
If a page was imported by a dedicated import_performer
and the performer is the creator of the page, yet the current user that is trying to edit the page isn't matched to the creator/import performer then the page is classified as to be protected to make sure only an import performer can alter the content without having to fear that other users may have changed the content hereby may loose information when replacing the content during the next import.
Title | $title | |
User | $user |
SMW\Protection\ProtectionValidator::registerPropertyChangeListener | ( | PropertyChangeListener | $propertyChangeListener | ) |
PropertyChangeListener | $propertyChangeListener |
SMW\Protection\ProtectionValidator::setChangePropagationProtection | ( | $changePropagationProtection | ) |
boolean | $changePropagationProtection |
SMW\Protection\ProtectionValidator::setCreateProtectionRight | ( | $createProtectionRight | ) |
string | boolean | $createProtectionRight |
SMW\Protection\ProtectionValidator::setEditProtectionRight | ( | $editProtectionRight | ) |
string | boolean | $editProtectionRight |
SMW\Protection\ProtectionValidator::setImportPerformers | ( | array | $importPerformers | ) |
array | $importPerformers |