Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\MediaWiki\Hooks\NewRevisionFromEditComplete Class Reference

Public Member Functions

 __construct ($wikiPage, $revision, $baseId, $user=null)
 
 process ()
 

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

SMW\MediaWiki\Hooks\NewRevisionFromEditComplete::__construct (   $wikiPage,
  $revision,
  $baseId,
  $user = null 
)
Since
1.9
Parameters
WikiPage$articlethe article edited
Revision$revthe new revision. Revision object
$baseIdthe revision ID this was based off, if any
User$userthe revision author. User object

Member Function Documentation

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

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