Interface Script
An interface script is any script in the Sloodle module which a user accesses directly with their web-browser, so they are just like any other web-page. They have various purposes, including configuring the module, setting up login zones, and creating configuration notecards. When developing interface scripts, it is important to try to be consistent with Moodle conventions, such as using the standard header and footer, or including links to help documentation.
Many of these things need to be done using Moodle functions, which we do not document here. You can find plenty of documentation at Moodle.org, as well as a complete listing of Moodle functions at this address:
http://phpdocs.moodle.org/
Is is also important to remember that some interface scripts are not 'standalone'. This means that the user may not access them directly, but rather, access will occur through the Moodle framework. An example of this is the config.html page, which is a fragment of PHP/HTML. It is included by Moodle's "module.php" page, so it does not need to have its own header/footer, and it does not need to include the Moodle files itself.
We are trying to make Sloodle a more standards-compliant module, so more of the interface scripts are likely to become fragments like those.
See Also
| This page is part of the SLOODLE documentation | |||
|---|---|---|---|
| Docs: Users | Administrators | Developers | |||
| Wiki Frontpage Sloodle.org | |||