Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F447711
PhabricatorVoidDocumentEngine.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
871 B
Referenced Files
None
Subscribers
None
PhabricatorVoidDocumentEngine.php
View Options
<?php
final
class
PhabricatorVoidDocumentEngine
extends
PhabricatorDocumentEngine
{
const
ENGINEKEY
=
'void'
;
public
function
getViewAsLabel
(
PhabricatorDocumentRef
$ref
)
{
return
null
;
}
protected
function
getDocumentIconIcon
(
PhabricatorDocumentRef
$ref
)
{
return
'fa-file'
;
}
protected
function
getContentScore
(
PhabricatorDocumentRef
$ref
)
{
return
1000
;
}
protected
function
getByteLengthLimit
()
{
return
null
;
}
protected
function
canRenderDocumentType
(
PhabricatorDocumentRef
$ref
)
{
return
true
;
}
protected
function
newDocumentContent
(
PhabricatorDocumentRef
$ref
)
{
$message
=
pht
(
'No document engine can render the contents of this file.'
);
$container
=
phutil_tag
(
'div'
,
array
(
'class'
=>
'document-engine-message'
,
),
$message
);
return
$container
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, May 4, 5:20 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
66610
Default Alt Text
PhabricatorVoidDocumentEngine.php (871 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment