MediaWiki
REL1_35
UploadVerifyUploadHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Hook
;
4
5
use
MessageSpecifier
;
6
use
UploadBase
;
7
use
User
;
8
13
interface
UploadVerifyUploadHook
{
34
public
function
onUploadVerifyUpload
( $upload, $user, $props, $comment,
35
$pageText, &$error
36
);
37
}
UploadBase
UploadBase and subclasses are the backend of MediaWiki's file uploads.
Definition
UploadBase.php:45
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition
User.php:60
MediaWiki\Hook\UploadVerifyUploadHook
Stable to implement.
Definition
UploadVerifyUploadHook.php:13
MediaWiki\Hook\UploadVerifyUploadHook\onUploadVerifyUpload
onUploadVerifyUpload( $upload, $user, $props, $comment, $pageText, &$error)
Use this hook to perform upload verification, based on both file properties like MIME type (same as U...
MessageSpecifier
Stable for implementing.
Definition
MessageSpecifier.php:24
MediaWiki\Hook
Definition
ActionBeforeFormDisplayHook.php:3
includes
upload
Hook
UploadVerifyUploadHook.php
Generated on Sat Apr 6 2024 00:08:04 for MediaWiki by
1.9.8