Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
|
Directories | |
directory | classes |
| |
Namespaces | |
namespace | assignsubmission_comments\event |
The assignsubmission_comments comment created event. | |
namespace | assignsubmission_comments\privacy |
Privacy class for requesting user data. | |
Classes | |
class | assign_submission_comments |
Library class for comment submission plugin extending submission plugin base class. More... | |
class | assignsubmission_comments\event\comment_created |
The assignsubmission_comments comment created event class. More... | |
class | assignsubmission_comments\event\comment_deleted |
The assignsubmission_comments comment deleted event. More... | |
class | assignsubmission_comments\privacy\provider |
Privacy class for requesting user data. More... | |
Functions | |
assignsubmission_comments_comment_add (stdClass $comment, stdClass $param) | |
Callback to force the userid for all comments to be the userid of the submission and NOT the global $USER->id. | |
assignsubmission_comments_comment_display ($comments, $options) | |
Callback called by comment\get_comments() and comment\add(). | |
assignsubmission_comments_comment_permissions (stdClass $options) | |
Permission control method for submission plugin -— required method for AJAXmoodle based comment API. | |
assignsubmission_comments_comment_validate (stdClass $options) | |
Callback method for data validation-— required method for AJAXmoodle based comment API. | |
xmldb_assignsubmission_comments_install () | |
Code run after the module database tables have been created. | |
xmldb_assignsubmission_comments_upgrade ($oldversion) | |
Stub for upgrade code. | |
Variables | |
$capabilities | |
Capability definitions for this module. | |
$plugin = 2023100400 | |
$plugin | component = 'assignsubmission_comments' |
$plugin | version = 2023100900 |
assignsubmission_comments_comment_add | ( | stdClass | $comment, |
stdClass | $param ) |
Callback to force the userid for all comments to be the userid of the submission and NOT the global $USER->id.
This is required by the upgrade code. Note the comment area is used to identify upgrades.
stdClass | $comment | |
stdClass | $param |
assignsubmission_comments_comment_display | ( | $comments, | |
$options ) |
Callback called by comment\get_comments() and comment\add().
Gives an opportunity to enforce blind-marking.
array | $comments | |
stdClass | $options |
array |
comment_exception |
assignsubmission_comments_comment_permissions | ( | stdClass | $options | ) |
Permission control method for submission plugin -— required method for AJAXmoodle based comment API.
stdClass | $options |
array |
assignsubmission_comments_comment_validate | ( | stdClass | $options | ) |
Callback method for data validation-— required method for AJAXmoodle based comment API.
stdClass | $options |
bool |
xmldb_assignsubmission_comments_install | ( | ) |
Code run after the module database tables have been created.
Moves the comments plugin to the bottom
bool |
xmldb_assignsubmission_comments_upgrade | ( | $oldversion | ) |
Stub for upgrade code.
int | $oldversion |
bool |
$capabilities |
Capability definitions for this module.