You are here

public function BackgroundBatchContext::__construct in Background Process 7

Same name and namespace in other branches
  1. 6 background_batch/background_batch.module \BackgroundBatchContext::__construct()
  2. 7.2 background_batch/background_batch.module \BackgroundBatchContext::__construct()

File

background_batch/background_batch.module, line 322
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 __construct() {
  $this->interval = variable_get('background_batch_delay', BACKGROUND_BATCH_DELAY) / 1000000;
  $args = func_get_args();
  return call_user_func_array(array(
    'parent',
    '__construct',
  ), $args);
}