Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101898058
PhabricatorVoidDocumentEngine.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Feb 14, 21:41
Size
871 B
Mime Type
text/x-php
Expires
Sun, Feb 16, 21:41 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24247994
Attached To
rPH Phabricator
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
;
}
}
Event Timeline
Log In to Comment