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/PmWikiContentModule.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/PmWikiContentModule.class.php')
| -rw-r--r-- | lib/elearning/PmWikiContentModule.class.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/elearning/PmWikiContentModule.class.php b/lib/elearning/PmWikiContentModule.class.php index e16756a..061dbd3 100644 --- a/lib/elearning/PmWikiContentModule.class.php +++ b/lib/elearning/PmWikiContentModule.class.php @@ -17,7 +17,7 @@ /** * -* This class contains methods to handle PmWiki learning modules +* This class contains methods to handle PmWiki learning modules * * @author Marco Diedrich <mdiedric@uos.de> * @access public @@ -32,19 +32,19 @@ class PmWikiContentModule extends ContentModule /** * constructor * - * init class. + * init class. * @access public * @param string $module_id module-id * @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) { parent::__construct($module_id, $module_type, $cms_type); $this->link = $GLOBALS['connected_cms'][$this->cms_type]->ABSOLUTE_PATH_ELEARNINGMODULES.$this->id."/"; - $this->client = WebserviceClient::instance( $this->link. '?' . - $GLOBALS['ELEARNING_INTERFACE_MODULES'][$this->cms_type]['URL_PARAMS'], + $this->client = WebserviceClient::instance( $this->link. '?' . + $GLOBALS['ELEARNING_INTERFACE_MODULES'][$this->cms_type]['URL_PARAMS'], $GLOBALS['ELEARNING_INTERFACE_MODULES'][$this->cms_type]['WEBSERVICE_CLASS']); } @@ -98,7 +98,7 @@ class PmWikiContentModule extends ContentModule if ($authorized) { return true; - } else + } else { # old authorization if (is_array($this->accepted_users) && in_array($username, $this->accepted_users)) |
