Browse Source

controllers

tags/0.1.0
Robin Thoni 9 years ago
parent
commit
5b0219c588

+ 30
- 0
src/Auth/Controller/LuticatePermissionsController.php View File

@@ -11,4 +11,34 @@ class LuticatePermissionsController extends LuController {
11 11
     {
12 12
         return new LuticatePermissionsBusiness();
13 13
     }
14
+
15
+    public function getEffectivePermission($user_id, $permission_name)
16
+    {
17
+        return LuticatePermissionsBusiness::getEffectivePermission($user_id, $permission_name);
18
+    }
19
+
20
+    public function getEffectivePermissionMe($user, $permission_name)
21
+    {
22
+        return LuticatePermissionsBusiness::getEffectivePermissionMe($user, $permission_name);
23
+    }
24
+
25
+    public function get($permission_name)
26
+    {
27
+        return LuticatePermissionsBusiness::get($permission_name);
28
+    }
29
+
30
+    public function add($permission_name, $permission_value)
31
+    {
32
+        return LuticatePermissionsBusiness::add($permission_name, $permission_value);
33
+    }
34
+
35
+    public function del($permission_name)
36
+    {
37
+        return LuticatePermissionsBusiness::del($permission_name);
38
+    }
39
+
40
+    public function edit($permission_name, $permission_value)
41
+    {
42
+        return LuticatePermissionsBusiness::edit($permission_name, $permission_value);
43
+    }
14 44
 }

+ 20
- 0
src/Auth/Controller/LuticatePermissionsGroupsController.php View File

@@ -11,4 +11,24 @@ class LuticatePermissionsGroupsController extends LuController {
11 11
     {
12 12
         return new LuticatePermissionsGroupsBusiness();
13 13
     }
14
+
15
+    public function get($group_id, $permission_name)
16
+    {
17
+        return LuticatePermissionsGroupsBusiness::get($group_id, $permission_name);
18
+    }
19
+
20
+    public function add($group_id, $permission_name, $permission_value)
21
+    {
22
+        return LuticatePermissionsGroupsBusiness::add($group_id, $permission_name, $permission_value);
23
+    }
24
+
25
+    public function del($group_id, $permission_name)
26
+    {
27
+        return LuticatePermissionsGroupsBusiness::del($group_id, $permission_name);
28
+    }
29
+
30
+    public function edit($group_id, $permission_name, $permission_value)
31
+    {
32
+        return LuticatePermissionsGroupsBusiness::edit($group_id, $permission_name, $permission_value);
33
+    }
14 34
 }

+ 20
- 0
src/Auth/Controller/LuticatePermissionsUsersController.php View File

@@ -11,4 +11,24 @@ class LuticatePermissionsUsersController extends LuController {
11 11
     {
12 12
         return new LuticatePermissionsUsersBusiness();
13 13
     }
14
+
15
+    public function get($user_id, $permission_name)
16
+    {
17
+        return LuticatePermissionsUsersBusiness::get($user_id, $permission_name);
18
+    }
19
+
20
+    public function add($user_id, $permission_name, $permission_value)
21
+    {
22
+        return LuticatePermissionsUsersBusiness::add($user_id, $permission_name, $permission_value);
23
+    }
24
+
25
+    public function del($user_id, $permission_name)
26
+    {
27
+        return LuticatePermissionsUsersBusiness::del($user_id, $permission_name);
28
+    }
29
+
30
+    public function edit($user_id, $permission_name, $permission_value)
31
+    {
32
+        return LuticatePermissionsUsersBusiness::edit($user_id, $permission_name, $permission_value);
33
+    }
14 34
 }

Loading…
Cancel
Save