PHP Класс PartKeepr\CoreBundle\System\OperatingSystem

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
getLinuxDistribution ( ) : string Tries to detect the distribution.
getPlatform ( ) Returns the platform name the system is running on.
getRelease ( ) : string Returns the distribution.

Описание методов

getLinuxDistribution() публичный Метод

Currently, we only execute lsb_release to find out the version number. As I don't have any other distributions at hand to test with, I rely on user feedback which distributions don't have lsb_release.
public getLinuxDistribution ( ) : string
Результат string

getPlatform() публичный Метод

Typical return values are: "Linux", "FreeBSD", "Darwin" (Mac OSX), "Windows".
public getPlatform ( )

getRelease() публичный Метод

Returns the distribution.
public getRelease ( ) : string
Результат string string