dolibarr  21.0.0-alpha
Public Member Functions | Private Member Functions | List of all members
printing_printipp Class Reference

Class to provide printing with PrintIPP. More...

Inheritance diagram for printing_printipp:
Inheritance graph
[legend]
Collaboration diagram for printing_printipp:
Collaboration graph
[legend]

Public Member Functions

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

Private Member Functions

 getPrinterDetail ($uri)
 Get printer detail. More...
 

Additional Inherited Members

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

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 110 of file printipp.modules.php.

Member Function Documentation

◆ getlistAvailablePrinters()

printing_printipp::getlistAvailablePrinters ( )

Return list of available printers.

Returns
string[] List of printers (URIs)

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

◆ getPrinterDetail()

printing_printipp::getPrinterDetail (   $uri)
private

Get printer detail.

Parameters
string$uriURI
Returns
stdClass List of attributes

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

◆ listAvailablePrinters()

printing_printipp::listAvailablePrinters ( )

Return list of available printers.

Returns
int 0 if OK, >0 if KO

@phan-suppress PhanTypeExpectedObjectPropAccess

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

◆ listJobs()

printing_printipp::listJobs (   $module)

List jobs print.

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

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

◆ 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 137 of file printipp.modules.php.


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