PHP 클래스 PartKeepr\CoreBundle\System\OperatingSystem

파일 보기 프로젝트 열기: partkeepr/PartKeepr 1 사용 예제들

공개 메소드들

메소드 설명
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