Transaction Engine 3 Application Programming Interface
[ class tree: Transaction Engine 3 Application Programming Interface ] [ index: Transaction Engine 3 Application Programming Interface ] [ all elements ]

Class: KT_shell

Source Location: /common/lib/shell/KT_Shell.class.php

Class Overview


Execute commands;


Methods



Class Details

[line 9]
Execute commands;



[ Top ]


Class Methods


constructor KT_shell [line 41]

KT_shell KT_shell( )

Constructor. Doing nothing.



[ Top ]

method checkSystem [line 100]

nothing checkSystem( )

check if can be run shell commands;



Tags:

access:  public


[ Top ]

method execute [line 52]

string execute( mixed $commands, array $arguments)

execute the command



Tags:

var:  containing the shell command to be executed (just the name of the program, without the full path, just filename)
return:  the output of the execute command
access:  public


Parameters:

array   $arguments   containing the arguments for the shell command

[ Top ]

method getArguments [line 134]

string getArguments( )

getter. return the arguments separated by space



Tags:

access:  public


[ Top ]

method getError [line 233]

array getError( )

Getter. return the errors setted.



Tags:

return:  array - 0=>error for user, 1=>error for developer;
access:  public


[ Top ]

method getExecutedCommand [line 187]

string getExecutedCommand( )

getter. return the executed command's path



Tags:

access:  public


[ Top ]

method hasError [line 221]

boolean hasError( )

check if an error was setted.



Tags:

return:  true if error is set or false if not;
access:  public


[ Top ]

method prepareCommand [line 121]

string prepareCommand( mixed $command)

prepare the command to be executed;



Tags:

var:  string with the command
return:  the prepared command
access:  public


[ Top ]

method setArguments [line 148]

nothing setArguments( mixed &$arguments)

setter.



Tags:

var:  the arguments of the command
access:  public


[ Top ]



Documentation generated on Tue, 6 Dec 2005 15:11:33 +0200 by phpDocumentor 1.3.0RC3