Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F8100954
MimeMagicGuessFromContentHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
881 B
Referenced Files
None
Subscribers
None
MimeMagicGuessFromContentHook.php
View Options
<?php
namespace
MediaWiki\Hook
;
use
Wikimedia\Mime\MimeAnalyzer
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "MimeMagicGuessFromContent" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
MimeMagicGuessFromContentHook
{
/**
* Use this hook to guess the MIME by content.
*
* @since 1.35
*
* @param MimeAnalyzer $mimeMagic
* @param string &$head First 1024 bytes of the file in a string (in - Do not alter!)
* @param string &$tail More or equal than last 65558 bytes of the file in a string
* (in - Do not alter!)
* @param string $file File path
* @param string &$mime MIME type (out)
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onMimeMagicGuessFromContent
(
$mimeMagic
,
&
$head
,
&
$tail
,
$file
,
&
$mime
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Dec 8, 02:00 (1 d, 14 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c6/5f/bff1fc35c519f9caff3ffb5d5bc9
Default Alt Text
MimeMagicGuessFromContentHook.php (881 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment