[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Source view] [Print] [Project Stats]
This file contains the forms to create and edit an instance of this module
Copyright: | 2012 NetSpot {@link http://www.netspot.com.au} |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 190 lines (7 kb) |
Included or required: | 0 times |
Referenced: | 1 time |
Includes or requires: | 0 files |
assignfeedback_offline_grade_importer:: (5 methods):
__construct()
parsecsv()
init()
next()
close()
Class: assignfeedback_offline_grade_importer - X-Ref
CSV Grade importer__construct($importid, assign $assignment) X-Ref |
Constructor param: string $importid A unique id for this import param: assign $assignment The current assignment |
parsecsv($csvdata) X-Ref |
Parse a csv file and save the content to a temp file Should be called before init() param: string $csvdata The csv data return: bool false is a failed import |
init() X-Ref |
Initialise the import reader and locate the column indexes. return: bool false is a failed import |
next() X-Ref |
Get the next row of data from the csv file (only the columns we care about) return: stdClass or false The stdClass is an object containing user, grade and lastmodified |
close($delete) X-Ref |
Close the grade importer file and optionally delete any temp files param: bool $delete |
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |