[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Source view] [Print] [Project Stats]
This file contains the function for feedback_plugin abstract class
Copyright: | 2012 NetSpot {@link http://www.netspot.com.au} |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 167 lines (6 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
get_subtype() X-Ref |
Return subtype name of the plugin. return: string |
format_for_gradebook(stdClass $grade) X-Ref |
If this plugin adds to the gradebook comments field, it must specify the format of the comment. (From weblib.php) define('FORMAT_MOODLE', '0'); // Does all sorts of transformations and filtering define('FORMAT_HTML', '1'); // Plain HTML (with some tags stripped) define('FORMAT_PLAIN', '2'); // Plain text (even tags are printed in full) define('FORMAT_WIKI', '3'); // Wiki-formatted text define('FORMAT_MARKDOWN', '4'); // Markdown-formatted Only one feedback plugin can push comments to the gradebook and that is chosen by the assignment settings page. param: stdClass $grade The grade return: int |
text_for_gradebook(stdClass $grade) X-Ref |
If this plugin adds to the gradebook comments field, it must format the text of the comment. Only one feedback plugin can push comments to the gradebook and that is chosen by the assignment settings page. param: stdClass $grade The grade return: string |
supports_quickgrading() X-Ref |
Override to indicate a plugin supports quickgrading. return: boolean - True if the plugin supports quickgrading |
get_quickgrading_html($userid, $grade) X-Ref |
Get quickgrading form elements as html. param: int $userid The user id in the table this quickgrading element relates to param: mixed $grade grade or null - The grade data. return: mixed - A html string containing the html form elements required for |
is_quickgrading_modified($userid, $grade) X-Ref |
Has the plugin quickgrading form element been modified in the current form submission? param: int $userid The user id in the table this quickgrading element relates to param: stdClass $grade The grade return: boolean - true if the quickgrading form element has been modified |
save_quickgrading_changes($userid, $grade) X-Ref |
Save quickgrading changes. param: int $userid The user id in the table this quickgrading element relates to param: stdClass $grade The grade return: boolean - true if the grade changes were saved correctly |
get_grading_batch_operations() X-Ref |
Return a list of the batch grading operations supported by this plugin. return: array - An array of action and description strings. |
get_grading_actions() X-Ref |
Return a list of the grading actions supported by this plugin. A grading action is a page that is not specific to a user but to the whole assignment. return: array - An array of action and description strings. |
grading_action($gradingaction) X-Ref |
Show a grading action form param: string $gradingaction The action chosen from the grading actions menu return: string The page containing the form |
grading_batch_operation($action, $users) X-Ref |
Show a batch operations form param: string $action The action chosen from the batch operations menu param: array $users The list of selected userids return: string The page containing the form |
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |