Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Grading methods: Difference between revisions

From MoodleDocs
(Created page with "Rubrics are not enough? Here's how to write your own grading methods! ==See also== en:Advanced_grading_methods")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
Rubrics are not enough?  Here's how to write your own grading methods!
Rubrics are not enough?  Here's how to write your own advanced grading methods for teachers to use in gradeable activities!
 
see Rubrics in grade/grading/form/rubric as an example
 
Frankenstyle prefix for advanced grading plugins is gradingform. The directory to land the plugins is grade/grading/form.
 
The required files in the advanced grading plugin are:
* version.php
* lib.php
* edit.php (or other path if gradingform_controller::get_editor_url is overriden)
* lang/en/gradingform_PLUGINNAME.php
 
If plugin defines it’s own database tables and/or can be backed up and restored, the following files need to be present:
* db/install.xml
* backup/moodle2/backup_gradingform_PLUGINNAME_plugin.class.php
* backup/moodle2/restore_gradingform_PLUGINNAME_plugin.class.php
 
It also can be also very useful to have files
* renderer.php
* styles.css
 
Please refer to other parts of dev docs on how to write language file, version.php, backup/*, renderer.php and db/*.




==See also==
==See also==
[[:en:Advanced_grading_methods]]
* [[:en:Advanced grading methods]] - user docs
* [[Advanced grading API]] - dev docs for activity module writers
 
 
[[Category:Plugins]]

Latest revision as of 05:53, 30 January 2012

Rubrics are not enough? Here's how to write your own advanced grading methods for teachers to use in gradeable activities!

see Rubrics in grade/grading/form/rubric as an example

Frankenstyle prefix for advanced grading plugins is gradingform. The directory to land the plugins is grade/grading/form.

The required files in the advanced grading plugin are:

  • version.php
  • lib.php
  • edit.php (or other path if gradingform_controller::get_editor_url is overriden)
  • lang/en/gradingform_PLUGINNAME.php

If plugin defines it’s own database tables and/or can be backed up and restored, the following files need to be present:

  • db/install.xml
  • backup/moodle2/backup_gradingform_PLUGINNAME_plugin.class.php
  • backup/moodle2/restore_gradingform_PLUGINNAME_plugin.class.php

It also can be also very useful to have files

  • renderer.php
  • styles.css

Please refer to other parts of dev docs on how to write language file, version.php, backup/*, renderer.php and db/*.


See also