MediaWiki  master
FileDeleteCompleteHook.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Hook;
4 
5 use LocalFile;
6 use User;
7 use WikiFilePage;
8 
27  public function onFileDeleteComplete( $file, $oldimage, $article, $user,
28  $reason
29  );
30 }
MediaWiki\Hook
Definition: ActionBeforeFormDisplayHook.php:3
$file
if(PHP_SAPI !='cli-server') if(!isset( $_SERVER['SCRIPT_FILENAME'])) $file
Item class for a filearchive table row.
Definition: router.php:42
MediaWiki\Hook\FileDeleteCompleteHook
Stable to implement.
Definition: FileDeleteCompleteHook.php:13
LocalFile
Class to represent a local file in the wiki's own database.
Definition: LocalFile.php:59
WikiFilePage
Special handling for file pages.
Definition: WikiFilePage.php:31
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition: User.php:55
MediaWiki\Hook\FileDeleteCompleteHook\onFileDeleteComplete
onFileDeleteComplete( $file, $oldimage, $article, $user, $reason)
This hook is called when a file is deleted.