메소드 | 설명 | |
---|---|---|
__construct ( string $dest ) | ||
__destruct ( ) | ||
finalize ( ) | ||
read ( $len ) | * (non-PHPdoc) | |
write ( $data ) |
메소드 | 설명 | |
---|---|---|
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 | ||
리턴 | 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). |
리턴 | number |