Fileref:config.html
This is the main configuration page for the Sloodle module. Note: it is only a fragment which cannot be accessed directly. It must be accessed through the Moodle modules script.
When first accessed, the file carries out initial processing of existing Moodle data to check if Sloodle settings exist in the Moodle configuration table. If not, it creates appropriate default values. An HTML form is displayed allowing the user to submit their configuration options. A configuration processing function (sloodle_process_options defined in lib.php) is called by the Moodle framework to validate the configuration. If valid, then it is stored and Moodle takes over. However, if the configuration is invalid, then the user is re-directed back to the configuration page, and appropriate error messages are displayed.
Dependencies
Sloodle files:
Algorithm
- Get prim password from database
- Get user authentication method from database
- Did prim password exist? If not then:
- Generate random prim password
- Store random password in database
- If user submitted password via web-form then store prim password locally
- Did user authentication method exist? If not then:
- Store default method
- If user submitted method via web-form then store method locally
- Displaying heading with version numbers
- Display error messages (if any were specified)
- Display web-form with user-submitted data if available, or database data if not
| This page is part of the SLOODLE documentation | |||
|---|---|---|---|
| Docs: Users | Administrators | Developers | |||
| Wiki Frontpage Sloodle.org | |||