Dataformat exporter.
More...
|
$columns | $columns |
|
$dataformat | $dataformat |
|
$rownum | $rownum = 0 |
|
Dataformat exporter.
@subpackage tablelib
- Copyright
- 2016 Brendan Heywood (brend.nosp@m.an@c.nosp@m.ataly.nosp@m.st-a.nosp@m.u.net)
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
table_dataformat_export_format::__construct |
( |
& |
$table, |
|
|
|
$dataformat |
|
) |
| |
Constructor.
- Parameters
-
string | $table | An sql table |
string | $dataformat | type of dataformat for export |
◆ add_data()
table_dataformat_export_format::add_data |
( |
|
$row | ) |
|
◆ format_text()
table_default_export_format_parent::format_text |
( |
|
$text, |
|
|
|
$format = FORMAT_MOODLE , |
|
|
|
$options = NULL , |
|
|
|
$courseid = NULL |
|
) |
| |
|
inherited |
Given text in a variety of format codings, this function returns the text as safe HTML or as plain text dependent on what is appropriate for the download format.
The default removes all tags.
◆ output_headers()
table_dataformat_export_format::output_headers |
( |
|
$headers | ) |
|
Output headers.
- Parameters
-
◆ start_document()
table_dataformat_export_format::start_document |
( |
|
$filename, |
|
|
|
$sheettitle |
|
) |
| |
Start document.
- Parameters
-
string | $filename | |
string | $sheettitle | |
◆ start_table()
table_dataformat_export_format::start_table |
( |
|
$sheettitle | ) |
|
Start export.
- Parameters
-
string | $sheettitle | optional spreadsheet worksheet title |
◆ table_default_export_format_parent()
table_default_export_format_parent::table_default_export_format_parent |
( |
& |
$table | ) |
|
|
inherited |
Old syntax of class constructor.
Deprecated in PHP7.
- Deprecated:
- since Moodle 3.1
◆ $documentstarted
bool table_default_export_format_parent::$documentstarted = false |
|
inherited |
output started.
Keeps track of whether any output has been started yet.
The documentation for this class was generated from the following file: