Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Public Attributes | Protected Attributes | List of all members
dataformat_html\writer Class Reference

html data format writer More...

Inheritance diagram for dataformat_html\writer:
core\dataformat\base

Public Member Functions

 close_output ()
 Write the end of the sheet containing the data.
 
 close_sheet ($columns)
 Write the end of the sheet containing the data. More...
 
 get_extension ()
 Get the file extension. More...
 
 send_http_headers ()
 Output file headers to initialise the download of the file.
 
 set_filename ($filename)
 Set download filename base. More...
 
 set_sheettitle ($title)
 Set the title of the worksheet inside a spreadsheet. More...
 
 start_output ()
 Write the start of the output.
 
 start_sheet ($columns)
 Write the start of the sheet we will be adding data to. More...
 
 write_record ($record, $rownum)
 Write a single record. More...
 

Public Attributes

$extension $extension = ".html"
 
$mimetype $mimetype = "text/html"
 

Protected Attributes

$filename $filename = ''
 

Detailed Description

html data format writer

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

Member Function Documentation

◆ close_sheet()

dataformat_html\writer::close_sheet (   $columns)

Write the end of the sheet containing the data.

Parameters
array$columns

Reimplemented from core\dataformat\base.

◆ get_extension()

core\dataformat\base::get_extension ( )
inherited

Get the file extension.

Return values
stringfile extension

◆ set_filename()

core\dataformat\base::set_filename (   $filename)
inherited

Set download filename base.

Parameters
string$filename

◆ set_sheettitle()

core\dataformat\base::set_sheettitle (   $title)
inherited

Set the title of the worksheet inside a spreadsheet.

For some formats this will be ignored.

Parameters
string$title

Reimplemented in core\dataformat\spout_base, dataformat_ods\writer, and dataformat_excel\writer.

◆ start_sheet()

dataformat_html\writer::start_sheet (   $columns)

Write the start of the sheet we will be adding data to.

Parameters
array$columns

Reimplemented from core\dataformat\base.

◆ write_record()

dataformat_html\writer::write_record (   $record,
  $rownum 
)

Write a single record.

Parameters
array$record
int$rownum

Reimplemented from core\dataformat\base.


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