dolibarr 19.0.4
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)
 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 31 of file printipp.modules.php.

Constructor & Destructor Documentation

◆ __construct()

printing_printipp::__construct ( $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Reimplemented from PrintingDriver.

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

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

Member Function Documentation

◆ getlistAvailablePrinters()

printing_printipp::getlistAvailablePrinters ( )

Return list of available printers.

Returns
array list of printers

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

References user.

◆ getPrinterDetail()

printing_printipp::getPrinterDetail ( $uri)
private

Get printer detail.

Parameters
string$uriURI
Returns
array List of attributes

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

References user.

◆ listAvailablePrinters()

printing_printipp::listAvailablePrinters ( )

Return list of available printers.

Returns
int 0 if OK, >0 if KO

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

References img_picto().

◆ listJobs()

printing_printipp::listJobs ( $module)

List jobs print.

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

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

References 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

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

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


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