MediaWiki REL1_39
FileUploadHook.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Hook;
4
5use File;
6
14interface FileUploadHook {
27 public function onFileUpload( $file, $reupload, $hasDescription );
28}
Implements some public methods and some protected utility functions which are required by multiple ch...
Definition File.php:67
This is a hook handler interface, see docs/Hooks.md.
onFileUpload( $file, $reupload, $hasDescription)
This hook is called when a file upload occurs.
if(PHP_SAPI !='cli-server') if(!isset( $_SERVER['SCRIPT_FILENAME'])) $file
Item class for a filearchive table row.
Definition router.php:42