| @@ 5426-5437 (lines=12) @@ | ||
| 5423 | * @param int $courseId |
|
| 5424 | * @return void |
|
| 5425 | */ |
|
| 5426 | public static function installCourse($sessionId, $courseId) |
|
| 5427 | { |
|
| 5428 | return true; |
|
| 5429 | $toolList = self::getCourseToolToBeManaged(); |
|
| 5430 | ||
| 5431 | foreach ($toolList as $tool) { |
|
| 5432 | $method = 'add' . $tool; |
|
| 5433 | if (method_exists(get_class(), $method)) { |
|
| 5434 | self::$method($sessionId, $courseId); |
|
| 5435 | } |
|
| 5436 | } |
|
| 5437 | } |
|
| 5438 | ||
| 5439 | /** |
|
| 5440 | * Calls the methods bound to each tool when a course is unregistered from |
|
| @@ 5445-5456 (lines=12) @@ | ||
| 5442 | * @param int $sessionId |
|
| 5443 | * @param int $courseId |
|
| 5444 | */ |
|
| 5445 | public static function unInstallCourse($sessionId, $courseId) |
|
| 5446 | { |
|
| 5447 | return true; |
|
| 5448 | $toolList = self::getCourseToolToBeManaged(); |
|
| 5449 | ||
| 5450 | foreach ($toolList as $tool) { |
|
| 5451 | $method = 'remove' . $tool; |
|
| 5452 | if (method_exists(get_class(), $method)) { |
|
| 5453 | self::$method($sessionId, $courseId); |
|
| 5454 | } |
|
| 5455 | } |
|
| 5456 | } |
|
| 5457 | ||
| 5458 | /** |
|
| 5459 | * @param int $sessionId |
|