Skip to content

Commit 8965bbc

Browse files
committed
refs #289
1 parent dce1222 commit 8965bbc

File tree

5 files changed

+82
-15074
lines changed

5 files changed

+82
-15074
lines changed

MeetingPlugin.php

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function __construct()
6868
* @param Range $context
6969
* @return bool
7070
*/
71-
public function isActivatableForContext(Range $context)
71+
public function isActivatableForContext(Range $context)
7272
{
7373
return get_class($context) === \Course::class;
7474
}
@@ -325,12 +325,12 @@ public function getMetadata()
325325

326326
/**
327327
* getMeetingManifestInfo
328-
*
328+
*
329329
* get the plugin manifest from PluginManager getPluginManifest method
330-
*
330+
*
331331
* @return Array $metadata the manifest metadata of this plugin
332332
*/
333-
public static function getMeetingManifestInfo()
333+
public static function getMeetingManifestInfo()
334334
{
335335
$plugin_manager = \PluginManager::getInstance();
336336
$this_plugin = $plugin_manager->getPluginInfo(__CLASS__);
@@ -344,7 +344,7 @@ public static function getMeetingManifestInfo()
344344
*
345345
* @param object event
346346
* @param user $user
347-
*
347+
*
348348
*/
349349
public function DeleteMeetingOnUserDelete($event, $user)
350350
{
@@ -354,7 +354,7 @@ public function DeleteMeetingOnUserDelete($event, $user)
354354
$seminar_user = new \Seminar_User($user);
355355
}
356356
$meetingCourses = MeetingCourse::findByUser($seminar_user);
357-
357+
358358
if ($meetingCourses) {
359359
foreach ($meetingCourses as $meetingCourse) {
360360
$meetingCourse->meeting->delete();
@@ -368,7 +368,7 @@ public function DeleteMeetingOnUserDelete($event, $user)
368368
*
369369
* @param string $old_id old user id
370370
* @param string $new_id new user id
371-
*
371+
*
372372
*/
373373
public function UpdateMeetingOnUserMigrate($event, $old_id, $new_id)
374374
{
@@ -414,11 +414,11 @@ public static function getSemClasses()
414414
*
415415
* @param Course $course The current course which the server is going to be used
416416
* @param String $server_course_type The server course type
417-
* @return boolean
417+
* @return boolean
418418
*/
419419
public static function checkCourseType(Course $course, $server_course_type)
420420
{
421-
if ($server_course_type == '') { // When empty, it supports all course types
421+
if ($server_course_type == '') { // When empty, it supports all course types
422422
return true;
423423
}
424424

@@ -480,4 +480,9 @@ public static function getCourseTypeName($server_course_type)
480480

481481
return '';
482482
}
483+
484+
public function getPortalTemplate()
485+
{
486+
return false;
487+
}
483488
}

composer.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,5 @@
1717
"ElanEv\\": "",
1818
"Meetings\\": "lib/"
1919
}
20-
},
21-
"require-dev": {
22-
"phpunit/phpunit": "^7.1",
23-
"phpunit/phpunit-mock-objects": "^6.1.0",
24-
"codeception/codeception": "^2.4"
2520
}
2621
}

0 commit comments

Comments
 (0)