[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorChatLogChannelListController 4 extends PhabricatorChatLogController { 5 6 public function shouldAllowPublic() { 7 return true; 8 } 9 10 public function processRequest() { 11 $request = $this->getRequest(); 12 $user = $request->getUser(); 13 14 $channels = id(new PhabricatorChatLogChannelQuery()) 15 ->setViewer($user) 16 ->execute(); 17 18 $list = new PHUIObjectItemListView(); 19 foreach ($channels as $channel) { 20 $item = id(new PHUIObjectItemView()) 21 ->setHeader($channel->getChannelName()) 22 ->setHref('/chatlog/channel/'.$channel->getID().'/') 23 ->addAttribute($channel->getServiceName()) 24 ->addAttribute($channel->getServiceType()); 25 $list->addItem($item); 26 } 27 28 $crumbs = $this 29 ->buildApplicationCrumbs() 30 ->addTextCrumb(pht('Channel List'), $this->getApplicationURI()); 31 32 return $this->buildApplicationPage( 33 array( 34 $crumbs, 35 $list, 36 ), 37 array( 38 'title' => pht('Channel List'), 39 )); 40 } 41 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |