Semantic MediaWiki and related extensions
Public Member Functions | Public Attributes | List of all members
SMW\MediaWiki\Hooks\ArticleProtectComplete Class Reference
Collaboration diagram for SMW\MediaWiki\Hooks\ArticleProtectComplete:
Collaboration graph
[legend]

Public Member Functions

 __construct (Title $title, EditInfoProvider $editInfoProvider)
 
 setEditProtectionRight ($editProtectionRight)
 
 process ($protections, $reason)
 
- Public Member Functions inherited from SMW\MediaWiki\Hooks\HookHandler
 __construct ($applicationFactory=null)
 
 setLogger (LoggerInterface $logger)
 

Public Attributes

const RESTRICTED_UPDATE = 'articleprotectcomplete.restricted.update'
 

Additional Inherited Members

- Protected Member Functions inherited from SMW\MediaWiki\Hooks\HookHandler
 log ($message, $context=array())
 
- Protected Attributes inherited from SMW\MediaWiki\Hooks\HookHandler
 $dataItemFactory
 
 $dataValueFactory
 
 $logger
 

Detailed Description

Occurs after the protect article request has been processed

See also
https://www.mediawiki.org/wiki/Manual:Hooks/ArticleProtectComplete

GNU GPL v2+

Since
2.5
Author
mwjames

Constructor & Destructor Documentation

SMW\MediaWiki\Hooks\ArticleProtectComplete::__construct ( Title  $title,
EditInfoProvider  $editInfoProvider 
)
Since
2.5
Parameters
Title$title
EditInfoProvider$editInfoProvider

Member Function Documentation

SMW\MediaWiki\Hooks\ArticleProtectComplete::process (   $protections,
  $reason 
)
Since
2.5
Parameters
array$protections
string$reason
SMW\MediaWiki\Hooks\ArticleProtectComplete::setEditProtectionRight (   $editProtectionRight)
Since
2.5
Parameters
string | boolean$editProtectionRight

Member Data Documentation

const SMW\MediaWiki\Hooks\ArticleProtectComplete::RESTRICTED_UPDATE = 'articleprotectcomplete.restricted.update'

Whether the update should be restricted or not. Which means that when no other change is required then categorize the update as restricted to avoid unnecessary cascading updates.


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