PHP Class N98\Util\WindowsSystem

Utility class with global static functions.
Afficher le fichier Open project: netz98/n98-magerun

Méthodes publiques

Méthode Description
isExecutableName ( string $name ) : boolean a name is executable based on it's extension
isProgramInstalled ( string $program ) : boolean a program (by it's basename) is available on system for execution

Private Methods

Méthode Description
__construct ( )
getExecuteableExtesions ( ) : array
getInstance ( ) : WindowsSystem an instance is bootstrapped in to prevent initialization overhead

Method Details

isExecutableName() public static méthode

a name is executable based on it's extension
public static isExecutableName ( string $name ) : boolean
$name string
Résultat boolean

isProgramInstalled() public static méthode

a program (by it's basename) is available on system for execution
public static isProgramInstalled ( string $program ) : boolean
$program string
Résultat boolean