Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Talk:XMLDB problems

From MoodleDocs

Eloy, should you be editing the Coding page as you find things like this. Maybe add a new section for rules for writing custom SQL where necessary, and change General rule number 8.

I would suggest that make a new policy: when a module needs custom SQL statements, they should be in funcitons in a datalib.php file within that module folder.Tim Hunt 11:17, 11 September 2006 (CDT)

Hi Tim, I've added a new Database Rule, plus updated General Rule 8. Really I didn't saw this until now. About the datalib.php idea, could be really interesting. What if, after 1.7, we discuss it in Forums? Eloy Lafuente (stronk7) 04:54, 23 September 2006 (CDT)