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

Public Member Functions

 __construct (Title $title, EditInfoProvider $editInfoProvider, PageInfoProvider $pageInfoProvider)
 
 process ()
 
- Public Member Functions inherited from SMW\MediaWiki\Hooks\HookHandler
 __construct ()
 
 setOptions (array $options)
 
 getOption ( $key, $default=null)
 
 isFlagSet ( $key, $flag)
 

Additional Inherited Members

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

Detailed Description

Hook: NewRevisionFromEditComplete called when a revision was inserted due to an edit

Fetch additional information that is related to the saving that has just happened, e.g. regarding the last edit date. In runs where this hook is not triggered, the last DB entry (of MW) will be used to fill such properties.

Called from LocalFile.php, SpecialImport.php, Article.php, Title.php

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

GNU GPL v2+

Since
1.9
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\MediaWiki\Hooks\NewRevisionFromEditComplete::__construct ( Title  $title,
EditInfoProvider  $editInfoProvider,
PageInfoProvider  $pageInfoProvider 
)
Since
1.9
Parameters
Title$title
EditInfoProvider$editInfoProvider
PageInfoProvider$pageInfoProvider

Member Function Documentation

◆ process()

SMW\MediaWiki\Hooks\NewRevisionFromEditComplete::process ( )
Since
1.9
Returns
boolean

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

About | General disclaimer | Privacy policy