You are here

public static function BackgroundProcess::load in Background Process 8

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

Implements Static Method.

2 calls to BackgroundProcess::load()
background_process_service_execute in ./background_process.module
Implements to Execute the service.
_background_process_restart in ./background_process.module
Shutdown handler for restarting background process.

File

./background_process.class.php, line 16

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->serviceHost = $process->serviceHost);
  @($new->serviceGroup = $process->serviceGroup);
  @($new->exec_status = $process->exec_status);
  @($new->start_stamp = $process->start_stamp);
  @($new->status = $process->exec_status);
  @($new->start = $process->start_stamp);
  return $new;
}