Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
memory_xml_output Class Reference

This class implements one @xml_output able to store and return output in memory. More...

Inheritance diagram for memory_xml_output:

Public Member Functions

 debug_info ()
 
 get_allcontents ()
 
 set_buffersize ($buffersize)
 
 start ()
 
 stop ()
 
 write ($content)
 Get contents from @xml_writer and buffer/output them.
 

Public Attributes

const DEFAULT_BUFFER_SIZE = 4096
 

Protected Member Functions

 finish ()
 
 init ()
 
 send ($content)
 

Protected Attributes

 $allcontents
 
 $buffersize
 
 $currentbuffer
 
 $currentbuffersize
 
string float $finishtime
 finish microtime.
 
 $inittime
 
 $running
 
 $sentbytes
 
 $usebuffer
 

Detailed Description

This class implements one @xml_output able to store and return output in memory.

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

Although possible to use, has been defined as not supporting buffering for testing purposes. get_allcontents() will return the contents after ending.

TODO: Finish phpdocs

Member Function Documentation

◆ finish()

memory_xml_output::finish ( )
protected

Reimplemented from xml_output.

◆ init()

memory_xml_output::init ( )
protected

Reimplemented from xml_output.

◆ send()

memory_xml_output::send ( $content)
protected

Reimplemented from xml_output.


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