2004-02-12 06:41:17 +00:00
|
|
|
ACTIVITY MODULES
|
|
|
|
----------------
|
2002-08-03 02:29:21 +00:00
|
|
|
|
2004-02-12 06:41:17 +00:00
|
|
|
These are main modules in Moodle, allowing various activities.
|
|
|
|
|
|
|
|
|
|
|
|
Each of these modules contains a number of expected components:
|
2002-08-03 02:29:21 +00:00
|
|
|
|
2008-06-01 19:09:13 +00:00
|
|
|
mod_form.php: a form to setup/update a module instance
|
2002-09-07 03:31:36 +00:00
|
|
|
|
|
|
|
version.php: defines some meta-info and provides upgrading code
|
|
|
|
|
2010-03-24 10:56:22 +00:00
|
|
|
pix/icon.gif: a 16x16 icon for the module
|
2002-09-07 03:31:36 +00:00
|
|
|
|
2009-07-09 20:02:27 +00:00
|
|
|
db/install.xml: an SQL dump of all the required db tables and data
|
2009-11-01 16:48:45 +00:00
|
|
|
|
2002-09-07 03:31:36 +00:00
|
|
|
index.php: a page to list all instances in a course
|
|
|
|
|
|
|
|
view.php: a page to view a particular instance
|
|
|
|
|
|
|
|
lib.php: any/all functions defined by the module should be in here.
|
2002-08-03 02:29:21 +00:00
|
|
|
constants should be defined using MODULENAME_xxxxxx
|
|
|
|
functions should be defined using modulename_xxxxxx
|
|
|
|
|
|
|
|
There are a number of standard functions:
|
|
|
|
|
|
|
|
modulename_add_instance()
|
|
|
|
modulename_update_instance()
|
|
|
|
modulename_delete_instance()
|
|
|
|
|
|
|
|
modulename_user_complete()
|
|
|
|
modulename_user_outline()
|
|
|
|
|
|
|
|
modulename_cron()
|
|
|
|
|
2002-09-22 06:47:11 +00:00
|
|
|
modulename_print_recent_activity()
|
|
|
|
|
2004-02-12 06:41:17 +00:00
|
|
|
|
|
|
|
If you are a developer and interested in developing new Modules see:
|
2009-11-01 16:48:45 +00:00
|
|
|
|
2004-02-12 06:41:17 +00:00
|
|
|
Moodle Documentation: http://moodle.org/doc
|
|
|
|
Moodle Community: http://moodle.org/community
|