classes/bfw/mvc/model/benutzerverwaltung/Model.php
changeset 7 3ed6f90e97d9
child 9 8c2f3735a9bd
new file mode 100644
--- /dev/null
+++ b/classes/bfw/mvc/model/benutzerverwaltung/Model.php
@@ -0,0 +1,39 @@
+<?php
+
+/**
+ * Copyright(C) 2015 Markus Bröker<broeker.markus@googlemail.com>
+ *
+ */
+
+namespace bfw\mvc\model\benutzerverwaltung;
+
+use bfw\entities\TGroup;
+use bfw\entities\TUser;
+
+class Model extends \bfw\core\Model {
+
+    private $user;
+    private $group;
+
+    public function __construct() {
+        $this->user = new TUser();
+        $this->group = new TGroup();
+    }
+
+    public function getUser() {
+        return $this->user;
+    }
+
+    public function getGroup() {
+        return $this->group;
+    }
+
+    public function getUsers() {
+        return $this->user->findAll();
+    }
+
+    public function getGroups() {
+        return $this->group->findAll();
+    }
+
+}
\ No newline at end of file