Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98559184
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, Jan 14, 08:14
Size
870 B
Mime Type
text/x-php
Expires
Thu, Jan 16, 08:14 (1 d, 13 h)
Engine
blob
Format
Raw Data
Handle
23603990
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
);
}
protected
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