Debian Codegraph @

includes/specials/Hook/UploadForm_BeforeProcessingHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Hook;
4
5 use MediaWiki\Specials\SpecialUpload;
6
7 // phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps
8 /**
9 * This is a hook handler interface, see docs/Hooks.md.
10 * Use the hook name "UploadForm:BeforeProcessing" to register handlers implementing this interface.
11 *
12 * @stable to implement
13 * @ingroup Hooks
14 */
15 interface UploadForm_BeforeProcessingHook {
16 /**
17 * This hook is called at the beginning of processUpload().
18 *
19 * Lets you poke at member variables like $mUploadDescription before the file is saved.
20 * Do not use this hook to break upload processing. This will return the user to a blank
21 * form with no error message; use UploadVerifyUpload or UploadVerifyFile instead.
22 *
23 * @since 1.35
24 *
25 * @param SpecialUpload $upload
26 * @return bool|void True or no return value to continue or false to abort
27 */
28 public function onUploadForm_BeforeProcessing( $upload );
29 }