MediaWiki
REL1_37
UploadStashFileHook.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
UploadStashFileHook
{
36
public
function
onUploadStashFile
(
UploadBase
$upload,
User
$user, ?array $props, &$error );
37
}
UploadBase
UploadBase and subclasses are the backend of MediaWiki's file uploads.
Definition
UploadBase.php:47
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition
User.php:69
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).
MessageSpecifier
Definition
MessageSpecifier.php:24
MediaWiki\Hook
Definition
ActionBeforeFormDisplayHook.php:3
includes
upload
Hook
UploadStashFileHook.php
Generated on Fri Apr 5 2024 23:41:03 for MediaWiki by
1.9.8