Help getting all activities DB query

Re: Help getting all activities DB query

by Muris Poprženović -
Number of replies: 0

Ok, i figured this out, each activity module has its own table, named with same name as folder where it is located. I could probably loop through folder mod and check every folder and with that make query. Trouble is next, how does moodle assign activity ID. I took a look on database, and ID is 1, but on link on course its totaly diferent number. Any help or guide?