|
dolibarr
x.y.z
|
Class to manage Receipt Printers. More...


Public Member Functions | |
| __construct ($db) | |
| Constructor. More... | |
| listPrinters () | |
| list printers More... | |
| listPrintersTemplates () | |
| List printers templates. More... | |
| selectTypePrinter ($selected='', $htmlname='printertypeid') | |
| Form to Select type printer. More... | |
| selectProfilePrinter ($selected='', $htmlname='printerprofileid') | |
| Form to Select Profile printer. More... | |
| addPrinter ($name, $type, $profile, $parameter) | |
| Function to Add a printer in db. More... | |
| updatePrinter ($name, $type, $profile, $parameter, $printerid) | |
| Function to Update a printer in db. More... | |
| deletePrinter ($printerid) | |
| Function to Delete a printer from db. More... | |
| addTemplate ($name, $template) | |
| Function to add a printer template in db. More... | |
| deleteTemplate ($templateid) | |
| Function to delete a printer template in db. More... | |
| updateTemplate ($name, $template, $templateid) | |
| Function to Update a printer template in db. More... | |
| sendTestToPrinter ($printerid) | |
| Function to Send Test page to Printer. More... | |
| sendToPrinter ($object, $templateid, $printerid) | |
| Function to Print Receipt Ticket. More... | |
| loadTemplate ($templateid) | |
| Function to load Template. More... | |
| initPrinter ($printerid) | |
| Function Init Printer. More... | |
Class to manage Receipt Printers.
Definition at line 121 of file dolreceiptprinter.class.php.
| dolReceiptPrinter::__construct | ( | $db | ) |
Constructor.
| DoliDB | $db | database |
Definition at line 162 of file dolreceiptprinter.class.php.
References db.
| dolReceiptPrinter::addPrinter | ( | $name, | |
| $type, | |||
| $profile, | |||
| $parameter | |||
| ) |
Function to Add a printer in db.
| string | $name | Printer name |
| int | $type | Printer type |
| int | $profile | Printer profile |
| string | $parameter | Printer parameter |
Definition at line 404 of file dolreceiptprinter.class.php.
| dolReceiptPrinter::addTemplate | ( | $name, | |
| $template | |||
| ) |
Function to add a printer template in db.
| string | $name | Template name |
| int | $template | Template |
Definition at line 476 of file dolreceiptprinter.class.php.
| dolReceiptPrinter::deletePrinter | ( | $printerid | ) |
Function to Delete a printer from db.
| int | $printerid | Printer id |
Definition at line 455 of file dolreceiptprinter.class.php.
| dolReceiptPrinter::deleteTemplate | ( | $templateid | ) |
Function to delete a printer template in db.
| int | $templateid | Template ID |
Definition at line 497 of file dolreceiptprinter.class.php.
| dolReceiptPrinter::initPrinter | ( | $printerid | ) |
Function Init Printer.
| int | $printerid | Printer id |
Definition at line 940 of file dolreceiptprinter.class.php.
| dolReceiptPrinter::listPrinters | ( | ) |
list printers
Definition at line 253 of file dolreceiptprinter.class.php.
| dolReceiptPrinter::listPrintersTemplates | ( | ) |
List printers templates.
Definition at line 321 of file dolreceiptprinter.class.php.
| dolReceiptPrinter::loadTemplate | ( | $templateid | ) |
Function to load Template.
| int | $templateid | Template id |
Definition at line 908 of file dolreceiptprinter.class.php.
| dolReceiptPrinter::selectProfilePrinter | ( | $selected = '', |
|
$htmlname = 'printerprofileid' |
|||
| ) |
Form to Select Profile printer.
| string | $selected | Id printer profile pre-selected |
| string | $htmlname | select html name |
Definition at line 378 of file dolreceiptprinter.class.php.
| dolReceiptPrinter::selectTypePrinter | ( | $selected = '', |
|
$htmlname = 'printertypeid' |
|||
| ) |
Form to Select type printer.
| string | $selected | Id printer type pre-selected |
| string | $htmlname | select html name |
Definition at line 353 of file dolreceiptprinter.class.php.
| dolReceiptPrinter::sendTestToPrinter | ( | $printerid | ) |
Function to Send Test page to Printer.
| int | $printerid | Printer id |
Definition at line 544 of file dolreceiptprinter.class.php.
| dolReceiptPrinter::sendToPrinter | ( | $object, | |
| $templateid, | |||
| $printerid | |||
| ) |
Function to Print Receipt Ticket.
| Facture | Commande | $object | Order or invoice object |
| int | $templateid | Template id |
| int | $printerid | Printer id |
Definition at line 587 of file dolreceiptprinter.class.php.
| dolReceiptPrinter::updatePrinter | ( | $name, | |
| $type, | |||
| $profile, | |||
| $parameter, | |||
| $printerid | |||
| ) |
Function to Update a printer in db.
| string | $name | Printer name |
| int | $type | Printer type |
| int | $profile | Printer profile |
| string | $parameter | Printer parameter |
| int | $printerid | Printer id |
Definition at line 429 of file dolreceiptprinter.class.php.
| dolReceiptPrinter::updateTemplate | ( | $name, | |
| $template, | |||
| $templateid | |||
| ) |
Function to Update a printer template in db.
| string | $name | Template name |
| int | $template | Template |
| int | $templateid | Template id |
Definition at line 520 of file dolreceiptprinter.class.php.