File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -18,14 +18,23 @@ class renderer_plugin_odt_book extends renderer_plugin_odt_page {
1818 /** @var string document title*/
1919 protected $ title = '' ;
2020
21+ /**
22+ * clean out any per-use values
23+ *
24+ * This is called before each use of the renderer object and should normally be used to
25+ * completely reset the state of the renderer to be reused for a new document.
26+ * For ODT book it resets only some properties.
27+ */
28+ public function reset () {
29+ $ this ->doc = '' ;
30+ }
2131 /**
2232 * Initialize the document
2333 */
2434 public function document_start () {
2535 // number of wiki pages included in ODT file
2636 $ this ->wikipages_count ++;
2737
28- $ this ->doc = '' ; //FIXME move to reset()??
2938
3039 if ($ this ->isBookStart ()) {
3140 parent ::document_start ();
You can’t perform that action at this time.
0 commit comments