Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403]

(no description)

Copyright: 2010 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 161 lines (6 kb)
Included or required:0 times
Referenced: 4 times
Includes or requires: 0 files

Defines 2 classes

xml_output:: (6 methods):
  __construct()
  set_buffersize()
  start()
  stop()
  write()
  debug_info()

xml_output_exception:: (1 method):
  __construct()


Class: xml_output  - X-Ref

This abstract class outputs XML contents provided by @xml_writer

Contains the common functionalities for all the xml_output_xxx classes
and the interface for them. Mainly it's in charge of:
- Initialize the corresponding stream/handler (file, DB connection...)
- Finalize the stream/handler
- Provide one common buffer for all output implementations
- Receive XML contents from the @xml_writer and output them
- Some basic throughtput stats

TODO: Finish phpdocs
__construct($usebuffer = true)   X-Ref
No description

set_buffersize($buffersize)   X-Ref
No description

start()   X-Ref
No description

stop()   X-Ref
No description

write($content)   X-Ref
Get contents from @xml_writer and buffer/output them


debug_info()   X-Ref
No description

Class: xml_output_exception  - X-Ref

__construct($errorcode, $a=NULL, $debuginfo=null)   X-Ref
No description