MediaWiki  master
PageContentSaveHook.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Storage\Hook;
4 
5 use Content;
7 use StatusValue;
8 use User;
9 use WikiPage;
10 
37  public function onPageContentSave( $wikiPage, $user, $content, &$summary,
38  $isminor, $iswatch, $section, $flags, $status
39  );
40 }
Value object for a comment stored by CommentStore.
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition: StatusValue.php:46
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition: User.php:70
Base representation for an editable wiki page.
Definition: WikiPage.php:72
Base interface for representing page content.
Definition: Content.php:36
This is a hook handler interface, see docs/Hooks.md.
onPageContentSave( $wikiPage, $user, $content, &$summary, $isminor, $iswatch, $section, $flags, $status)
This hook is called before an article is saved.
$content
Definition: router.php:76