Tracks the progress of the user upload and echos it in a text format.
More...
|
| | 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.
|
| |
|
|
array | $columns = [] |
| | The columns shown on the table.
|
| |
|
| | output_line (string $line) |
| | Output one line (followed by newline)
|
| |
|
|
array | $_row |
| |
|
array | $headers = [] |
| | column headers
|
| |
Tracks the progress of the user upload and echos it in a text format.
- Copyright
- 2020 Marina Glancy
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ close()
| tool_uploaduser\local\text_progress_tracker::close |
( |
| ) |
|
◆ flush()
| tool_uploaduser\local\text_progress_tracker::flush |
( |
| ) |
|
◆ output_line()
| tool_uploaduser\local\text_progress_tracker::output_line |
( |
string |
$line | ) |
|
|
protected |
◆ start()
| tool_uploaduser\local\text_progress_tracker::start |
( |
| ) |
|
◆ track()
| tool_uploaduser\local\text_progress_tracker::track |
( |
|
$col, |
|
|
|
$msg, |
|
|
|
$level = 'normal', |
|
|
|
$merge = true |
|
) |
| |
Add tracking info.
- Parameters
-
| string | $col | name of column |
| string | $msg | message |
| string | $level | 'normal', 'warning' or 'error' |
| bool | $merge | true means add as new line, false means override all previous text of the same type |
- Return values
-
Reimplemented from uu_progress_tracker.
The documentation for this class was generated from the following file: