dolibarr 21.0.0-beta
printing_printipp Class Reference

Class to provide printing with PrintIPP. More...

Inheritance diagram for printing_printipp:
Collaboration diagram for printing_printipp:

Public Member Functions

 __construct ($db)
 Constructor.
 
 printFile ($file, $module, $subdir='')
 Print selected file.
 
 listAvailablePrinters ()
 Return list of available printers.
 
 getlistAvailablePrinters ()
 Return list of available printers.
 
 listJobs ($module=null)
 List jobs print.
 
- Public Member Functions inherited from PrintingDriver
 getDesc ()
 Return description of Printing Module.
 

Private Member Functions

 getPrinterDetail ($uri)
 Get printer detail.
 

Additional Inherited Members

- Static Public Member Functions inherited from PrintingDriver
static listDrivers ($db, $maxfilenamelength=0)
 Return list of printing driver.
 

Detailed Description

Class to provide printing with PrintIPP.

Definition at line 32 of file printipp.modules.php.

Constructor & Destructor Documentation

◆ __construct()

printing_printipp::__construct ( $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Reimplemented from PrintingDriver.

Definition at line 95 of file printipp.modules.php.

References conf(), getDolGlobalInt(), getDolGlobalString(), and user.

Member Function Documentation

◆ getlistAvailablePrinters()

printing_printipp::getlistAvailablePrinters ( )

Return list of available printers.

Returns
string[] List of printers (URIs)

Reimplemented from PrintingDriver.

Definition at line 245 of file printipp.modules.php.

References $conf, and user.

◆ getPrinterDetail()

printing_printipp::getPrinterDetail ( $uri)
private

Get printer detail.

Parameters
string$uriURI
Returns
stdClass List of attributes

Definition at line 267 of file printipp.modules.php.

References $conf, and user.

◆ listAvailablePrinters()

printing_printipp::listAvailablePrinters ( )

Return list of available printers.

Returns
int 0 if OK, >0 if KO

@phan-suppress PhanTypeExpectedObjectPropAccess

Reimplemented from PrintingDriver.

Definition at line 192 of file printipp.modules.php.

References $conf, img_picto(), and newToken().

◆ listJobs()

printing_printipp::listJobs ( $module = null)

List jobs print.

Parameters
?string$modulemodule
Returns
int 0 if OK, >0 if KO

Reimplemented from PrintingDriver.

Definition at line 292 of file printipp.modules.php.

References dolPrintHTML(), and user.

◆ printFile()

printing_printipp::printFile ( $file,
$module,
$subdir = '' )

Print selected file.

Parameters
string$filefile
string$modulemodule
string$subdirsubdirectory of document like for expedition subdir is sendings
Returns
int 0 if OK, >0 if KO

Reimplemented from PrintingDriver.

Definition at line 122 of file printipp.modules.php.

References $conf, dol_print_error(), dol_syslog(), getDolGlobalString(), and user.


The documentation for this class was generated from the following file: