Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F951788
AphrontAbstractAttachedFileView.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1016 B
Referenced Files
None
Subscribers
None
AphrontAbstractAttachedFileView.php
View Options
<?php
abstract
class
AphrontAbstractAttachedFileView
extends
AphrontView
{
private
$file
;
final
public
function
setFile
(
PhabricatorFile
$file
)
{
$this
->
file
=
$file
;
return
$this
;
}
final
protected
function
getFile
()
{
return
$this
->
file
;
}
final
protected
function
getName
()
{
$file
=
$this
->
getFile
();
return
phutil_tag
(
'a'
,
array
(
'href'
=>
$file
->
getViewURI
(),
'target'
=>
'_blank'
,
),
$file
->
getName
());
}
final
protected
function
getRemoveElement
()
{
$file
=
$this
->
getFile
();
return
javelin_tag
(
'a'
,
array
(
'class'
=>
'button grey'
,
'sigil'
=>
'aphront-attached-file-view-remove'
,
// NOTE: Using 'ref' here instead of 'meta' because the file upload
// endpoint doesn't receive request metadata and thus can't generate
// a valid response with node metadata.
'ref'
=>
$file
->
getPHID
(),
),
"
\x
E2
\x
9C
\x
96"
);
// "Heavy Multiplication X"
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jun 17, 3:17 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
215583
Default Alt Text
AphrontAbstractAttachedFileView.php (1016 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment