original_string: public static function export_bulk_export_data($id, $itemids, $exportfeedback, $onlyactive, $displaytype,
                                                     $decimalpoints, $updatedgradesonly = null, $separator = null) {
  
          $formdata = new \stdClass();
          $formdata->id = $id;
          $formdata->itemids = self::convert_flat_itemids_to_array($itemids);
          $formdata->exportfeedback = $exportfeedback;
          $formdata->export_onlyactive = $onlyactive;
          $formdata->display = self::convert_flat_displaytypes_to_array($displaytype);
          $formdata->decimals = $decimalpoints;
  
          if (!empty($updatedgradesonly)) {
              $formdata->updatedgradesonly = $updatedgradesonly;
          }
  
          if (!empty($separator)) {
              $formdata->separator = $separator;
          }
  
          return $formdata;
      }
code: public static function export_bulk_export_data($id, $itemids, $exportfeedback, $onlyactive, $displaytype,
                                                     $decimalpoints, $updatedgradesonly = null, $separator = null) {
  
          $formdata = new \stdClass();
          $formdata->id = $id;
          $formdata->itemids = self::convert_flat_itemids_to_array($itemids);
          $formdata->exportfeedback = $exportfeedback;
          $formdata->export_onlyactive = $onlyactive;
          $formdata->display = self::convert_flat_displaytypes_to_array($displaytype);
          $formdata->decimals = $decimalpoints;
  
          if (!empty($updatedgradesonly)) {
              $formdata->updatedgradesonly = $updatedgradesonly;
          }
  
          if (!empty($separator)) {
              $formdata->separator = $separator;
          }
  
          return $formdata;
      }
code_tokens: public static function export_bulk_export_data ( $ id , $ itemids , $ exportfeedback , $ onlyactive , $ displaytype , $ decimalpoints , $ updatedgradesonly = null , $ separator = null ) { $ formdata = new \ stdClass ( ) ; $ formdata -> id = $ id ; $ formdata -> itemids = self :: convert_flat_itemids_to_array ( $ itemids ) ; $ formdata -> exportfeedback = $ exportfeedback ; $ formdata -> export_onlyactive = $ onlyactive ; $ formdata -> display = self :: convert_flat_displaytypes_to_array ( $ displaytype ) ; $ formdata -> decimals = $ decimalpoints ; if ( ! empty ( $ updatedgradesonly ) ) { $ formdata -> updatedgradesonly = $ updatedgradesonly ; } if ( ! empty ( $ separator ) ) { $ formdata -> separator = $ separator ; } return $ formdata ; }
docstring: Create a stdClass object from URL parameters to be used by grade_export class.
  
  @param int $id course id.
  @param string $itemids grade items comma separated.
  @param bool $exportfeedback export feedback option.
  @param bool $onlyactive only enrolled active students.
  @param string $displaytype grade display type constants comma separated.
  @param int $decimalpoints grade decimal points.
  @param null $updatedgradesonly recently updated grades only (Used by XML exporting only).
  @param null $separator separator character: tab, comma, colon and semicolon (Used by TXT exporting only).
  
  @return stdClass $formdata
docstring_tokens: Create a stdClass object from URL parameters to be used by grade_export class .