3 final class PhabricatorChatLogChannelListController
4 extends PhabricatorChatLogController
{
6 public function shouldAllowPublic() {
10 public function handleRequest(AphrontRequest
$request) {
11 $viewer = $request->getViewer();
13 $channels = id(new PhabricatorChatLogChannelQuery())
17 $list = new PHUIObjectItemListView();
18 foreach ($channels as $channel) {
19 $item = id(new PHUIObjectItemView())
20 ->setHeader($channel->getChannelName())
21 ->setHref('/chatlog/channel/'.$channel->getID().'/')
22 ->addAttribute($channel->getServiceName())
23 ->addAttribute($channel->getServiceType());
24 $list->addItem($item);
28 ->buildApplicationCrumbs()
29 ->addTextCrumb(pht('Channel List'), $this->getApplicationURI());
31 $box = id(new PHUIObjectBoxView())
32 ->setHeaderText('Channel List')
33 ->setObjectList($list);
35 return $this->newPage()
36 ->setTitle(pht('Channel List'))