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