Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
table_default_export_format_parent Class Reference
Inheritance diagram for table_default_export_format_parent:
table_dataformat_export_format

Public Member Functions

 __construct (&$table)
 Constructor.
 
 add_data ($row)
 
 add_seperator ()
 
 document_started ()
 
 format_data (array $row)
 Format a row of data, removing HTML tags and entities from each of the cells.
 
 format_text ($text, $format=FORMAT_MOODLE, $options=NULL, $courseid=NULL)
 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.
 
 set_table (&$table)
 
 table_default_export_format_parent (&$table)
 Old syntax of class constructor.
 

Public Attributes

bool $documentstarted = false
 output started.
 
flexible_table $table
 or child class reference pointing to table class object from which to export data.
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

table_default_export_format_parent::__construct ( & $table)

Constructor.

Parameters
flexible_table$table

Member Function Documentation

◆ add_data()

table_default_export_format_parent::add_data ( $row)

Reimplemented in table_dataformat_export_format.

◆ format_data()

table_default_export_format_parent::format_data ( array $row)

Format a row of data, removing HTML tags and entities from each of the cells.

Parameters
array$row
Return values
array

◆ format_text()

table_default_export_format_parent::format_text ( $text,
$format = FORMAT_MOODLE,
$options = NULL,
$courseid = NULL )

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.

◆ table_default_export_format_parent()

table_default_export_format_parent::table_default_export_format_parent ( & $table)

Old syntax of class constructor.

Deprecated in PHP7.

Deprecated
since Moodle 3.1

Member Data Documentation

◆ $documentstarted

bool table_default_export_format_parent::$documentstarted = false

output started.

Keeps track of whether any output has been started yet.


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