diff options
Diffstat (limited to 'public/app')
| -rw-r--r-- | public/app/controllers/cms/Course.php | 23 | ||||
| -rw-r--r-- | public/app/models/todo.md | 51 |
2 files changed, 28 insertions, 46 deletions
diff --git a/public/app/controllers/cms/Course.php b/public/app/controllers/cms/Course.php index 47eac5f..ad8a0fb 100644 --- a/public/app/controllers/cms/Course.php +++ b/public/app/controllers/cms/Course.php @@ -11,9 +11,8 @@ use app\extends\Cache_service; class Course { - /** PERMITION - * ------------------------------------------------------------------------- - */ + ## PERMITION + ## ------------------------------------------------------------------------- /** is admin or permited @@ -41,9 +40,9 @@ class Course { - /** FILES - * ------------------------------------------------------------------------- - */ + ## FILES + ## ------------------------------------------------------------------------- + /** serve file by file_path * (request is valid only for admin users) @@ -103,9 +102,9 @@ class Course { - /** COURSES - * ------------------------------------------------------------------------- - */ + ## COURSES + ## ------------------------------------------------------------------------- + /** course * prepare and render the course view @@ -147,9 +146,9 @@ class Course { - /** LESSONS - * ------------------------------------------------------------------------ - */ + ## LESSONS + ## ------------------------------------------------------------------------- + /** lesson diff --git a/public/app/models/todo.md b/public/app/models/todo.md index defd21e..89ea113 100644 --- a/public/app/models/todo.md +++ b/public/app/models/todo.md @@ -1,55 +1,38 @@ - - -Privilege ---- - -Privilege::list_of_privileges( privilege_id ) - -Privilege::privileges_tree() - - - - - -User +Rearange --- -User::get_privileges +-- #1 -- +app\controllers\cms\Course -> [*] app\controllers\Course -User::has_privilege( privilege_id ) +app\controllers\admin\Users_admin -> [delete] +app\controllers\Admin -> [delete] -User::reset_password() - -> create otp - -> send email +app\controllers\admin\Course_admin -> [*] app\controllers\Course_admin +app\models\admin\User_model -> [*] app\models\User_model -User::set_privilege( privilege_id ) +app\models\admin\Privilege_model -> [merge_to] -> [**] app\models\User_model +app\models\admin\History_model -> [*] app\models\History_model -User::track_action() - -> user_id - -> action : Contoller::method(args) - -> timestamp +app\models\cms\Page_model -> [delete] +app\models\cms\Media_model -> [delete] +app\models\cms\Course_model -> [*] app\models\Course_model -Lesson: ---- +[*] = move -Lesson::create_lesson( POST ) -Lesson::get_lesson( lesson_id ) +-- #2 -- +app\controllers\Course -> [r] app\controllers\Cms +app\controllers\Course_admin -> [r] app\controllers\Cms_admin -Course ---- - -Course::create_course( POST ) - -Course::courses_tree() +app\models\Course_model -> app\models\Cms_model |
