public static function get_annotation($annotationid) {
        global $DB;

        $record = $DB->get_record('assignfeedback_editpdf_annot', array('id'=>$annotationid), '*', IGNORE_MISSING);
        if ($record) {
            return new annotation($record);
        }
        return false;
    }
public static function get_annotation($annotationid) {
        global $DB;

        $record = $DB->get_record('assignfeedback_editpdf_annot', array('id'=>$annotationid), '*', IGNORE_MISSING);
        if ($record) {
            return new annotation($record);
        }
        return false;
    }
public static function get_annotation ( $ annotationid ) { global $ DB ; $ record = $ DB -> get_record ( 'assignfeedback_editpdf_annot' , array ( 'id' => $ annotationid ) , '*' , IGNORE_MISSING ) ; if ( $ record ) { return new annotation ( $ record ) ; } return false ; }
Get a single annotation by id.
@param int $annotationid
@return annotation or false
Get a single annotation by id .