MDL-56046 core_dataformat: added functions to support multiple sheets
commitd7a2d1a2c8b642e0b103c4ec9239699abf3462e0
authorMark Nelson <markn@moodle.com>
Wed, 24 May 2017 15:11:38 +0000 (24 23:11 +0800)
committerMark Nelson <markn@moodle.com>
Mon, 26 Jun 2017 05:28:44 +0000 (26 13:28 +0800)
tree03581a338ce5915657f763e69f6b19c5894484fb
parentcccb1a6d21c057903e50c68d10e55789dfe36e56
MDL-56046 core_dataformat: added functions to support multiple sheets

Also removed write_header() and write_footer(). The reason for this
is because in core we want to know if the format being used supports
multiple sheets. To do this, and ensure we do not break third-party
dataformat plugins, we are using method_exist(). If write_header()
and write_footer() remain in the base class then this will always
be true.
lib/classes/dataformat/base.php
lib/classes/dataformat/spout_base.php