Class: I2CE Process
From IHRIS Wiki
This article describes the class I2CE_Process.
- Location: Part of the module I2CE in the package I2CE
- Source: Defined in the file lib/I2CE_Process.php on line 29
Handles processes.
Variables
$cmd
The command being executed.
- Defined in i2ce/lib/I2CE_Process.php on line 35
- Type: private string $cmd
$res
Currently executing resource
- Defined in i2ce/lib/I2CE_Process.php on line 40
- Type: private string $res
$pipes
Stdin, Stdout, etc.
- Defined in i2ce/lib/I2CE_Process.php on line 45
- Type: private array $pipes
$exit
holds the exit code of the program
- Defined in i2ce/lib/I2CE_Process.php on line 50
- Type: private integer $exit
$done
Flag so that we only execute this once.
- Defined in i2ce/lib/I2CE_Process.php on line 55
- Type: private boolean $done
Methods
__construct()
Constructor for the I2CE_Process @params string $cmd The full command line to execute.
- Defined in i2ce/lib/I2CE_Process.php on line 62
- Signature: public function __construct($cmd)
- Parameters:
- $cmd
is_error()
Returns a boolean indicating if an error code occurred. Will run the Process if it hasn't been run.
- Defined in i2ce/lib/I2CE_Process.php on line 103
- Signature: public function is_error()
- Returns: boolean
TRUE if an error occurred.
slurp()
Slurp up the output of the process @params string $cmd The full command line to execute. @todo implement stdin
- Defined in i2ce/lib/I2CE_Process.php on line 81
- Signature: private function slurp()
stderr()
Provides access to what the command spewed out on STDERR
- Defined in i2ce/lib/I2CE_Process.php on line 127
- Signature: public function stderr()
- Returns: string
stdout()
Provides access to what the command spewed out on STDOUT
- Defined in i2ce/lib/I2CE_Process.php on line 117
- Signature: public function stdout()
- Returns: string
The output.