New block - How I access the database?

New block - How I access the database?

by Fabiano Oliveira -
Number of replies: 0
Hi. I'm working in a new block for moodle, and I need to access the database from a php to create some text files. I follow the HOWTO.html and I created a simple block with a static text without problems. But there don't say anything about database access. I didn't found anything about it here in moodle.org or in forums yet. I wanna know how I can access the database, if have any lib that I can use or something like that.

Thx
Average of ratings: -