dolibarr 20.0.0
|
Class to provide printing with Google Cloud Print. More...
Public Member Functions | |
__construct ($db) | |
Constructor. | |
listAvailablePrinters () | |
Return list of available printers. | |
getlistAvailablePrinters () | |
Return list of available printers. | |
printFile ($file, $module, $subdir='') | |
Print selected file. | |
sendPrintToPrinter ($printerid, $printjobtitle, $filepath, $contenttype) | |
Sends document to the printer. | |
listJobs () | |
List jobs print. | |
Public Member Functions inherited from PrintingDriver | |
getDesc () | |
Return description of Printing Module. | |
Additional Inherited Members | |
Static Public Member Functions inherited from PrintingDriver | |
static | listDrivers ($db, $maxfilenamelength=0) |
Return list of printing driver. | |
Class to provide printing with Google Cloud Print.
Definition at line 35 of file printgcp.modules.php.
printing_printgcp::__construct | ( | $db | ) |
Constructor.
Reimplemented from PrintingDriver.
Definition at line 100 of file printgcp.modules.php.
References conf(), dol_print_date(), getDolGlobalString(), and newToken().
printing_printgcp::getlistAvailablePrinters | ( | ) |
Return list of available printers.
Definition at line 255 of file printgcp.modules.php.
Referenced by listAvailablePrinters().
printing_printgcp::listAvailablePrinters | ( | ) |
Return list of available printers.
Definition at line 208 of file printgcp.modules.php.
References getlistAvailablePrinters(), img_picto(), and newToken().
printing_printgcp::listJobs | ( | ) |
List jobs print.
Definition at line 447 of file printgcp.modules.php.
References dol_print_date().
printing_printgcp::printFile | ( | $file, | |
$module, | |||
$subdir = '' ) |
Print selected file.
string | $file | file |
string | $module | module |
string | $subdir | subdir for file |
Definition at line 327 of file printgcp.modules.php.
printing_printgcp::sendPrintToPrinter | ( | $printerid, | |
$printjobtitle, | |||
$filepath, | |||
$contenttype ) |
Sends document to the printer.
string | $printerid | Printer id returned by Google Cloud Print |
string | $printjobtitle | Job Title |
string | $filepath | File Path to be send to Google Cloud Print |
string | $contenttype | File content type by example application/pdf, image/png |
Definition at line 378 of file printgcp.modules.php.