Method | Description | |
---|---|---|
__construct ( string $dest ) | ||
__destruct ( ) | ||
finalize ( ) | ||
read ( $len ) | * (non-PHPdoc) | |
write ( $data ) |
Method | Description | |
---|---|---|
finalizeLinux ( string $data ) | Send job to printer -- platform-specific Linux code. | |
finalizeMac ( string $data ) | Send job to printer -- platform-specific Mac code. | |
finalizeWin ( string $data ) | Send data to printer -- platform-specific Windows code. | |
getCurrentPlatform ( ) : string | ||
runCommand ( string $command, string &$outputStr, string &$errorStr, string $inputStr = null ) : number | Run a command, pass it data, and retrieve its return value, standard output, and standard error. | |
runCopy ( string $from, string $to ) : boolean | Copy a file. Separated out so that nothing is actually printed during test runs. | |
runWrite ( string $data, string $to ) : boolean | Write data to a file. Separated out so that nothing is actually printed during test runs. |
protected finalizeLinux ( string $data ) | ||
$data | string | Print data |
protected finalizeMac ( string $data ) | ||
$data | string | Print data |
protected finalizeWin ( string $data ) | ||
$data | string |
protected getCurrentPlatform ( ) : string | ||
return | string | Current platform. Separated out for testing purposes. |
protected runCommand ( string $command, string &$outputStr, string &$errorStr, string $inputStr = null ) : number | ||
$command | string | the command to run. |
$outputStr | string | variable to fill with standard output. |
$errorStr | string | variable to fill with standard error. |
$inputStr | string | text to pass to the command's standard input (optional). |
return | number |