Constants

PLATFORM_UNIX

PLATFORM_UNIX

PLATFORM_WINDOWS

PLATFORM_WINDOWS

ARCH_32

ARCH_32

ARCH_64

ARCH_64

OS_CENTOS

OS_CENTOS

OS_DEBIAN

OS_DEBIAN

OS_UBUNTU

OS_UBUNTU

OS_REDHAT

OS_REDHAT

OS_CLOUDLINUX

OS_CLOUDLINUX

OS_VZLINUX

OS_VZLINUX

OS_WINDOWS

OS_WINDOWS

VERSION_WINDOWS_2008R2

VERSION_WINDOWS_2008R2

VERSION_WINDOWS_2012

VERSION_WINDOWS_2012

VERSION_WINDOWS_2012R2

VERSION_WINDOWS_2012R2

VERSION_WINDOWS_2016

VERSION_WINDOWS_2016

VIRT_NONE

VIRT_NONE

VIRT_VZ

VIRT_VZ

VIRT_HYPERV

VIRT_HYPERV

VIRT_XEN

VIRT_XEN

VIRT_VMWARE

VIRT_VMWARE

VIRT_KVM

VIRT_KVM

VIRT_PARALLELS_SERVER

VIRT_PARALLELS_SERVER

VIRT_OPENVZ

VIRT_OPENVZ

VIRT_LXC

VIRT_LXC

VIRT_DOCKER

VIRT_DOCKER

PACKAGE_TYPE_RPM

PACKAGE_TYPE_RPM

PACKAGE_TYPE_DEB

PACKAGE_TYPE_DEB

PACKAGE_TYPE_WIN

PACKAGE_TYPE_WIN

Properties

Methods

getVersion()

getVersion() : string

Retrieve Plesk version

Throws

\pm_Exception

Returns

string

getLastInstalledUpdate()

getLastInstalledUpdate() : string

Retrieve last installed update

Returns

string —

Update number or empty string

getPlatform()

getPlatform() : string

Retrieve platform name

Returns

string

isUnix()

isUnix() : boolean

Check if platform is Unix

Returns

boolean

isWindows()

isWindows() : boolean

Check if platform is Windows

Returns

boolean

getOsName()

getOsName() : string|null

Retrieve OS name (in lower case)

Returns

string|null

getOsVersion()

getOsVersion() : string|null

Retrieve OS version

Returns

string|null

getOsShortVersion()

getOsShortVersion() : string|null

Retrieve OS short version

Returns

string|null

getOsCodename()

getOsCodename() : string|null

Retrieve OS codename

Returns

string|null

getOsPackageType()

getOsPackageType() : string|null

Retrieve OS package type

Returns

string|null

getOsArch()

getOsArch() : string|null

Retrieve OS architecture

Returns

string|null

getVirtualization()

getVirtualization(boolean  $all = false) : array|string

Retrieve virtualization type(s)

Parameters

boolean $all

Set true to get all virtualization types (array)

Returns

array|string