Method | Description | |
---|---|---|
__construct ( string $dest ) | Construct new CUPS print connector. | |
__destruct ( ) | Cause a NOTICE if deconstructed before the job was printed. | |
finalize ( ) | Send job to printer. | |
read ( string $len ) : Data | Read data from the printer. | |
write ( string $data ) |
Method | Description | |
---|---|---|
getCmdOutput ( string $cmd ) | Run a command and throw an exception if it fails, or return the output if it works. | |
getLocalPrinters ( ) : array | Load a list of CUPS printers. |
Method | Description | |
---|---|---|
chopLpstatLine ( string $line ) : string | Get the item before the first space in a string |
public __construct ( string $dest ) | ||
$dest | string | The CUPS printer name to print to. This must be loaded using a raw driver. |
public __destruct ( ) |
protected getCmdOutput ( string $cmd ) | ||
$cmd | string | Command to run |
protected getLocalPrinters ( ) : array | ||
return | array | A list of printer names installed on this system. Any item on this list is valid for constructing a printer. |