allForGroup() public static method

public static allForGroup ( $group_id )
Example #1
0
 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;
 }
Example #2
0
 protected function handleRequest(Request $request)
 {
     $group_id = User::current()->group_id;
     $categories = Category::allForGroup($group_id);
     $this->data['categories'] = $categories;
 }