Does anyone know any Moodle built in feature to export custom report into a csv file?
I've tried to find in documentation but there is nothing. There's this old book which also have no practical information on exporting report into a csv file.
I've tried to dig into the source code and also in Moodle's administration block. You can export log reports as a csv file. So I'm sure there has to be something.
If anyone can help me with this that would be great help!
Thanks, Mac
You need a plugin to do this, try one of these:
If your're wanting to write code to do this, then take a look at lib/csvlib.class.php - that is a helpful wrapper for the standard PHP csv functions.