Class: I2CE Process (4.1.7)

From IHRIS Wiki
Revision as of 09:49, 23 August 2013 by Litlfred (talk | contribs) (Created page with "{{otherversions|Class: I2CE_Process}} This article describes the class ''I2CE_Process'' . *Location: Part of the module I2CE in the package [htt...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


This article describes the class I2CE_Process .

Handles processes.

Variables

$cmd

The command being executed.

$res

Currently executing resource

$pipes

Stdin, Stdout, etc.

$exit

holds the exit code of the program

$done

Flag so that we only execute this once.

Methods

__construct()

Constructor for the I2CE_Process @params string $cmd The full command line to execute.

is_error()

Returns a boolean indicating if an error code occurred. Will run the Process if it hasn't been run.

slurp()

Slurp up the output of the process @params string $cmd The full command line to execute. @todo implement stdin

stderr()

Provides access to what the command spewed out on STDERR

stdout()

Provides access to what the command spewed out on STDOUT