Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250706) (a6b17d8f6bd)
core_table\base_export_format Class Reference
Inheritance diagram for core_table\base_export_format:
core_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)
 Format the text.
 
 set_table (&$table)
 

Public Attributes

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

Constructor & Destructor Documentation

◆ __construct()

core_table\base_export_format::__construct ( & $table)

Constructor.

Parameters
flexible_table$table

Member Function Documentation

◆ add_data()

core_table\base_export_format::add_data ( $row)

◆ format_data()

core_table\base_export_format::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()

core_table\base_export_format::format_text ( $text,
$format = FORMAT_MOODLE,
$options = null,
$courseid = null )

Format the text.

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.

Parameters
string$text
int$format
null | array$options
null | int$courseid

Member Data Documentation

◆ $documentstarted

bool core_table\base_export_format::$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: