Development:Registration: Difference between revisions
From MoodleDocs
(New page: ===Logic of the registration script=== * Open ***registry*** table on moodle.org (or wherever) * Open table in the [https://docs.moodle.org/en/Development:Community_hub_-_technical_specif...) |
|||
Line 2: | Line 2: | ||
* Open | * Open '''registry''' table on moodle.org (or wherever) | ||
* Open table in the [https://docs.moodle.org/en/Development:Community_hub_-_technical_specification#Data_structure_2 hub_site_directory] table from the | * Open table in the [https://docs.moodle.org/en/Development:Community_hub_-_technical_specification#Data_structure_2 hub_site_directory] table from the '''MOOCH''' database | ||
* For each entry in this table | * For each entry in this table | ||
** If it has a siteidentifier field | ** If it has a siteidentifier field |
Revision as of 08:11, 15 September 2010
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
- If a corresponding entry in registry table exists
- If the MOOCH->timemodified > registry->timemodified then
- If the email address has changed, unsubscribe old and subscribe new to Sympa
- Update the complete registry entry with new info
- If the MOOCH->timemodified > registry->timemodified then
- If a corresponding entry in registry table exists
- Else use the URL
- If a corresponding URL exists in registry table
- If the MOOCH->timemodified > registry->timemodified then
- If the email address has changed, unsubscribe old and subscribe new to Sympa
- Update the complete registry entry with new info
- If the MOOCH->timemodified > registry->timemodified then
- If a corresponding URL exists in registry table
- Else use the hostname
- If a corresponding entry in registry table exists
- If the MOOCH->timemodified > registry->timemodified then
- If the email address has changed, unsubscribe old and subscribe new to Sympa
- Update the complete registry entry with new info
- If the MOOCH->timemodified > registry->timemodified then
- If a corresponding entry in registry table exists
- Else it's a new one, so create a new entry in the registry table
- If it has a siteidentifier field