PHP Class N98\Util\WindowsSystem

Utility class with global static functions.
Datei anzeigen Open project: netz98/n98-magerun

Public Methods

Method 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

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

Method Details

isExecutableName() public static method

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

isProgramInstalled() public static method

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