Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F426606
PhabricatorFileDocumentRenderingEngine.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorFileDocumentRenderingEngine.php
View Options
<?php
final
class
PhabricatorFileDocumentRenderingEngine
extends
PhabricatorDocumentRenderingEngine
{
protected
function
newRefViewURI
(
PhabricatorDocumentRef
$ref
,
PhabricatorDocumentEngine
$engine
)
{
$file
=
$ref
->
getFile
();
$engine_key
=
$engine
->
getDocumentEngineKey
();
return
urisprintf
(
'/file/view/%d/%s/'
,
$file
->
getID
(),
$engine_key
);
}
protected
function
newRefRenderURI
(
PhabricatorDocumentRef
$ref
,
PhabricatorDocumentEngine
$engine
)
{
$file
=
$ref
->
getFile
();
if
(!
$file
)
{
throw
new
PhutilMethodNotImplementedException
();
}
$engine_key
=
$engine
->
getDocumentEngineKey
();
$file_phid
=
$file
->
getPHID
();
return
urisprintf
(
'/file/document/%s/%s/'
,
$engine_key
,
$file_phid
);
}
protected
function
addApplicationCrumbs
(
PHUICrumbsView
$crumbs
,
?
PhabricatorDocumentRef
$ref
=
null
)
{
if
(
$ref
)
{
$file
=
$ref
->
getFile
();
if
(
$file
)
{
$crumbs
->
addTextCrumb
(
$file
->
getMonogram
(),
$file
->
getInfoURI
());
}
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 3, 2:49 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
59061
Default Alt Text
PhabricatorFileDocumentRenderingEngine.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment