You are here

public static function BackgroundProcess::load in Background Process 7

Same name and namespace in other branches
  1. 8 background_process.class.php \BackgroundProcess::load()
  2. 6 BackgroundProcess.class.php \BackgroundProcess::load()
  3. 7.2 background_process.inc \BackgroundProcess::load()
3 calls to BackgroundProcess::load()
background_process_service_execute in ./background_process.module
Execute the service.
_background_batch_initiate in background_batch/background_batch.pages.inc
Start a batch job in the background
_background_process_restart in ./background_process.module
Shutdown handler for restarting background process.

File

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

Class

BackgroundProcess
BackgroundProcess class.

Code

public static function load($process) {
  $new = new BackgroundProcess($process->handle);
  @($new->callback = $process->callback);
  @($new->args = $process->args);
  @($new->uid = $process->uid);
  @($new->token = $process->token);
  @($new->service_host = $process->service_host);
  @($new->service_group = $process->service_group);
  @($new->exec_status = $process->exec_status);
  @($new->start_stamp = $process->start_stamp);
  @($new->status = $process->exec_status);
  @($new->start = $process->start_stamp);
  return $new;
}