Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 401] [Versions 310 and 402] [Versions 310 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: 1 time
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