You are here

public function BackgroundBatchContext::getBatch in Background Process 7.2

1 call to BackgroundBatchContext::getBatch()
BackgroundBatchContext::offsetSet in background_batch/background_batch.module
Override offsetSet(). Update progress if needed.

File

background_batch/background_batch.module, line 324
This module adds background processing to Drupals batch API

Class

BackgroundBatchContext
Class batch context. Automatically updates progress when 'finished' index is changed.

Code

public function getBatch() {
  if (!$this->batch) {
    $this->batch =& batch_get();
  }
  return $this->batch;
}