Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / settings / panel / PhabricatorActivitySettingsPanel.php
bloba3654a43889af943c637097c8882e1f8350a4676
1 <?php
3 final class PhabricatorActivitySettingsPanel extends PhabricatorSettingsPanel {
5 public function getPanelKey() {
6 return 'activity';
9 public function getPanelName() {
10 return pht('Activity Logs');
13 public function getPanelMenuIcon() {
14 return 'fa-list';
17 public function getPanelGroupKey() {
18 return PhabricatorSettingsLogsPanelGroup::PANELGROUPKEY;
21 public function processRequest(AphrontRequest $request) {
22 $viewer = $request->getUser();
23 $user = $this->getUser();
25 $pager = id(new AphrontCursorPagerView())
26 ->readFromRequest($request);
28 $logs = id(new PhabricatorPeopleLogQuery())
29 ->setViewer($viewer)
30 ->withRelatedPHIDs(array($user->getPHID()))
31 ->executeWithCursorPager($pager);
33 $table = id(new PhabricatorUserLogView())
34 ->setUser($viewer)
35 ->setLogs($logs);
37 $panel = $this->newBox(pht('Account Activity Logs'), $table);
39 $pager_box = id(new PHUIBoxView())
40 ->addMargin(PHUI::MARGIN_LARGE)
41 ->appendChild($pager);
43 return array($panel, $pager_box);
46 public function isManagementPanel() {
47 return true;