Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102191365
PhabricatorFileListController.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 18, 02:29
Size
867 B
Mime Type
text/x-php
Expires
Thu, Feb 20, 02:29 (2 d)
Engine
blob
Format
Raw Data
Handle
24273296
Attached To
rPH Phabricator
PhabricatorFileListController.php
View Options
<?php
final
class
PhabricatorFileListController
extends
PhabricatorFileController
{
private
$key
;
public
function
shouldAllowPublic
()
{
return
true
;
}
public
function
willProcessRequest
(
array
$data
)
{
$this
->
key
=
idx
(
$data
,
'key'
);
}
public
function
processRequest
()
{
$controller
=
id
(
new
PhabricatorApplicationSearchController
())
->
setQueryKey
(
$this
->
key
)
->
setSearchEngine
(
new
PhabricatorFileSearchEngine
())
->
setNavigation
(
$this
->
buildSideNavView
());
return
$this
->
delegateToController
(
$controller
);
}
public
function
buildApplicationCrumbs
()
{
$crumbs
=
parent
::
buildApplicationCrumbs
();
$crumbs
->
addAction
(
id
(
new
PHUIListItemView
())
->
setName
(
pht
(
'Upload File'
))
->
setIcon
(
'fa-upload'
)
->
setHref
(
$this
->
getApplicationURI
(
'/upload/'
)));
return
$crumbs
;
}
}
Event Timeline
Log In to Comment