MediaWiki
master
UploadStashFileHook.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
UploadStashFileHook
{
36
public
function
onUploadStashFile
(
UploadBase
$upload,
User
$user, ?array $props, &$error );
37
}
MediaWiki\User\User
User class for the MediaWiki software.
Definition
User.php:119
UploadBase
UploadBase and subclasses are the backend of MediaWiki's file uploads.
Definition
UploadBase.php:66
MediaWiki\Hook\UploadStashFileHook
This is a hook handler interface, see docs/Hooks.md.
Definition
UploadStashFileHook.php:16
MediaWiki\Hook\UploadStashFileHook\onUploadStashFile
onUploadStashFile(UploadBase $upload, User $user, ?array $props, &$error)
This hook is called before a file is stashed (uploaded to stash).
Wikimedia\Message\MessageSpecifier
Definition
MessageSpecifier.php:26
MediaWiki\Hook
Definition
ActionBeforeFormDisplayHook.php:3
includes
upload
Hook
UploadStashFileHook.php
Generated on Mon Jan 13 2025 06:26:46 for MediaWiki by
1.10.0