Recently I have begun to work with moodle, then I dont have a wide experience with it.
I am making a external module and I need to use some data from the database of moodle.
My problem is I dont know where moodle saves the it data.
I need to know how moodle knows who is teacher:
I saw the table user and I saw all users (teachers,admins,users) are saved here but I in this table the type of user isn't here.
So I would like to know can I get all teachers of moodle?
Also I want to use user and password data of table user of moodle but I saw that moodle uses a salt (keyword) to encrypt the password.
Also I saw for use the user data, I need to password join and the salt but I dont know how get the salt, I reviewed the config file but the salt doesn't have value.
Somebody knows How can I get it??
I am using moodle 2.5