original_string: protected function queryIsDone()
      {
          $result = false;
  
          $statReplyString = $this->fetchURL($this->pazpar2StatURL());
          $statReply = GeneralUtility::xml2array($statReplyString);
  
          if ($statReply) {
              // The progress variable is a string representing a number between
              // 0.00 and 1.00.
              // Casting it to int gives 0 as long as the value is < 1.
              $progress = (int)$statReply['progress'];
              $result = ($progress === 1);
              if ($result === true) {
                  // We are done: note that and get the record count.
                  $this->setDidRun(true);
                  $this->setTotalResultCount($statReply['hits']);
              }
          } else {
              GeneralUtility::devLog('could not parse pazpar2 stat reply', 'pazpar2', 3);
          }
  
          return $result;
      }
code: protected function queryIsDone()
      {
          $result = false;
  
          $statReplyString = $this->fetchURL($this->pazpar2StatURL());
          $statReply = GeneralUtility::xml2array($statReplyString);
  
          if ($statReply) {
              // The progress variable is a string representing a number between
              // 0.00 and 1.00.
              // Casting it to int gives 0 as long as the value is < 1.
              $progress = (int)$statReply['progress'];
              $result = ($progress === 1);
              if ($result === true) {
                  // We are done: note that and get the record count.
                  $this->setDidRun(true);
                  $this->setTotalResultCount($statReply['hits']);
              }
          } else {
              GeneralUtility::devLog('could not parse pazpar2 stat reply', 'pazpar2', 3);
          }
  
          return $result;
      }
code_tokens: protected function queryIsDone ( ) { $ result = false ; $ statReplyString = $ this -> fetchURL ( $ this -> pazpar2StatURL ( ) ) ; $ statReply = GeneralUtility :: xml2array ( $ statReplyString ) ; if ( $ statReply ) { // The progress variable is a string representing a number between // 0.00 and 1.00. // Casting it to int gives 0 as long as the value is < 1. $ progress = ( int ) $ statReply [ 'progress' ] ; $ result = ( $ progress === 1 ) ; if ( $ result === true ) { // We are done: note that and get the record count. $ this -> setDidRun ( true ) ; $ this -> setTotalResultCount ( $ statReply [ 'hits' ] ) ; } } else { GeneralUtility :: devLog ( 'could not parse pazpar2 stat reply' , 'pazpar2' , 3 ) ; } return $ result ; }
docstring: Checks whether the query is done.
  Requires a session to be established.
  
  @param int $count return by reference the current number of results
  @return bool True when query has finished, False otherwise
docstring_tokens: Checks whether the query is done . Requires a session to be established .