Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402] [Versions 401 and 402]

(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: 164 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