summaryrefslogtreecommitdiff
path: root/public/app/models/admin/Privilege_model.php
blob: c3854840d69948bb99358a936bf4ec1f35e3041a (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\models\admin;

use Registry;
use Render;


class Privilege_model {

    /** 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: ...
    }

}