Where does the calendar look in the database?

Where does the calendar look in the database?

by Tom Pelly -
Number of replies: 2

Hi,

From looking at the 'mdl_events' table in the moodle database, I can't see any flags that the calendar can use to decide if an event is private to an individual user, or a global event that should be visible to all users.

I'm building a tool to extract all the global events out of the database, but can't see from the database how to pick out only the global ones.

Can anybody enlighten me?

 

Thanks,
Tom

Average of ratings: -
In reply to Tom Pelly

Re: Where does the calendar look in the database?

by Teemu Sumi -
When courseid column is 1.


Teemu
In reply to Teemu Sumi

Re: Where does the calendar look in the database?

by John Papaioannou -
Actually, when the courseid column is equal to the constant SITEID. 99% of the time this is equal to 1. wink