original_string: protected function create_feedback($courseid, $itemid, $value) {
          // Case of an id, only maps id of a grade_item.
          // This was idnumber.
          if (!new grade_item(array('id' => $itemid, 'courseid' => $courseid))) {
              // Supplied bad mapping, should not be possible since user
              // had to pick mapping.
              $this->cleanup_import(get_string('importfailed', 'grades'));
              return null;
          }
  
          // The itemid is the id of the grade item.
          $feedback = new stdClass();
          $feedback->itemid   = $itemid;
          $feedback->feedback = $value;
          return $feedback;
      }
code: protected function create_feedback($courseid, $itemid, $value) {
          // Case of an id, only maps id of a grade_item.
          // This was idnumber.
          if (!new grade_item(array('id' => $itemid, 'courseid' => $courseid))) {
              // Supplied bad mapping, should not be possible since user
              // had to pick mapping.
              $this->cleanup_import(get_string('importfailed', 'grades'));
              return null;
          }
  
          // The itemid is the id of the grade item.
          $feedback = new stdClass();
          $feedback->itemid   = $itemid;
          $feedback->feedback = $value;
          return $feedback;
      }
code_tokens: protected function create_feedback ( $ courseid , $ itemid , $ value ) { // Case of an id, only maps id of a grade_item. // This was idnumber. if ( ! new grade_item ( array ( 'id' => $ itemid , 'courseid' => $ courseid ) ) ) { // Supplied bad mapping, should not be possible since user // had to pick mapping. $ this -> cleanup_import ( get_string ( 'importfailed' , 'grades' ) ) ; return null ; } // The itemid is the id of the grade item. $ feedback = new stdClass ( ) ; $ feedback -> itemid = $ itemid ; $ feedback -> feedback = $ value ; return $ feedback ; }
docstring: Check to see if the feedback matches a grade item.
  
  @param int $courseid The course ID.
  @param int $itemid The ID of the grade item that the feedback relates to.
  @param string $value The actual feedback being imported.
  @return object Creates a feedback object with the item ID and the feedback value.
docstring_tokens: Check to see if the feedback matches a grade item .