MediaWiki
REL1_39
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
16
interface
UploadVerifyUploadHook
{
37
public
function
onUploadVerifyUpload
(
UploadBase
$upload,
User
$user, ?array $props, $comment,
38
$pageText, &$error
39
);
40
}
UploadBase
UploadBase and subclasses are the backend of MediaWiki's file uploads.
Definition
UploadBase.php:49
User
internal since 1.36
Definition
User.php:70
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...
MessageSpecifier
Definition
MessageSpecifier.php:24
MediaWiki\Hook
Definition
ActionBeforeFormDisplayHook.php:3
includes
upload
Hook
UploadVerifyUploadHook.php
Generated on Fri Dec 20 2024 15:35:37 for MediaWiki by
1.10.0