@@ 5704-5715 (lines=12) @@ | ||
5701 | * @param int $courseId |
|
5702 | * @return void |
|
5703 | */ |
|
5704 | public static function installCourse($sessionId, $courseId) |
|
5705 | { |
|
5706 | return true; |
|
5707 | $toolList = self::getCourseToolToBeManaged(); |
|
5708 | ||
5709 | foreach ($toolList as $tool) { |
|
5710 | $method = 'add' . $tool; |
|
5711 | if (method_exists(get_class(), $method)) { |
|
5712 | self::$method($sessionId, $courseId); |
|
5713 | } |
|
5714 | } |
|
5715 | } |
|
5716 | ||
5717 | /** |
|
5718 | * Calls the methods bound to each tool when a course is unregistered from |
|
@@ 5723-5734 (lines=12) @@ | ||
5720 | * @param int $sessionId |
|
5721 | * @param int $courseId |
|
5722 | */ |
|
5723 | public static function unInstallCourse($sessionId, $courseId) |
|
5724 | { |
|
5725 | return true; |
|
5726 | $toolList = self::getCourseToolToBeManaged(); |
|
5727 | ||
5728 | foreach ($toolList as $tool) { |
|
5729 | $method = 'remove' . $tool; |
|
5730 | if (method_exists(get_class(), $method)) { |
|
5731 | self::$method($sessionId, $courseId); |
|
5732 | } |
|
5733 | } |
|
5734 | } |
|
5735 | ||
5736 | /** |
|
5737 | * @param int $sessionId |