equal
deleted
inserted
replaced
|
1 <?php |
|
2 |
|
3 /** |
|
4 * Copyright(C) 2015 Markus Bröker<broeker.markus@googlemail.com> |
|
5 * |
|
6 */ |
|
7 |
|
8 namespace bfw\mvc\model\home; |
|
9 |
|
10 use bfw\core\Model as MyModel; |
|
11 use bfw\entities\TGroup; |
|
12 use bfw\entities\TUser; |
|
13 |
|
14 class Model extends MyModel { |
|
15 |
|
16 private $user; |
|
17 private $group; |
|
18 |
|
19 public function __construct() { |
|
20 $this->user = new TUser(); |
|
21 $this->group = new TGroup(); |
|
22 } |
|
23 |
|
24 public function getUsers() { |
|
25 return $this->user->findAll(); |
|
26 } |
|
27 |
|
28 public function getGroups() { |
|
29 return $this->group->findAll(); |
|
30 } |
|
31 |
|
32 } |