public static function add_annotation(annotation $annotation) {
        global $DB;

        $annotation->id = null;
        return $DB->insert_record('assignfeedback_editpdf_annot', $annotation);
    }
public static function add_annotation(annotation $annotation) {
        global $DB;

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