Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
tool_uploaduser\preview Class Reference

Display the preview of a CSV file. More...

Inheritance diagram for tool_uploaduser\preview:

Public Member Functions

 __construct (\csv_import_reader $cir, array $filecolumns, int $previewrows)
 preview constructor.
 
 get_no_error ()
 Getter for noerror.
 

Protected Member Functions

 read_data ()
 Read data.
 

Protected Attributes

csv_import_reader $cir
 
array $filecolumns
 
bool $noerror = true
 
int $previewrows
 

Detailed Description

Display the preview of a CSV file.

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

Constructor & Destructor Documentation

◆ __construct()

tool_uploaduser\preview::__construct ( \csv_import_reader $cir,
array $filecolumns,
int $previewrows )

preview constructor.

Parameters
csv_import_reader$cir
array$filecolumns
int$previewrows
Exceptions
coding_exception

Member Function Documentation

◆ get_no_error()

tool_uploaduser\preview::get_no_error ( )

Getter for noerror.

Return values
bool

◆ read_data()

tool_uploaduser\preview::read_data ( )
protected

Read data.

Return values
array
Exceptions
coding_exception
dml_exception
moodle_exception

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