allForGroup() 공개 정적인 메소드

public static allForGroup ( $group_id )
예제 #1
0
파일: Home.php 프로젝트: nathanking101/core
 public function get_index()
 {
     // TODO: Get list of forums and topics with new posts since last visit & get all topics that were marked as read
     // Fetch the categories and forums
     $categories = Category::allForGroup(User::current()->group_id);
     $view = \View::make('fluxbb::index');
     $view['categories'] = $categories;
     return $view;
 }
예제 #2
0
 protected function handleRequest(Request $request)
 {
     $group_id = User::current()->group_id;
     $categories = Category::allForGroup($group_id);
     $this->data['categories'] = $categories;
 }