1414// You should have received a copy of the GNU General Public License
1515// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
1616/**
17+ * Privacy class for requesting user data.
18+ *
1719 * @package mod_pdfannotator
18- * @category backup
20+ * @category privacy
1921 * @copyright 2018 RWTH Aachen (see README.md)
2022 * @author Anna Heynkes
2123 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
@@ -309,9 +311,9 @@ public static function delete_data_for_all_users_in_context(\context $context) {
309311
310312 /**
311313 *
312- * @global type $DB
313- * @param \mod_pdfannotator\privacy\approved_contextlist $contextlist
314- * @return type
314+ * Delete personal data for the user in a list of contexts.
315+ *
316+ * @param \mod_pdfannotator\privacy\approved_contextlist $contextlist List of contexts to delete data from.
315317 */
316318 public static function delete_data_for_user (approved_contextlist $ contextlist ) {
317319
@@ -372,8 +374,7 @@ public static function delete_data_for_user(approved_contextlist $contextlist) {
372374 /**
373375 * Function deletes an annotation and all comments and subscriptions attached to it.
374376 *
375- * @global \mod_pdfannotator\privacy\type $DB
376- * @param type $annotationid
377+ * @param int $annotationid One annotationid (int) to delete
377378 */
378379 public static function delete_annotation ($ annotationid ) {
379380
@@ -400,6 +401,13 @@ public static function delete_annotation($annotationid) {
400401 $ DB ->delete_records ('pdfannotator_annotations ' , array ("id " => $ annotationid ));
401402 }
402403
404+ /**
405+ * Function empties or deletes a comment.
406+ *
407+ * @param \mod_pdfannotator\output\comment $comment comment to be emptied or deleted
408+ *
409+ * @throws \dml_exception
410+ */
403411 public static function empty_or_delete_comment ($ comment ) {
404412
405413 global $ DB ;
0 commit comments