public static function add_comment(comment $comment) {
        global $DB;
        $comment->id = null;
        return $DB->insert_record('assignfeedback_editpdf_cmnt', $comment);
    }
public static function add_comment(comment $comment) {
        global $DB;
        $comment->id = null;
        return $DB->insert_record('assignfeedback_editpdf_cmnt', $comment);
    }
public static function add_comment ( comment $ comment ) { global $ DB ; $ comment -> id = null ; return $ DB -> insert_record ( 'assignfeedback_editpdf_cmnt' , $ comment ) ; }
Add a comment to a page.
@param comment $comment
@return bool
Add a comment to a page .