ShellProcess
in package
implements
Process
uses
Log
Table of Contents
Interfaces
- Process
- Process Interface
Methods
- __construct() : mixed
- create() : ShellProcess
- Creates the process This function is used to recreate a Process Object from the Task table Instead of forcing a unique constructor, only enforcement is to have a constructor without m mandatory arguments
- executable() : returns
- isRunning() : returns
- Checks if there are running processes of a certain class or with a given pid
- pid() : returns
- run() : int
- Starts the process and returns the pid
- startDate() : int
Methods
__construct()
public
__construct(string $executable[, int|null $pid = null ]) : mixed
Parameters
- $executable : string
- $pid : int|null = null
create()
Creates the process This function is used to recreate a Process Object from the Task table Instead of forcing a unique constructor, only enforcement is to have a constructor without m mandatory arguments
public
create(string $executable[, int|null $pid = null ]) : ShellProcess
Parameters
- $executable : string
- $pid : int|null = null
Return values
ShellProcessexecutable()
public
executable() : returns
Return values
returns —the executable
isRunning()
Checks if there are running processes of a certain class or with a given pid
public
isRunning() : returns
Return values
returns —true if the Process is running
pid()
public
pid() : returns
Return values
returns —the Process ID
run()
Starts the process and returns the pid
public
run() : int
Return values
intstartDate()
public
startDate() : int
Return values
int —returns the DateTime Object when the process was started