| @@ 5654-5665 (lines=12) @@ | ||
| 5651 | * @param int $courseId |
|
| 5652 | * @return void |
|
| 5653 | */ |
|
| 5654 | public static function installCourse($sessionId, $courseId) |
|
| 5655 | { |
|
| 5656 | return true; |
|
| 5657 | $toolList = self::getCourseToolToBeManaged(); |
|
| 5658 | ||
| 5659 | foreach ($toolList as $tool) { |
|
| 5660 | $method = 'add' . $tool; |
|
| 5661 | if (method_exists(get_class(), $method)) { |
|
| 5662 | self::$method($sessionId, $courseId); |
|
| 5663 | } |
|
| 5664 | } |
|
| 5665 | } |
|
| 5666 | ||
| 5667 | /** |
|
| 5668 | * Calls the methods bound to each tool when a course is unregistered from |
|
| @@ 5673-5684 (lines=12) @@ | ||
| 5670 | * @param int $sessionId |
|
| 5671 | * @param int $courseId |
|
| 5672 | */ |
|
| 5673 | public static function unInstallCourse($sessionId, $courseId) |
|
| 5674 | { |
|
| 5675 | return true; |
|
| 5676 | $toolList = self::getCourseToolToBeManaged(); |
|
| 5677 | ||
| 5678 | foreach ($toolList as $tool) { |
|
| 5679 | $method = 'remove' . $tool; |
|
| 5680 | if (method_exists(get_class(), $method)) { |
|
| 5681 | self::$method($sessionId, $courseId); |
|
| 5682 | } |
|
| 5683 | } |
|
| 5684 | } |
|
| 5685 | ||
| 5686 | /** |
|
| 5687 | * @param int $sessionId |
|