PHP 클래스 Composition

상속: extends REST_Controller
파일 보기 프로젝트 열기: bamarni/composition 1 사용 예제들

공개 메소드들

메소드 설명
has ( type $packageName, type $prettyString = '*' ) : boolean Search for a given package version.
isUnix ( ) : boolean Wether or not the script is running on a Unix platform.
isWindows ( ) : boolean Wether or not the script is running on a Windows platform.
setRootDir ( type $rootDir ) Allow to manually set the project root dir.

비공개 메소드들

메소드 설명
getPlatform ( )

메소드 상세

has() 공개 정적인 메소드

Usage examples : Composition::has('php', '5.3.*') // PHP version Composition::has('ext-memcache') // PHP extension Composition::has('vendor/package', '>2.1') // Package version
public static has ( type $packageName, type $prettyString = '*' ) : boolean
$packageName type The package name
$prettyString type An optional version constraint
리턴 boolean Wether or not the package has been found.

isUnix() 공개 정적인 메소드

Wether or not the script is running on a Unix platform.
public static isUnix ( ) : boolean
리턴 boolean

isWindows() 공개 정적인 메소드

Wether or not the script is running on a Windows platform.
public static isWindows ( ) : boolean
리턴 boolean

setRootDir() 공개 정적인 메소드

Allow to manually set the project root dir.
public static setRootDir ( type $rootDir )
$rootDir type