Posts made by Joseph Rézeau

Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
I'm working on the "delete_instance" function in the Questionnaire module. This works silently so I can't echo any values I need to examine.
So I output such values to a text file which I can examine afterwards. I was wondering if a) there is a way to force echo to screen in such cases OR b) if moodle has a function which I can call with the text I want to write and the name of a text file as parameters?
In other words, what do moodle developers usually do when faced with a situation where nothing is echoed to the screen? Oh, and I have debug mode ON, of course.
TIA
Joseph
Average of ratings: -
Picture of Développeurs Picture of Développeurs de plugins Picture of Moodleurs particulièrement utiles Picture of Testeurs Picture of Traducteurs

Bonjour Carl,

A priori une banque de "milliers de questions de type QCM" est quelque chose qui me fait toujours peur sur le plan pédagogique.wink

Pour répondre à ta question il n'existe actuellement rien dans l'interface de Moodle permettant une telle recherche ; il faudra utiliser un utilitaire tel que phpMyAdmin pour faire la recherche directement dans la base de données de ton site moodle. Pas très convivial.

Dans la prochaine version de Moodle (2.0), qui devrait arriver courant 2010, il sera possible de mettre des "tags" aux questions, ce qui permettrait en partie de répondre à la question.

Joseph