original_string: protected function genericHandle($dataFormatterClass, $ext, GridField $gridField, $request = null)
      {
          $items = $this->getItems($gridField);
  
          $this->setHeader($gridField, $ext);
  
  
          $formater = new $dataFormatterClass();
          $formater->setUseLabelsAsHeaders($this->useLabelsAsHeaders);
  
          $fileData = $formater->convertDataObjectSet($items);
  
          return $fileData;
      }
code: protected function genericHandle($dataFormatterClass, $ext, GridField $gridField, $request = null)
      {
          $items = $this->getItems($gridField);
  
          $this->setHeader($gridField, $ext);
  
  
          $formater = new $dataFormatterClass();
          $formater->setUseLabelsAsHeaders($this->useLabelsAsHeaders);
  
          $fileData = $formater->convertDataObjectSet($items);
  
          return $fileData;
      }
code_tokens: protected function genericHandle ( $ dataFormatterClass , $ ext , GridField $ gridField , $ request = null ) { $ items = $ this -> getItems ( $ gridField ) ; $ this -> setHeader ( $ gridField , $ ext ) ; $ formater = new $ dataFormatterClass ( ) ; $ formater -> setUseLabelsAsHeaders ( $ this -> useLabelsAsHeaders ) ; $ fileData = $ formater -> convertDataObjectSet ( $ items ) ; return $ fileData ; }
docstring: Generic Handle request that will return a Spread Sheet in the requested format
  @param  string    $dataFormatterClass
  @param  string    $ext
  @param  GridField $gridField
  @param  SS_HTTPRequest    $request
  @return string
docstring_tokens: Generic Handle request that will return a Spread Sheet in the requested format