PHP Class Composition

Inheritance: extends REST_Controller
Afficher le fichier Open project: bamarni/composition Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
getPlatform ( )

Method Details

has() public static méthode

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
Résultat boolean Wether or not the package has been found.

isUnix() public static méthode

Wether or not the script is running on a Unix platform.
public static isUnix ( ) : boolean
Résultat boolean

isWindows() public static méthode

Wether or not the script is running on a Windows platform.
public static isWindows ( ) : boolean
Résultat boolean

setRootDir() public static méthode

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