Moodle  2.2.1
http://www.collinsharper.com
SimpleShell Class Reference

Public Member Functions

 SimpleShell ()
 execute ($command)
 getOutput ()
 getOutputAsList ()

Data Fields

 $_output

Detailed Description

Definition at line 20 of file shell_tester.php.


Member Function Documentation

execute ( command)

Actually runs the command. Does not trap the error stream output as this need PHP 4.3+.

Parameters:
string$commandThe actual command line to run.
Returns:
integer Exit code. public

Definition at line 39 of file shell_tester.php.

getOutput ( )

Accessor for the last output.

Returns:
string Output as text. public

Definition at line 50 of file shell_tester.php.

Accessor for the last output.

Returns:
array Output as array of lines. public

Definition at line 59 of file shell_tester.php.

Executes the shell comand and stashes the output. public

Definition at line 27 of file shell_tester.php.


Field Documentation

$_output

Definition at line 21 of file shell_tester.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations