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 (EditInfo $editInfo, PageInfoProvider $pageInfoProvider, PropertyAnnotatorFactory $propertyAnnotatorFactory, SchemaFactory $schemaFactory)
 
 process (Title $title)
 

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 ( EditInfo  $editInfo,
PageInfoProvider  $pageInfoProvider,
PropertyAnnotatorFactory  $propertyAnnotatorFactory,
SchemaFactory  $schemaFactory 
)
Since
1.9
Parameters
EditInfo$editInfo
PageInfoProvider$pageInfoProvider
PropertyAnnotatorFactory$propertyAnnotatorFactory
SchemaFactory$schemaFactory

Member Function Documentation

◆ process()

SMW\MediaWiki\Hooks\NewRevisionFromEditComplete::process ( Title  $title)
Since
1.9
Parameters
Title$title
Returns
boolean

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

About | General disclaimer | Privacy policy