original_string: protected function convert_file_results($responsedoc) {
          if (!$docs = $responsedoc->response->docs) {
              return array();
          }
  
          $out = array();
  
          foreach ($docs as $doc) {
              // Copy the bare minimim needed info.
              $result = new \stdClass();
              $result->id = $doc->id;
              $result->modified = document::import_time_from_engine($doc->modified);
              $result->title = $doc->title;
              $result->solr_fileid = $doc->solr_fileid;
              $result->solr_filecontenthash = $doc->solr_filecontenthash;
              $result->solr_fileindexstatus = $doc->solr_fileindexstatus;
              $out[] = $result;
          }
  
          return $out;
      }
code: protected function convert_file_results($responsedoc) {
          if (!$docs = $responsedoc->response->docs) {
              return array();
          }
  
          $out = array();
  
          foreach ($docs as $doc) {
              // Copy the bare minimim needed info.
              $result = new \stdClass();
              $result->id = $doc->id;
              $result->modified = document::import_time_from_engine($doc->modified);
              $result->title = $doc->title;
              $result->solr_fileid = $doc->solr_fileid;
              $result->solr_filecontenthash = $doc->solr_filecontenthash;
              $result->solr_fileindexstatus = $doc->solr_fileindexstatus;
              $out[] = $result;
          }
  
          return $out;
      }
code_tokens: protected function convert_file_results ( $ responsedoc ) { if ( ! $ docs = $ responsedoc -> response -> docs ) { return array ( ) ; } $ out = array ( ) ; foreach ( $ docs as $ doc ) { // Copy the bare minimim needed info. $ result = new \ stdClass ( ) ; $ result -> id = $ doc -> id ; $ result -> modified = document :: import_time_from_engine ( $ doc -> modified ) ; $ result -> title = $ doc -> title ; $ result -> solr_fileid = $ doc -> solr_fileid ; $ result -> solr_filecontenthash = $ doc -> solr_filecontenthash ; $ result -> solr_fileindexstatus = $ doc -> solr_fileindexstatus ; $ out [ ] = $ result ; } return $ out ; }
docstring: A very lightweight handler for getting information about already indexed files from a Solr response.
  
  @param SolrObject $responsedoc A Solr response document
  @return stdClass[] An array of objects that contain the basic information for file processing.
docstring_tokens: A very lightweight handler for getting information about already indexed files from a Solr response .