NextDom\Com\ComShell
Synopsis
class ComShell
{
- // members
- private static $instance;
- private array $cmds = ;
- private $background;
- private array $cache = ;
- private array $history = ;
- // methods
- public void __construct()
- public void addCmd()
- public void getBackground()
- public void setBackground()
- public static string execute()
- public static ComShell getInstance()
- public void clear()
- public string exec()
- public boolean commandExist()
- public static boolean commandExists()
- public void clearHistory()
- public void getCmd()
- public array getHistory()
Members
private
- $background
- $cache
- $cmds
- $history
- $instance
Methods
public
- __construct()
- addCmd()
- clear()
- clearHistory()
- commandExist()
- commandExists() — Test if a command exists
- exec() — Execute commands
- execute() — Execute a command
- getBackground()
- getCmd()
- getHistory() — Get the history of commands
- getInstance() — Get the instance of com_shell
- setBackground()