| @@ 5675-5686 (lines=12) @@ | ||
| 5672 | * @param int $courseId |
|
| 5673 | * @return void |
|
| 5674 | */ |
|
| 5675 | public static function installCourse($sessionId, $courseId) |
|
| 5676 | { |
|
| 5677 | return true; |
|
| 5678 | $toolList = self::getCourseToolToBeManaged(); |
|
| 5679 | ||
| 5680 | foreach ($toolList as $tool) { |
|
| 5681 | $method = 'add' . $tool; |
|
| 5682 | if (method_exists(get_class(), $method)) { |
|
| 5683 | self::$method($sessionId, $courseId); |
|
| 5684 | } |
|
| 5685 | } |
|
| 5686 | } |
|
| 5687 | ||
| 5688 | /** |
|
| 5689 | * Calls the methods bound to each tool when a course is unregistered from |
|
| @@ 5694-5705 (lines=12) @@ | ||
| 5691 | * @param int $sessionId |
|
| 5692 | * @param int $courseId |
|
| 5693 | */ |
|
| 5694 | public static function unInstallCourse($sessionId, $courseId) |
|
| 5695 | { |
|
| 5696 | return true; |
|
| 5697 | $toolList = self::getCourseToolToBeManaged(); |
|
| 5698 | ||
| 5699 | foreach ($toolList as $tool) { |
|
| 5700 | $method = 'remove' . $tool; |
|
| 5701 | if (method_exists(get_class(), $method)) { |
|
| 5702 | self::$method($sessionId, $courseId); |
|
| 5703 | } |
|
| 5704 | } |
|
| 5705 | } |
|
| 5706 | ||
| 5707 | /** |
|
| 5708 | * @param int $sessionId |
|