-
Notifications
You must be signed in to change notification settings - Fork 20
/
bootstrap.php
26 lines (22 loc) · 1 KB
/
bootstrap.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/* Stud.IP dependencies*/
require_once 'lib/models/Institute.class.php';
require_once 'lib/raumzeit/raumzeit_functions.inc.php';
require_once 'vendor/trails/trails.php';
/* cronjobs */
require_once 'lib/classes/CronJob.class.php';
/* Courseware Block */
if (\StudipVersion::newerThan('4.6')) {
require_once 'lib/BlockTypes/OpencastBlock.php';
} else {
if (!interface_exists('Courseware\CoursewarePlugin')) {
require_once 'lib/FakeCoursewareInterface.php';
}
}
StudipAutoloader::addAutoloadPath(__DIR__, 'ElanEv');
StudipAutoloader::addAutoloadPath(__DIR__ . '/lib', 'Opencast');
// adding observer
NotificationCenter::addObserver('Opencast\Models\Videos', 'parseEvent', 'OpencastVideoSync');
NotificationCenter::addObserver('Opencast\Models\Videos', 'checkEventACL', 'OpencastVideoSync');
NotificationCenter::addObserver('Opencast\Models\Videos', 'addToCoursePlaylist', 'OpencastVideoSync');
NotificationCenter::addObserver('Opencast\Models\VideosUserPerms', 'setPermissions', 'OpencastVideoSync');