From 17d243371c43847e9dbdeb21395afc0e8f5437ae Mon Sep 17 00:00:00 2001 From: George Halkiadakis Date: Mon, 24 Apr 2023 04:36:57 +0300 Subject: edit lesson: putting all together; media with privile level --- public/app/models/cms/Course_model.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'public/app/models/cms') diff --git a/public/app/models/cms/Course_model.php b/public/app/models/cms/Course_model.php index 4740a4f..3d0ac1c 100644 --- a/public/app/models/cms/Course_model.php +++ b/public/app/models/cms/Course_model.php @@ -216,5 +216,16 @@ class Course_model { } + /** files + * return all files + * @param void + * @return array + */ + public static function files() + { + return Registry::use('database')->runQuery("SELECT * from media", []); + } + + } -- cgit v1.2.3