com_shell
    
            
            in package
            
        
    
    
    
Table of Contents
Properties
- $background : mixed
 - $cache : mixed
 - $cmds : mixed
 - $history : mixed
 - $instance : mixed
 
Methods
- __construct() : mixed
 - addCmd() : mixed
 - clear() : mixed
 - clearHistory() : mixed
 - commandExist() : bool
 - commandExists() : bool
 - Test if a command exists
 - exec() : string
 - Execute commands
 - execute() : mixed
 - Execute a command
 - getBackground() : mixed
 - getCmd() : mixed
 - getHistory() : array<string|int, mixed>
 - Get the history of commands
 - getInstance() : com_shell
 - Get the instance of com_shell
 - setBackground() : mixed
 
Properties
$background
    private
        mixed
    $background
    
    
    
    
$cache
    private
        mixed
    $cache
     = array()
    
    
    
$cmds
    private
        mixed
    $cmds
     = array()
    
    
    
$history
    private
        mixed
    $history
     = array()
    
    
    
$instance
    private
    static    mixed
    $instance
    
    
    
    
Methods
__construct()
    public
                    __construct([mixed $_cmd = null ][, bool $_background = false ]) : mixed
    Parameters
- $_cmd : mixed = null
 - $_background : bool = false
 
Tags
addCmd()
    public
                    addCmd(mixed $_cmd[, mixed $_background = null ]) : mixed
    Parameters
- $_cmd : mixed
 - $_background : mixed = null
 
clear()
    public
                    clear() : mixed
    clearHistory()
    public
                    clearHistory() : mixed
    commandExist()
    public
                    commandExist(string $_cmd) : bool
    Parameters
- $_cmd : string
 
Tags
Return values
boolcommandExists()
Test if a command exists
    public
            static        commandExists(string $_cmd) : bool
    Parameters
- $_cmd : string
 
Return values
boolexec()
Execute commands
    public
                    exec() : string
    Tags
Return values
stringexecute()
Execute a command
    public
            static        execute(string $_cmd[, bool $_background = false ]) : mixed
    Parameters
- $_cmd : string
 - $_background : bool = false
 
getBackground()
    public
                    getBackground() : mixed
    getCmd()
    public
                    getCmd() : mixed
    getHistory()
Get the history of commands
    public
                    getHistory() : array<string|int, mixed>
    Return values
array<string|int, mixed>getInstance()
Get the instance of com_shell
    public
            static        getInstance() : com_shell
    Return values
com_shellsetBackground()
    public
                    setBackground(mixed $background) : mixed
    Parameters
- $background : mixed