You are here

function background_process_current_handle in Background Process 7.2

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 background_process.module \background_process_current_handle()

Get/set current handle.

@staticvar $current_handle

Parameters

$handle:

Return value

string Current handle.

File

./background_process.module, line 660

Code

function background_process_current_handle($handle = NULL) {
  $process = BackgroundProcess::currentProcess();
  return $process
    ->getHandle();
}