Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F109842541
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
Wed, Apr 23, 15:00
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Apr 25, 15:00 (2 d)
Engine
blob
Format
Raw Data
Handle
25736189
Attached To
rPH Phabricator
PhabricatorDashboardPanelListController.php
View Options
<?php
final
class
PhabricatorDashboardPanelListController
extends
PhabricatorDashboardController
{
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
buildApplicationCrumbs
()
{
$crumbs
=
parent
::
buildApplicationCrumbs
();
$crumbs
->
addTextCrumb
(
pht
(
'Panels'
),
$this
->
getApplicationURI
().
'panel/'
);
$crumbs
->
addAction
(
id
(
new
PHUIListItemView
())
->
setIcon
(
'fa-plus-square'
)
->
setName
(
pht
(
'Create Panel'
))
->
setHref
(
$this
->
getApplicationURI
().
'panel/create/'
));
return
$crumbs
;
}
}
Event Timeline
Log In to Comment