summaryrefslogtreecommitdiff
path: root/public/app/controllers/admin/Users_admin.php
blob: 4e335c1b28b59c840f9dff2e6192a41899826666 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php 

namespace app\controllers\admin;

use Registry;
use Render;


class Users_admin {

    /** privileges
     * ---
     * get all privileges
     * 
     * @param void
     * @return privileges (array)
     */
    public static function privileges()
    {
        return Registry::use('database')->runQuery(
                "SELECT * FROM privilege",[]
        );
    }

    /** edit privileges
     * ---
     */
    public static function edit_privileges()
    {
        // TODO: ...
    }


    /** update course
     * ---
     */
    public static function update_course()
    {
        // TODO: ...
    }

}