main/webservices/webservice_course.php 1 location
|
@@ 22-31 (lines=10) @@
|
| 19 |
|
* @param string Course id value |
| 20 |
|
* @return mixed True if the course was successfully deleted, WSError otherwise |
| 21 |
|
*/ |
| 22 |
|
protected function deleteCourseHelper( |
| 23 |
|
$course_id_field_name, |
| 24 |
|
$course_id_value |
| 25 |
|
) { |
| 26 |
|
$course_id = $this->getCourseId( |
| 27 |
|
$course_id_field_name, |
| 28 |
|
$course_id_value |
| 29 |
|
); |
| 30 |
|
if ($course_id instanceof WSError) { |
| 31 |
|
return $course_id; |
| 32 |
|
} else { |
| 33 |
|
$course_code = CourseManager::get_course_code_from_course_id( |
| 34 |
|
$course_id |
main/webservices/cm_webservice_course.php 1 location
|
@@ 23-32 (lines=10) @@
|
| 20 |
|
* @param string Course id value |
| 21 |
|
* @return mixed True if the course was successfully deleted, WSError otherwise |
| 22 |
|
*/ |
| 23 |
|
protected function deleteCourseHelper( |
| 24 |
|
$course_id_field_name, |
| 25 |
|
$course_id_value |
| 26 |
|
) { |
| 27 |
|
$course_id = $this->getCourseId( |
| 28 |
|
$course_id_field_name, |
| 29 |
|
$course_id_value |
| 30 |
|
); |
| 31 |
|
if ($course_id instanceof WSCMError) { |
| 32 |
|
return $course_id; |
| 33 |
|
} else { |
| 34 |
|
$course_code = CourseManager::get_course_code_from_course_id( |
| 35 |
|
$course_id |