InvoiceActions
in package
Class InvoiceActions
Tags
Table of Contents
- bulkPdfInvoices() : mixed
- Outputs the concatenated invoice PDFs.
- _createBulkPdf() : mixed
- Outputs a bulk PDF file through the use of mPDF.
- _getPdfPermissions() : array<string|int, mixed>
- Generate the PDF permissions depending the shop configuration.
Methods
bulkPdfInvoices()
Outputs the concatenated invoice PDFs.
public
bulkPdfInvoices(array<string|int, mixed> $invoiceIds) : mixed
Parameters
- $invoiceIds : array<string|int, mixed>
-
The invoice IDs to be included in the concatenated file.
Tags
Return values
mixed —_createBulkPdf()
Outputs a bulk PDF file through the use of mPDF.
protected
_createBulkPdf(array<string|int, mixed> $invoiceIds) : mixed
This method will parse the selected PDFs of the provided invoices and will concatenate them into a single file. This file will be then outputted directly so that browsers download it immediately.
Parameters
- $invoiceIds : array<string|int, mixed>
-
The selected invoice IDs.
Tags
Return values
mixed —_getPdfPermissions()
Generate the PDF permissions depending the shop configuration.
protected
_getPdfPermissions() : array<string|int, mixed>