Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6586

Tech track of exploration

$
0
0
by Valery Fremaux.  

Seems being a quite weird thing after internal exploration : 

Moodle 2 standard format backup process stores format data information into the course/course.xml file. This is noticeable by a plugin_format_<formatname>_course subhierarchy in the course.xml flow.

this file is produced by the moodle1_course_header_handler class when scheduled by the Moodle XML Parser, but is closed when the last closing <HEADER> xml tag is found in original XML, that is : before format data come to be avaiable. 

so there seems being a structural impossibility to process and merge this information unless delaying the course.xml construction to a very late instant (f.e. : on COURSE closing tag at the end of the parsing). Fortunately I could watch that the course.xml content was made one shot from a $this->course hierarchical structure, built by the handler. Unfortunately did not found already where and how to plug code to :

- delay the actual production of the course.xml content file

- collect and parse at the most accurate moment the formatdata information

- be capable to append the collected data to the course structure/.

more news later.....


Viewing all articles
Browse latest Browse all 6586

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>