public static function has_annotations_or_comments($gradeid, $includedraft) {
        global $DB;
        $params = array('gradeid'=>$gradeid);
        if (!$includedraft) {
            $params['draft'] = 0;
        }
        if ($DB->count_records('assignfeedback_editpdf_cmnt', $params)) {
            return true;
        }
        if ($DB->count_records('assignfeedback_editpdf_annot', $params)) {
            return true;
        }
        return false;
    }
public static function has_annotations_or_comments($gradeid, $includedraft) {
        global $DB;
        $params = array('gradeid'=>$gradeid);
        if (!$includedraft) {
            $params['draft'] = 0;
        }
        if ($DB->count_records('assignfeedback_editpdf_cmnt', $params)) {
            return true;
        }
        if ($DB->count_records('assignfeedback_editpdf_annot', $params)) {
            return true;
        }
        return false;
    }
public static function has_annotations_or_comments ( $ gradeid , $ includedraft ) { global $ DB ; $ params = array ( 'gradeid' => $ gradeid ) ; if ( ! $ includedraft ) { $ params [ 'draft' ] = 0 ; } if ( $ DB -> count_records ( 'assignfeedback_editpdf_cmnt' , $ params ) ) { return true ; } if ( $ DB -> count_records ( 'assignfeedback_editpdf_annot' , $ params ) ) { return true ; } return false ; }
Has annotations or comments.
@param int $gradeid
@return bool
Has annotations or comments .