Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4118355
FakeDimensionFile.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
743 B
Referenced Files
None
Subscribers
None
FakeDimensionFile.php
View Options
<?php
use
MediaWiki\Title\Title
;
class
FakeDimensionFile
extends
File
{
/** @var bool */
public
$mustRender
=
false
;
/** @var string */
public
$mime
;
/** @var int[] */
public
$dimensions
;
public
function
__construct
(
$dimensions
,
$mime
=
'unknown/unknown'
)
{
parent
::
__construct
(
Title
::
makeTitle
(
NS_FILE
,
'Test'
),
new
NullRepo
(
null
)
);
$this
->
dimensions
=
$dimensions
;
$this
->
mime
=
$mime
;
}
public
function
getWidth
(
$page
=
1
)
{
return
$this
->
dimensions
[
0
];
}
public
function
getHeight
(
$page
=
1
)
{
return
$this
->
dimensions
[
1
];
}
public
function
mustRender
()
{
return
$this
->
mustRender
;
}
public
function
getPath
()
{
return
''
;
}
public
function
getMimeType
()
{
return
$this
->
mime
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Aug 19, 02:44 (2 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0e/a6/ddef4b08ec0572ded83aba3d105e
Default Alt Text
FakeDimensionFile.php (743 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment