Notenübernahme aus Moodle optimiert

This commit is contained in:
Andreas Österreicher
2014-03-07 08:03:01 +00:00
parent befc4b7074
commit 8358b7b78e
3 changed files with 21 additions and 16 deletions
@@ -88,6 +88,7 @@ class local_fhcompletews_external extends external_api
if($grade_item->itemtype=='course')
{
$final_id=$key;
$finalitem = $grade_item;
break;
}
}
@@ -100,7 +101,7 @@ class local_fhcompletews_external extends external_api
// Liste mit allen Studierenden des Kurses durchlaufen
$geub = new grade_export_update_buffer();
$gui = new graded_users_iterator($export->course, $export->columns, $export->groupid);
$gui = new graded_users_iterator($export->course, array($final_id=>$finalitem), $export->groupid); //$export->columns
$gui->init();
$kursgrad =array();
@@ -119,9 +120,11 @@ class local_fhcompletews_external extends external_api
{
$gradestr = $export->format_grade($userdata->grades[$final_id]);
$user_item['note']=$gradestr;
// nur zurueckliefern wenn eine Note gefunden wurde und diese nicht '-' ist
if($user_item['note']!='-')
$data[]=$user_item;
}
$data[]=$user_item;
}
$gui->close();
+2 -2
View File
@@ -12,7 +12,7 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
$plugin->version = 2013031302; // The (date) version of this module + 2 extra digital for daily versions
$plugin->version = 2014030605; // The (date) version of this module + 2 extra digital for daily versions
// This version number is displayed into /admin/forms.php
// TODO: if ever this plugin get branched, the old branch number
// will not be updated to the current date but just incremented. We will
@@ -20,5 +20,5 @@ $plugin->version = 2013031302; // The (date) version of this module + 2 extra
// display this version number with userdate (dev friendly)
$plugin->requires = 2010112400; // Requires this Moodle version - at least 2.0
$plugin->cron = 0;
$plugin->release = '1.0 (Build: 2013031302)';
$plugin->release = '1.0 (Build: 2014030605)';
$plugin->maturity = MATURITY_STABLE;