MediaWiki
master
UploadVerifyUploadHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Hook
;
4
5
use
MediaWiki\User\User
;
6
use
UploadBase
;
7
use
Wikimedia\Message\MessageSpecifier
;
8
16
interface
UploadVerifyUploadHook
{
37
public
function
onUploadVerifyUpload
(
UploadBase
$upload,
User
$user, ?array $props, $comment,
38
$pageText, &$error
39
);
40
}
MediaWiki\User\User
internal since 1.36
Definition
User.php:93
UploadBase
UploadBase and subclasses are the backend of MediaWiki's file uploads.
Definition
UploadBase.php:66
MediaWiki\Hook\UploadVerifyUploadHook
This is a hook handler interface, see docs/Hooks.md.
Definition
UploadVerifyUploadHook.php:16
MediaWiki\Hook\UploadVerifyUploadHook\onUploadVerifyUpload
onUploadVerifyUpload(UploadBase $upload, User $user, ?array $props, $comment, $pageText, &$error)
Use this hook to perform upload verification, based on both file properties like MIME type (same as U...
Wikimedia\Message\MessageSpecifier
Definition
MessageSpecifier.php:26
MediaWiki\Hook
Definition
ActionBeforeFormDisplayHook.php:3
includes
upload
Hook
UploadVerifyUploadHook.php
Generated on Mon Dec 9 2024 09:26:38 for MediaWiki by
1.10.0