Development:Registration
From MoodleDocs
Logic of the registration script
- Open registry table on moodle.org (or wherever)
- Open table in the hub_site_directory table from the MOOCH database
- For each entry in this table
- If it has a siteidentifier field and a corresponding entry in registry table exists
- Compare these two records below
- Else If it has a URL field and a corresponding entry in registry table exists
- Compare these two records below
- Else If it has a host field and a corresponding entry in registry table exists
- Compare these two records below
- If it has a siteidentifier field and a corresponding entry in registry table exists
- If MOOCH->timemodified is larger/later than registry->timemodified then
- If the email address is different:
- Unsubscribe registry->email from Sympa
- Subscribe MOOCH->email to Sympa
- Update the complete registry entry with new info
- If the email address is different:
- If MOOCH->timemodified is larger/later than registry->timemodified then