Class SimpleShell

Description

Wrapper for exec() functionality.

Located in /shell_tester.php (line 20)


	
			
Method Summary
 SimpleShell __construct ()
 integer execute (string $command)
 string getOutput ()
 array getOutputAsList ()
Methods
Constructor __construct (line 27)

Executes the shell comand and stashes the output.

  • access: public
SimpleShell __construct ()
execute (line 39)

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

  • return: Exit code.
  • access: public
integer execute (string $command)
  • string $command: The actual command line to run.
getOutput (line 50)

Accessor for the last output.

  • return: Output as text.
  • access: public
string getOutput ()
getOutputAsList (line 59)

Accessor for the last output.

  • return: Output as array of lines.
  • access: public
array getOutputAsList ()

Documentation generated on Sun, 31 Oct 2010 16:32:23 -0500 by phpDocumentor 1.4.3