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

Public Member Functions

 __construct (Title $title, EditInfo $editInfo)
 
 process ( $protections, $reason)
 
- Public Member Functions inherited from SMW\MediaWiki\Hooks\HookHandler
 __construct ()
 
 setOptions (array $options)
 
 setOption ( $key, $value)
 
 getOption ( $key, $default=null)
 
 isFlagSet ( $key, $flag)
 

Public Attributes

const RESTRICTED_UPDATE = 'articleprotectcomplete.restricted.update'
 

Additional Inherited Members

- Protected Member Functions inherited from SMW\MediaWiki\Hooks\HookHandler
 log ( $message, $context=[])
 

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

◆ __construct()

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

Member Function Documentation

◆ process()

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

Member Data Documentation

◆ RESTRICTED_UPDATE

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:

About | General disclaimer | Privacy policy