getRequest(); $user = $request->getUser(); $pager = new AphrontPagerView(); $pager->setURI($request->getRequestURI(), 'offset'); $pager->setOffset($request->getInt('offset')); $query = new PhabricatorNotificationQuery(); $query->setUserPHID($user->getPHID()); $notifications = $query->executeWithPager($pager); if ($notifications) { $builder = new PhabricatorNotificationBuilder($notifications); $view = $builder->buildView(); } else { $view = '
'. 'You have no notifications.'. '
'; } $panel = new AphrontPanelView(); $panel->setHeader('Notifications'); $panel->appendChild($view); $panel->appendChild($pager); return $this->buildStandardPageResponse( $panel, array( 'title' => 'Notifications', )); } }