Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100947136
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
Tue, Feb 4, 05:15
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Feb 6, 05:15 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
24061780
Attached To
rPH Phabricator
PhabricatorFileController.php
View Options
<?php
abstract
class
PhabricatorFileController
extends
PhabricatorController
{
public
function
buildApplicationCrumbs
()
{
$crumbs
=
parent
::
buildApplicationCrumbs
();
$crumbs
->
addAction
(
id
(
new
PhabricatorMenuItemView
())
->
setName
(
pht
(
'Upload File'
))
->
setIcon
(
'create'
)
// TODO: Get @chad to build an "upload" icon.
->
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
PhabricatorMenuView
();
if
(
$for_devices
)
{
$menu
->
newLink
(
pht
(
'Upload File'
),
$this
->
getApplicationURI
(
'/upload/'
));
}
$menu
->
newLabel
(
pht
(
'Filters'
));
$menu
->
newLink
(
pht
(
'My Files'
),
$this
->
getApplicationURI
(
'filter/my/'
))
->
setKey
(
'my'
);
$menu
->
newLink
(
pht
(
'All Files'
),
$this
->
getApplicationURI
(
'filter/all/'
))
->
setKey
(
'all'
);
return
$menu
;
}
}
Event Timeline
Log In to Comment