|
MediaWiki REL1_39
|
This is a hook handler interface, see docs/Hooks.md. More...

Public Member Functions | |
| onImgAuthBeforeStream (&$title, &$path, &$name, &$result) | |
| This hook is called before a file is streamed to a user, but only when using img_auth.php. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ImgAuthBeforeStream" to register handlers implementing this interface.
Definition at line 14 of file ImgAuthBeforeStreamHook.php.
| MediaWiki\Hook\ImgAuthBeforeStreamHook::onImgAuthBeforeStream | ( | & | $title, |
| & | $path, | ||
| & | $name, | ||
| & | $result ) |
This hook is called before a file is streamed to a user, but only when using img_auth.php.
| Title | &$title | Title object of the file as it would appear for the upload page |
| string | &$path | Original file and path name when img_auth was invoked by the web server |
| string | &$name | Name only component of the file |
| array | &$result | Location to pass back results of the hook routine (only used if failed)
|
Implemented in MediaWiki\HookContainer\HookRunner.