You are here

public function BackgroundProcess::__construct in Background Process 6

Same name and namespace in other branches
  1. 8 background_process.class.php \BackgroundProcess::__construct()
  2. 7.2 background_process.inc \BackgroundProcess::__construct()
  3. 7 BackgroundProcess.class.php \BackgroundProcess::__construct()

Constructor.

Parameters

type $handle: Handle to use. Optional; leave out for auto-handle.

File

./BackgroundProcess.class.php, line 39
Class for handling background processes.

Class

BackgroundProcess
BackgroundProcess class.

Code

public function __construct($handle = NULL) {
  $this->handle = $handle ? $handle : background_process_generate_handle('auto');
  $this->token = background_process_generate_handle('token');
  $this->service_group = variable_get('background_process_default_service_group', 'default');
}