Path: blob/master/src/applications/chatlog/controller/PhabricatorChatLogChannelListController.php
12242 views
<?php12final class PhabricatorChatLogChannelListController3extends PhabricatorChatLogController {45public function shouldAllowPublic() {6return true;7}89public function handleRequest(AphrontRequest $request) {10$viewer = $request->getViewer();1112$channels = id(new PhabricatorChatLogChannelQuery())13->setViewer($viewer)14->execute();1516$list = new PHUIObjectItemListView();17foreach ($channels as $channel) {18$item = id(new PHUIObjectItemView())19->setHeader($channel->getChannelName())20->setHref('/chatlog/channel/'.$channel->getID().'/')21->addAttribute($channel->getServiceName())22->addAttribute($channel->getServiceType());23$list->addItem($item);24}2526$crumbs = $this27->buildApplicationCrumbs()28->addTextCrumb(pht('Channel List'), $this->getApplicationURI());2930$box = id(new PHUIObjectBoxView())31->setHeaderText('Channel List')32->setObjectList($list);3334return $this->newPage()35->setTitle(pht('Channel List'))36->setCrumbs($crumbs)37->appendChild($box);3839}40}414243