Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
tool_uploaduser\local\text_progress_tracker Class Reference

Tracks the progress of the user upload and echos it in a text format. More...

Inheritance diagram for tool_uploaduser\local\text_progress_tracker:
uu_progress_tracker tool_uploaduser\local\cli_progress_tracker

Public Member Functions

 close ()
 Print the table end.
 
 flush ()
 Flush previous line and start a new one.
 
 start ()
 Print table header.
 
 track ($col, $msg, $level='normal', $merge=true)
 Add tracking info.
 

Public Attributes

array $columns = []
 The columns shown on the table.
 

Protected Member Functions

 output_line (string $line)
 Output one line (followed by newline)
 

Protected Attributes

array $_row
 
array $headers = []
 column headers
 

Detailed Description

Tracks the progress of the user upload and echos it in a text format.

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

Member Function Documentation

◆ close()

tool_uploaduser\local\text_progress_tracker::close ( )

Print the table end.

Return values
void

Reimplemented from uu_progress_tracker.

◆ flush()

tool_uploaduser\local\text_progress_tracker::flush ( )

Flush previous line and start a new one.

Return values
void

Reimplemented from uu_progress_tracker.

◆ output_line()

tool_uploaduser\local\text_progress_tracker::output_line ( string $line)
protected

Output one line (followed by newline)

Parameters
string$line

Reimplemented in tool_uploaduser\local\cli_progress_tracker.

◆ start()

tool_uploaduser\local\text_progress_tracker::start ( )

Print table header.

Return values
void

Reimplemented from uu_progress_tracker.

◆ track()

tool_uploaduser\local\text_progress_tracker::track ( $col,
$msg,
$level = 'normal',
$merge = true )

Add tracking info.

Parameters
string$colname of column
string$msgmessage
string$level'normal', 'warning' or 'error'
bool$mergetrue means add as new line, false means override all previous text of the same type
Return values
void

Reimplemented from uu_progress_tracker.


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