Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F63138885
PhabricatorPeopleLogsController.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
Sat, May 18, 00:47
Size
870 B
Mime Type
text/x-php
Expires
Mon, May 20, 00:47 (2 d)
Engine
blob
Format
Raw Data
Handle
17736480
Attached To
rPH Phabricator
PhabricatorPeopleLogsController.php
View Options
<?php
final
class
PhabricatorPeopleLogsController
extends
PhabricatorPeopleController
{
private
$queryKey
;
public
function
willProcessRequest
(
array
$data
)
{
$this
->
queryKey
=
idx
(
$data
,
'queryKey'
);
}
public
function
processRequest
()
{
$controller
=
id
(
new
PhabricatorApplicationSearchController
())
->
setQueryKey
(
$this
->
queryKey
)
->
setSearchEngine
(
new
PhabricatorPeopleLogSearchEngine
())
->
setNavigation
(
$this
->
buildSideNavView
());
return
$this
->
delegateToController
(
$controller
);
}
public
function
buildSideNavView
()
{
$nav
=
new
AphrontSideNavFilterView
();
$nav
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
()));
$viewer
=
$this
->
getRequest
()->
getUser
();
id
(
new
PhabricatorPeopleLogSearchEngine
())
->
setViewer
(
$viewer
)
->
addNavigationItems
(
$nav
->
getMenu
());
return
$nav
;
}
}
Event Timeline
Log In to Comment