Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106641240
PhabricatorFileController.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
Sat, Mar 29, 04:44
Size
984 B
Mime Type
text/x-php
Expires
Mon, Mar 31, 05:44 (2 d)
Engine
blob
Format
Raw Data
Handle
25242321
Attached To
rPH Phabricator
PhabricatorFileController.php
View Options
<?php
abstract
class
PhabricatorFileController
extends
PhabricatorController
{
public
function
buildApplicationCrumbs
()
{
$crumbs
=
parent
::
buildApplicationCrumbs
();
$crumbs
->
addAction
(
id
(
new
PHUIListItemView
())
->
setName
(
pht
(
'Upload File'
))
->
setIcon
(
'fa-upload'
)
->
setHref
(
$this
->
getApplicationURI
(
'/upload/'
)));
return
$crumbs
;
}
protected
function
buildSideNavView
()
{
$menu
=
$this
->
buildMenu
(
$for_devices
=
false
);
return
AphrontSideNavFilterView
::
newFromMenu
(
$menu
);
}
protected
function
buildApplicationMenu
()
{
return
$this
->
buildMenu
(
$for_devices
=
true
);
}
private
function
buildMenu
(
$for_devices
)
{
$menu
=
new
PHUIListView
();
if
(
$for_devices
)
{
$menu
->
newLink
(
pht
(
'Upload File'
),
$this
->
getApplicationURI
(
'/upload/'
));
}
id
(
new
PhabricatorFileSearchEngine
())
->
setViewer
(
$this
->
getRequest
()->
getUser
())
->
addNavigationItems
(
$menu
);
return
$menu
;
}
}
Event Timeline
Log In to Comment