You are here

function background_process_current_handle in Background Process 7

Same name and namespace in other branches
  1. 8 background_process.module \background_process_current_handle()
  2. 6 background_process.module \background_process_current_handle()
  3. 7.2 background_process.module \background_process_current_handle()

Get/set current handle.

@staticvar $current_handle

Parameters

string $handle: Background process handle.

Return value

string Current handle.

3 calls to background_process_current_handle()
background_process_keepalive in ./background_process.module
Keep process alive.
background_process_service_execute in ./background_process.module
Execute the service.
_background_process_queue in ./background_process.module
Worker callback for processing queued function call.

File

./background_process.module, line 360

Code

function background_process_current_handle($handle = NULL) {
  static $current_handle = NULL;
  if (isset($handle)) {
    $current_handle = $handle;
  }
  return $current_handle;
}