diff options
| author | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-04-27 20:15:02 +0300 |
|---|---|---|
| committer | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-04-27 20:15:02 +0300 |
| commit | 463139601c046a5201cb8a73473f8fe5c568b760 (patch) | |
| tree | e174bed994e3939c1d47f4fb2ae402bdfc1a77f9 /public/app/models/admin | |
| parent | b52e052bd3741c1ddf1bdaa43079ba5a9eafc8bd (diff) | |
| download | classroom-463139601c046a5201cb8a73473f8fe5c568b760.tar.gz classroom-463139601c046a5201cb8a73473f8fe5c568b760.tar.bz2 classroom-463139601c046a5201cb8a73473f8fe5c568b760.zip | |
rearangment completed; now anything is simplel
Diffstat (limited to 'public/app/models/admin')
| -rw-r--r-- | public/app/models/admin/History_model.php | 34 | ||||
| -rw-r--r-- | public/app/models/admin/Privilege_model.php | 42 |
2 files changed, 0 insertions, 76 deletions
diff --git a/public/app/models/admin/History_model.php b/public/app/models/admin/History_model.php deleted file mode 100644 index 04ce630..0000000 --- a/public/app/models/admin/History_model.php +++ /dev/null @@ -1,34 +0,0 @@ -<?php -namespace app\models\admin; - -use \Registry; - - -class History_model -{ - - /** track user access - * - */ - public static function trackUserAccess($user_id, $type, $message, $note='_') - { - - Registry::use('database')->query( - "INSERT INTO history - (user_id, `type`, `message`, `note`, `ip`) - VALUES - (:uid, :type, :msg, :note, :ip)", - [ - ':uid' => $user_id, - ':type' => $type, - ':msg' => $message, - ':note' => $note, - ':ip' => Registry::get('REQUEST')->IP - ] - )->lastInsertID(); - - } - - - -}
\ No newline at end of file diff --git a/public/app/models/admin/Privilege_model.php b/public/app/models/admin/Privilege_model.php deleted file mode 100644 index c385484..0000000 --- a/public/app/models/admin/Privilege_model.php +++ /dev/null @@ -1,42 +0,0 @@ -<?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: ... - } - -}
\ No newline at end of file |
