system
in package
Table of Contents
Properties
- $_command : mixed
- $_distrib : mixed
- $_hasExec : mixed
- $_installPackage : mixed
- $_os_version : mixed
Methods
- checkAndInstall() : mixed
- checkHasExec() : mixed
- checkInstallationLog() : string
- fuserk() : void
- get() : mixed
- getArch() : string
- getCmdPython3() : mixed
- getCmdSudo() : string
- getDistrib() : string
- getInstallPackage() : mixed
- getOsVersion() : mixed
- getUpgradablePackage() : mixed
- installPackage() : mixed
- installPackageInProgress() : bool
- kill() : mixed
- launchScriptPackage() : mixed
- loadCommand() : mixed
- os_incompatible() : bool
- php() : mixed
- ps() : mixed
- upgradePackage() : mixed
- getPython3VenvDir() : mixed
- splitpackageByPlugin() : mixed
Properties
$_command
private
static mixed
$_command
= array('suse' => array('cmd_check' => ' rpm -qa | grep ', 'cmd_install' => ' zypper in --non-interactive ', 'www-uid' => 'wwwrun', 'www-gid' => 'www', 'type' => 'zypper'), 'sles' => array('cmd_check' => ' rpm -qa | grep ', 'cmd_install' => ' zypper in --non-interactive ', 'www-uid' => 'wwwrun', 'www-gid' => 'www', 'type' => 'zypper'), 'redhat' => array('cmd_check' => ' rpm -qa | grep ', 'cmd_install' => ' yum install ', 'www-uid' => 'www-data', 'www-gid' => 'www-data', 'type' => 'yum'), 'fedora' => array('cmd_check' => ' rpm -qa | grep ', 'cmd_install' => ' dnf install ', 'www-uid' => 'www-data', 'www-gid' => 'www-data', 'type' => 'dnf'), 'debian' => array('cmd_check' => ' dpkg --get-selections | grep -v deinstall | grep ', 'cmd_install' => ' apt-get install -y ', 'www-uid' => 'www-data', 'www-gid' => 'www-data', 'type' => 'apt'))
$_distrib
private
static mixed
$_distrib
= \null
$_hasExec
private
static mixed
$_hasExec
= array()
$_installPackage
private
static mixed
$_installPackage
= array()
$_os_version
private
static mixed
$_os_version
= \null
Methods
checkAndInstall()
public
static checkAndInstall(mixed $_packages[, mixed $_fix = false ][, mixed $_foreground = false ][, mixed $_plugin = '' ][, mixed $_force = false ]) : mixed
Parameters
- $_packages : mixed
- $_fix : mixed = false
- $_foreground : mixed = false
- $_plugin : mixed = ''
- $_force : mixed = false
checkHasExec()
public
static checkHasExec(mixed $_exec) : mixed
Parameters
- $_exec : mixed
checkInstallationLog()
public
static checkInstallationLog([mixed $_plugin = '' ]) : string
Parameters
- $_plugin : mixed = ''
Return values
stringfuserk()
public
static fuserk(mixed $_port[, mixed $_protocol = 'tcp' ]) : void
Parameters
- $_port : mixed
- $_protocol : mixed = 'tcp'
get()
public
static get([mixed $_key = '' ]) : mixed
Parameters
- $_key : mixed = ''
getArch()
public
static getArch() : string
Return values
stringgetCmdPython3()
public
static getCmdPython3(mixed $_plugin) : mixed
Parameters
- $_plugin : mixed
getCmdSudo()
public
static getCmdSudo() : string
Return values
stringgetDistrib()
public
static getDistrib() : string
Return values
string —self::
getInstallPackage()
public
static getInstallPackage(mixed $_type, mixed $_plugin) : mixed
Parameters
- $_type : mixed
- $_plugin : mixed
getOsVersion()
public
static getOsVersion() : mixed
getUpgradablePackage()
public
static getUpgradablePackage(mixed $_type[, mixed $_forceRefresh = false ]) : mixed
Parameters
- $_type : mixed
- $_forceRefresh : mixed = false
installPackage()
public
static installPackage(mixed $_type, mixed $_package[, mixed $_version = '' ][, mixed $_plugin = '' ]) : mixed
Parameters
- $_type : mixed
- $_package : mixed
- $_version : mixed = ''
- $_plugin : mixed = ''
installPackageInProgress()
public
static installPackageInProgress([mixed $_plugin = '' ]) : bool
Parameters
- $_plugin : mixed = ''
Return values
boolkill()
public
static kill([mixed $_find = '' ][, mixed $_kill9 = true ]) : mixed
Parameters
- $_find : mixed = ''
- $_kill9 : mixed = true
launchScriptPackage()
public
static launchScriptPackage([mixed $_plugin = '' ][, mixed $_force = false ]) : mixed
Parameters
- $_plugin : mixed = ''
- $_force : mixed = false
loadCommand()
public
static loadCommand() : mixed
os_incompatible()
public
static os_incompatible(mixed $_type, mixed $_package, mixed $_info) : bool
Parameters
- $_type : mixed
- $_package : mixed
- $_info : mixed
Return values
boolphp()
public
static php(mixed $arguments[, mixed $_sudo = false ]) : mixed
Parameters
- $arguments : mixed
- $_sudo : mixed = false
ps()
public
static ps(mixed $_find[, mixed $_without = null ]) : mixed
Parameters
- $_find : mixed
- $_without : mixed = null
upgradePackage()
public
static upgradePackage(mixed $_type[, mixed $_package = null ]) : mixed
Parameters
- $_type : mixed
- $_package : mixed = null
getPython3VenvDir()
private
static getPython3VenvDir(mixed $_plugin) : mixed
Parameters
- $_plugin : mixed
splitpackageByPlugin()
private
static splitpackageByPlugin(mixed $_type[, mixed $_plugin = '' ]) : mixed
Parameters
- $_type : mixed
- $_plugin : mixed = ''