Index: trunk/extensions/EducationProgram/api/ApiDeleteEducation.php |
— | — | @@ -54,14 +54,6 @@ |
55 | 55 | |
56 | 56 | $everythingOk = true; |
57 | 57 | |
58 | | -// foreach ( $params['ids'] as $id ) { |
59 | | -// // $instance->remove is used instead of Class::delete, |
60 | | -// // so that linked data also gets deleted. |
61 | | -// $c = self::$typeMap[$params['type']]; |
62 | | -// $object = new $c( array( 'id' => $id ) ); |
63 | | -// $everythingOk = $object->remove() && $everythingOk; |
64 | | -// } |
65 | | - |
66 | 58 | $class = self::$typeMap[$params['type']]; |
67 | 59 | |
68 | 60 | if ( count( $params['ids'] ) > 0 ) { |
— | — | @@ -158,7 +150,7 @@ |
159 | 151 | protected function getExamples() { |
160 | 152 | return array( |
161 | 153 | 'api.php?action=deleteeducation&ids=42&type=course', |
162 | | - 'api.php?action=deleteeducation&ids=4|2&type=student', |
| 154 | + 'api.php?action=deleteeducation&ids=4|2&type=org', |
163 | 155 | ); |
164 | 156 | } |
165 | 157 | |