public static function get_comments() {
        global $DB, $USER;

        $comments = array();
        $records = $DB->get_records('assignfeedback_editpdf_quick', array('userid'=>$USER->id));

        return $records;
    }
public static function get_comments() {
        global $DB, $USER;

        $comments = array();
        $records = $DB->get_records('assignfeedback_editpdf_quick', array('userid'=>$USER->id));

        return $records;
    }
public static function get_comments ( ) { global $ DB , $ USER ; $ comments = array ( ) ; $ records = $ DB -> get_records ( 'assignfeedback_editpdf_quick' , array ( 'userid' => $ USER -> id ) ) ; return $ records ; }
Get all comments for the current user.
@return array(comment)
Get all comments for the current user .