I have just started learning moodle programming. I need to add functionality in moodle to categorise students site-wide, into groups. These groups will themselves be grouped which in turn will be grouped and it goes on. What type of plugin would you suggest for this?
Here basically, I need to have a full page with the required UI. I need the page to be called from a sub-menu in Site Administration. Can I implement this as a type of plugin, or do I have to do it some other way?
Thanks
Evans
It's likely that forthcoming version 2.0 of Moodle will do what you want. Please install a test Moodle 2.0 and find out how it works before re-inventing the wheel.
Joseph
As Joseph says, have a look at the new Cohorts feature in Moodle 2.0. It may be that your plugin is most naturally an interface for creating cohorts.
Yeah, I will be using cohorts, but I need to have a multi-level hierarchy - ie., groups of groups of groups of cohorts.
Why do you suggest admin report over some other type of plugin? Is there a website/page where I can get info about each type of plugin and what each is meant for?
There is a probably complete list of plugin types at Development:Developer_documentation#Make_a_new_plugin. For a definitive list of plugin types, execute the following PHP script in a Moodle 2.0 install:
require_once('config.php');
print_object(get_plugin_types());
The purpose of most plugins is clear (for example, authentication plugin). It is only a few situations, like this one, where there is some ambiguity, and to be honest, in these cases, none of the plausible answers will be wrong. It is just that some of the choices will be slightly less work, depending on exactly what you want to do.