Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3281257
ArcanistFileRef.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
ArcanistFileRef.php
View Options
<?php
final
class
ArcanistFileRef
extends
ArcanistRef
{
private
$parameters
;
public
function
getRefDisplayName
(
)
{
return
pht
(
'File "%s"'
,
$this
->
getMonogram
(
)
)
;
}
public
static
function
newFromConduit
(
array
$parameters
)
{
$ref
=
new
self
(
)
;
$ref
->
parameters
=
$parameters
;
return
$ref
;
}
public
function
getID
(
)
{
return
idx
(
$this
->
parameters
,
'id'
)
;
}
public
function
getPHID
(
)
{
return
idx
(
$this
->
parameters
,
'phid'
)
;
}
public
function
getName
(
)
{
return
idxv
(
$this
->
parameters
,
array
(
'fields'
,
'name'
)
)
;
}
public
function
getDataURI
(
)
{
return
idxv
(
$this
->
parameters
,
array
(
'fields'
,
'dataURI'
)
)
;
}
public
function
getSize
(
)
{
return
idxv
(
$this
->
parameters
,
array
(
'fields'
,
'size'
)
)
;
}
public
function
getURI
(
)
{
$uri
=
idxv
(
$this
->
parameters
,
array
(
'fields'
,
'uri'
)
)
;
if
(
$uri
===
null
)
{
$uri
=
'/'
.
$this
->
getMonogram
(
)
;
}
return
$uri
;
}
public
function
getMonogram
(
)
{
return
'F'
.
$this
->
getID
(
)
;
}
protected
function
buildRefView
(
ArcanistRefView
$view
)
{
$view
->
setObjectName
(
$this
->
getMonogram
(
)
)
->
setTitle
(
$this
->
getName
(
)
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Mar 23, 20:22 (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1119792
Default Alt Text
ArcanistFileRef.php (1 KB)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment