Jeedom Core

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

Methods

__construct()

public __construct([mixed $_cmd = null ][, bool $_background = false ]) : mixed
Parameters
$_cmd : mixed = null
$_background : bool = false
Tags
access

public

addCmd()

public addCmd(mixed $_cmd[, mixed $_background = null ]) : mixed
Parameters
$_cmd : mixed
$_background : mixed = null

clearHistory()

public clearHistory() : mixed

commandExist()

public commandExist(string $_cmd) : bool
Parameters
$_cmd : string
Tags
deprecated

Replaced by com_shell::commandExists

Return values
bool

commandExists()

Test if a command exists

public static commandExists(string $_cmd) : bool
Parameters
$_cmd : string
Return values
bool

exec()

Execute commands

public exec() : string
Tags
throws
Exception
Return values
string

execute()

Execute a command

public static execute(string $_cmd[, bool $_background = false ]) : mixed
Parameters
$_cmd : string
$_background : bool = false

getBackground()

public getBackground() : mixed

getHistory()

Get the history of commands

public getHistory() : array<string|int, mixed>
Return values
array<string|int, mixed>

setBackground()

public setBackground(mixed $background) : mixed
Parameters
$background : mixed

        
On this page

Search results