diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2022-07-01 15:02:02 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2022-07-01 15:02:02 +0000 |
| commit | 3fb989eebb7db40284cd8d9b023b1b2758260fd8 (patch) | |
| tree | 16da384180723cc4fa7b9d498858c3376e9c84a7 /lib/elearning/ContentModule.class.php | |
| parent | 7bbef588b396afb78375612ff70e6940b9f07670 (diff) | |
make class ContentModule and method readData abstract (and fix constructor...
Closes #1252
Merge request studip/studip!767
Diffstat (limited to 'lib/elearning/ContentModule.class.php')
| -rw-r--r-- | lib/elearning/ContentModule.class.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/elearning/ContentModule.class.php b/lib/elearning/ContentModule.class.php index 64ce29b..1b2921b 100644 --- a/lib/elearning/ContentModule.class.php +++ b/lib/elearning/ContentModule.class.php @@ -15,8 +15,13 @@ * @module ContentModule * @package ELearning-Interface */ -class ContentModule +abstract class ContentModule { + /** + * Fetches data from conencted cms. + */ + abstract function readData(); + var $id; var $title; var $module_type; @@ -41,7 +46,7 @@ class ContentModule * @param string $module_type module-type * @param string $cms_type system-type */ - function __construct($module_id = "", $module_type, $cms_type) + function __construct($module_id, $module_type, $cms_type) { global $connected_cms; |
