PHP Class PartKeepr\CoreBundle\System\OperatingSystem

Datei anzeigen Open project: partkeepr/PartKeepr Class Usage Examples

Public Methods

Method Description
getLinuxDistribution ( ) : string Tries to detect the distribution.
getPlatform ( ) Returns the platform name the system is running on.
getRelease ( ) : string Returns the distribution.

Method Details

getLinuxDistribution() public method

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
return string

getPlatform() public method

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

getRelease() public method

Returns the distribution.
public getRelease ( ) : string
return string string