Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F114335105
PhabricatorDashboardPanelListController.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
Sun, May 25, 06:54
Size
1 KB
Mime Type
text/x-php
Expires
Tue, May 27, 06:54 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
26386616
Attached To
rPH Phabricator
PhabricatorDashboardPanelListController.php
View Options
<?php
final
class
PhabricatorDashboardPanelListController
extends
PhabricatorDashboardController
implements
PhabricatorApplicationSearchResultsControllerInterface
{
private
$queryKey
;
public
function
willProcessRequest
(
array
$data
)
{
$this
->
queryKey
=
idx
(
$data
,
'queryKey'
);
}
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$controller
=
id
(
new
PhabricatorApplicationSearchController
(
$request
))
->
setQueryKey
(
$this
->
queryKey
)
->
setSearchEngine
(
new
PhabricatorDashboardPanelSearchEngine
())
->
setNavigation
(
$this
->
buildSideNavView
());
return
$this
->
delegateToController
(
$controller
);
}
public
function
buildSideNavView
()
{
$user
=
$this
->
getRequest
()->
getUser
();
$nav
=
new
AphrontSideNavFilterView
();
$nav
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
()));
id
(
new
PhabricatorDashboardPanelSearchEngine
())
->
setViewer
(
$user
)
->
addNavigationItems
(
$nav
->
getMenu
());
$nav
->
selectFilter
(
null
);
return
$nav
;
}
public
function
renderResultsList
(
array
$panels
,
PhabricatorSavedQuery
$query
)
{
return
'got '
.
count
(
$panels
).
' ok'
;
}
}
Event Timeline
Log In to Comment