PHP Class N98\Util\Exec

Show file Open project: netz98/n98-magerun Class Usage Examples

Public Methods

Method Description
allowed ( ) : boolean Exec class is allowed to run
run ( string $command, string &$output = null, integer &$returnCode = null )

Private Methods

Method Description
parseCommandOutput ( array $commandOutput ) : string string from array of strings representing one line per entry

Method Details

allowed() public static method

Exec class is allowed to run
public static allowed ( ) : boolean
return boolean

run() public static method

public static run ( string $command, string &$output = null, integer &$returnCode = null )
$command string
$output string
$returnCode integer