TwistPHP Documentation

Command

File path: dist/twist/Core/Helpers/Command.helper.php
Namespace: Twist\Core\Helpers
Extends: Base

Type: Class

Command — Execute bash command line commands on the server and get back nicely formatted result array.

Example Usage

<?php
//Set the variables for the example
$strCommand 'foo';
$dirCurrentWorkingDirectory null;

//Call the function executeChild with the example vars
Twist::Command() -> executeChild($strCommand$dirCurrentWorkingDirectory);

Method List

Method Access Returns
executepublicvoid
childProcessespublicvoid
executeChildpublicvoid
childStatuspublicvoid
childRunningpublicvoid
childResultpublicvoid
isEnabledpublicvoid