Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250530) (c39b7370636)
gradeimport_csv_renderer Class Reference

Renderers for the import of CSV files into the gradebook. More...

Inheritance diagram for gradeimport_csv_renderer:

Public Member Functions

 errors ($errors)
 A renderer for errors generated trying to import the CSV file.
 
 import_preview_page ($header, $data)
 A renderer for the CSV file preview.
 
 standard_upload_file_form ($course, $mform)
 A renderer for the standard upload file form.
 

Detailed Description

Renderers for the import of CSV files into the gradebook.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ errors()

gradeimport_csv_renderer::errors ( $errors)

A renderer for errors generated trying to import the CSV file.

Parameters
array$errorsDisplay import errors.
Return values
stringerrors as html to be displayed.

◆ import_preview_page()

gradeimport_csv_renderer::import_preview_page ( $header,
$data )

A renderer for the CSV file preview.

Parameters
array$headerColumn headers from the CSV file.
array$dataThe rest of the data from the CSV file.
Return values
stringhtml to be displayed.

◆ standard_upload_file_form()

gradeimport_csv_renderer::standard_upload_file_form ( $course,
$mform )

A renderer for the standard upload file form.

Parameters
object$courseThe course we are doing all of this action in.
object$mformThe mform for uploading CSV files.
Return values
stringhtml to be displayed.

The documentation for this class was generated from the following file: