Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92653256
PhabricatorFilesApplication.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, Nov 22, 10:16
Size
3 KB
Mime Type
text/x-php
Expires
Sun, Nov 24, 10:16 (2 d)
Engine
blob
Format
Raw Data
Handle
22478164
Attached To
rPH Phabricator
PhabricatorFilesApplication.php
View Options
<?php
final
class
PhabricatorFilesApplication
extends
PhabricatorApplication
{
public
function
getBaseURI
()
{
return
'/file/'
;
}
public
function
getName
()
{
return
pht
(
'Files'
);
}
public
function
getShortDescription
()
{
return
pht
(
'Store and Share Files'
);
}
public
function
getFontIcon
()
{
return
'fa-file'
;
}
public
function
getTitleGlyph
()
{
return
"
\x
E2
\x
87
\x
AA"
;
}
public
function
getFlavorText
()
{
return
pht
(
'Blob store for Pokemon pictures.'
);
}
public
function
getApplicationGroup
()
{
return
self
::
GROUP_UTILITIES
;
}
public
function
canUninstall
()
{
return
false
;
}
public
function
getRemarkupRules
()
{
return
array
(
new
PhabricatorEmbedFileRemarkupRule
(),
);
}
public
function
supportsEmailIntegration
()
{
return
true
;
}
public
function
getAppEmailBlurb
()
{
return
pht
(
'Send emails with file attachments to these addresses to upload '
.
'files. %s'
,
phutil_tag
(
'a'
,
array
(
'href'
=>
$this
->
getInboundEmailSupportLink
(),
),
pht
(
'Learn More'
)));
}
protected
function
getCustomCapabilities
()
{
return
array
(
FilesDefaultViewCapability
::
CAPABILITY
=>
array
(
'caption'
=>
pht
(
'Default view policy for newly created files.'
),
),
);
}
public
function
getRoutes
()
{
return
array
(
'/F(?P<id>[1-9]
\d
*)'
=>
'PhabricatorFileInfoController'
,
'/file/'
=>
array
(
'(query/(?P<key>[^/]+)/)?'
=>
'PhabricatorFileListController'
,
'upload/'
=>
'PhabricatorFileUploadController'
,
'dropupload/'
=>
'PhabricatorFileDropUploadController'
,
'compose/'
=>
'PhabricatorFileComposeController'
,
'comment/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorFileCommentController'
,
'delete/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorFileDeleteController'
,
'edit/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorFileEditController'
,
'info/(?P<phid>[^/]+)/'
=>
'PhabricatorFileInfoController'
,
'data/'
.
'(?:@(?P<instance>[^/]+)/)?'
.
'(?P<key>[^/]+)/'
.
'(?P<phid>[^/]+)/'
.
'(?:(?P<token>[^/]+)/)?'
.
'.*'
=>
'PhabricatorFileDataController'
,
'proxy/'
=>
'PhabricatorFileProxyController'
,
'xform/'
.
'(?:@(?P<instance>[^/]+)/)?'
.
'(?P<transform>[^/]+)/'
.
'(?P<phid>[^/]+)/'
.
'(?P<key>[^/]+)/'
=>
'PhabricatorFileTransformController'
,
'transforms/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorFileTransformListController'
,
'uploaddialog/'
=>
'PhabricatorFileUploadDialogController'
,
'download/(?P<phid>[^/]+)/'
=>
'PhabricatorFileDialogController'
,
),
);
}
public
function
getMailCommandObjects
()
{
return
array
(
'file'
=>
array
(
'name'
=>
pht
(
'Email Commands: Files'
),
'header'
=>
pht
(
'Interacting with Files'
),
'object'
=>
new
PhabricatorFile
(),
'summary'
=>
pht
(
'This page documents the commands you can use to interact with '
.
'files.'
),
),
);
}
}
Event Timeline
Log In to Comment