Total Complexity | 4 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
6 | class Cc13ExportConvert |
||
7 | { |
||
8 | public static function export($objCourse) |
||
9 | { |
||
10 | $permDirs = api_get_permissions_for_new_directories(); |
||
11 | $backupDirectory = CourseArchiver::getBackupDir(); |
||
12 | |||
13 | // Create a temp directory |
||
14 | $backupDir = $backupDirectory.'CourseCC13Archiver_'.api_get_unique_id(); |
||
15 | |||
16 | if (mkdir($backupDir, $permDirs, true)) { |
||
17 | $converted = Cc13Convert::convert($backupDirectory, $backupDir, $objCourse); |
||
18 | if ($converted) { |
||
19 | $imsccFileName = self::createImscc($backupDir, $objCourse); |
||
20 | |||
21 | return $imsccFileName; |
||
22 | } |
||
23 | } |
||
24 | |||
25 | return false; |
||
26 | } |
||
27 | |||
28 | public static function createImscc($backupDir, $objCourse) |
||
45 | } |
||
46 | } |
||
47 |