public function isFinished()
    {
        $batch = $this->getBatch();
        if ($this->_finished) {
            $batch->resetCounter('movestarted');
            $moved    = $batch->getCounter('moved');
            $notFound = $batch->getCounter('notfound');
            
            $this->getBatch()->addMessage(
                    sprintf($this->_('%d \'%s\' survey answers have been copied to \'%s\'.'),
                            $moved,
                            $this->sourceSurveyName,
                            $this->targetSurveyName));
            if ($notFound > 0) {
                $this->getBatch()->addMessage(sprintf($this->_('For %d tokens no answers were found.'), $notFound));
            }
        } else {
            if ($this->getBatch()->getCounter('movesteps') === 0) {
                // Add 1 to the counter to keep going
                $this->getBatch()->addStepCount(1);
            }
        }
        return $this->_finished;
    }
public function isFinished()
    {
        $batch = $this->getBatch();
        if ($this->_finished) {
            $batch->resetCounter('movestarted');
            $moved    = $batch->getCounter('moved');
            $notFound = $batch->getCounter('notfound');
            
            $this->getBatch()->addMessage(
                    sprintf($this->_('%d \'%s\' survey answers have been copied to \'%s\'.'),
                            $moved,
                            $this->sourceSurveyName,
                            $this->targetSurveyName));
            if ($notFound > 0) {
                $this->getBatch()->addMessage(sprintf($this->_('For %d tokens no answers were found.'), $notFound));
            }
        } else {
            if ($this->getBatch()->getCounter('movesteps') === 0) {
                // Add 1 to the counter to keep going
                $this->getBatch()->addStepCount(1);
            }
        }
        return $this->_finished;
    }
public function isFinished ( ) { $ batch = $ this -> getBatch ( ) ; if ( $ this -> _finished ) { $ batch -> resetCounter ( 'movestarted' ) ; $ moved = $ batch -> getCounter ( 'moved' ) ; $ notFound = $ batch -> getCounter ( 'notfound' ) ; $ this -> getBatch ( ) -> addMessage ( sprintf ( $ this -> _ ( '%d \'%s\' survey answers have been copied to \'%s\'.' ) , $ moved , $ this -> sourceSurveyName , $ this -> targetSurveyName ) ) ; if ( $ notFound > 0 ) { $ this -> getBatch ( ) -> addMessage ( sprintf ( $ this -> _ ( 'For %d tokens no answers were found.' ) , $ notFound ) ) ; } } else { if ( $ this -> getBatch ( ) -> getCounter ( 'movesteps' ) === 0 ) { // Add 1 to the counter to keep going $ this -> getBatch ( ) -> addStepCount ( 1 ) ; } } return $ this -> _finished ; }
Return true when the task has finished.

@return boolean
Return true when the task has finished .