Moodle 1.9 Extension Development.
Customize and extend Moodle using its robust plug-in systems.
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Otros Autores: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Pub.,
2010.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Moodle 1.9 Extension Development; Moodle 1.9 Extension Development; Credits; About the Authors; About the Reviewer; Preface; Approach; What this book covers; Who this book is for; Conventions; Reader feedback; Customer support; Errata; Piracy; Questions; 1. Moodle Architecture; Understanding the stack; Database; Operating system; Web server; Directory and system structure; Moodle code; Moodle database; Moodle data; Installing Moodle; Moodle program execution; Executing config.php; Including Moodle libraries; Getting our data; Displaying in Moodle; Configuring Moodle.
- Setting configuration variablesMoodle's API; Other important libraries; PEAR; ADOdb; YUI; XMLDB; Access control, logins, and roles; Moodle permission contexts; Capabilities; Moodle roles; Assigning roles; Summary; 2. Creating and Modifying Blocks; Creating a block from scratch; Assigning content to our block; Adding a language file; Working with capabilities; Testing for built-in capabilities; Hiding a block based on capabilities; Adding your own capability; Checking for our new capability; Adding instance configuration; Capturing your configuration content; Displaying your content.
- Adding scheduled actions to our blockReviewing a real world block; Reviewing block_instructor_contact.php; Configuring the instructor contact block; Using a block as a code container; Creating a block stub for our container; Creating capabilities for our container; Summary; 3. Creating and Modifying Filters; How a filter works; Building a filter; Getting started; Creating the language file; Creating the filter code; Activating the filter; Adding configuration settings; Using our settings; Summary; 4. Creating and Modifying Activity Modules; The scope of creating an activity module.
- Our module-activity Foo!Getting started with the NEWMODULE template; Completing mod_form.php; Defining input values; Using common form elements; Making version.php; Setting icon.gif; Generating install.xml; Using the XMLDB editor; Defining our activity database; Defining the foo_responses table; Defining log types; Creating access.php; Updating index.php; Adding clean language strings; Looking up response data; Displaying our table of activities; Displaying course sections; Committing output; Finishing view.php; Including submit_form.php; Your code goes here; Context control.
- Developing a formCancel option; Submitted data; Setting grades; Displaying submission form; Displaying submissions; Group support; Coding lib.php; Function add_instance; Function foo_delete_instance; Function foo_user_outline; Function foo_user_complete; Function foo_get_participants; Function reset_course_form_definition; Function foo_reset_course_form_defaults; Function foo_reset_userdata; Inserting grades into the gradebook; Using grade_update; Setting the grade type; Upgrading our activity database; Using the XMLDB editor for database upgrades; Updating upgrade.php.