MediaWiki REL1_37
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onMimeMagicGuessFromContent ( $mimeMagic, &$head, &$tail, $file, &$mime) | |
Use this hook to guess the MIME by content. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "MimeMagicGuessFromContent" to register handlers implementing this interface.
Definition at line 14 of file MimeMagicGuessFromContentHook.php.
MediaWiki\Hook\MimeMagicGuessFromContentHook::onMimeMagicGuessFromContent | ( | $mimeMagic, | |
& | $head, | ||
& | $tail, | ||
$file, | |||
& | $mime | ||
) |
Use this hook to guess the MIME by content.
MimeAnalyzer | $mimeMagic | |
string | &$head | First 1024 bytes of the file in a string (in - Do not alter!) |
string | &$tail | More or equal than last 65558 bytes of the file in a string (in - Do not alter!) |
string | $file | File path |
string | &$mime | MIME type (out) |
Implemented in MediaWiki\HookContainer\HookRunner.