QuickEditDocuments
in package
implements
QuickEditDocumentsInterface
Class QuickEditDocuments
Tags
Interfaces, Classes and Traits
- QuickEditDocumentsInterface
- Interface QuickEditDocumentsInterface
Table of Contents
- PDF_FILENAME = 'InventoryChecklist.pdf'
- PDF_FONT_SIZE_MAIN = 8
- PDF_HEADER_LOGO = ''
- PDF_HEADER_LOGO_WIDTH = 0
- PDF_HEADER_STRING = ''
- PDF_HEADER_TITLE = 'INVENTORY_CHECKLIST'
- PDF_PAGE_FORMAT = 'A4'
- PDF_PAGE_ORIENTATION = 'P'
- PDF_UNIT = 'mm'
- $categories : array<string|int, mixed>
- $creator : string
- $db : CI_DB_query_builder
- $languageTextManager : LanguageTextManager
- $products : array<string|int, mixed>
- $quickEditOverviewColumns : QuickEditOverviewColumns
- $title : string
- __construct() : mixed
- QuickEditDocuments constructor.
- getLink() : array<string|int, mixed>
- Returns the link to the last created inventory list.
- getProducts() : bool
- Creates a list of all products needed to create the inventory list. The list is then generated.
- getProductsById() : bool
- Creates a list of products that have been passed as parameters.
- _createPdfInventoryDocument() : bool
- Creates a PDF file and saves it.
- _getColumns() : array<string|int, mixed>
- Returns the required column names and their names.
Constants
PDF_FILENAME
public
string
PDF_FILENAME
= 'InventoryChecklist.pdf'
PDF_FONT_SIZE_MAIN
public
int
PDF_FONT_SIZE_MAIN
= 8
PDF_HEADER_LOGO
public
string
PDF_HEADER_LOGO
= ''
PDF_HEADER_LOGO_WIDTH
public
int
PDF_HEADER_LOGO_WIDTH
= ""
PDF_HEADER_STRING
public
string
PDF_HEADER_STRING
= ''
PDF_HEADER_TITLE
public
string
PDF_HEADER_TITLE
= 'INVENTORY_CHECKLIST'
PDF_PAGE_FORMAT
public
string
PDF_PAGE_FORMAT
= 'A4'
PDF_PAGE_ORIENTATION
public
string
PDF_PAGE_ORIENTATION
= 'P'
PDF_UNIT
public
string
PDF_UNIT
= 'mm'
Properties
$categories
protected
array<string|int, mixed>
$categories
= []
$creator
protected
string
$creator
= 'fpdf.org/gambio.de'
$db
protected
CI_DB_query_builder
$db
$languageTextManager
protected
LanguageTextManager
$languageTextManager
$products
protected
array<string|int, mixed>
$products
= []
$quickEditOverviewColumns
protected
QuickEditOverviewColumns
$quickEditOverviewColumns
$title
protected
string
$title
= 'INVENTORY_CHECKLIST'
Methods
__construct()
QuickEditDocuments constructor.
public
__construct() : mixed
Return values
mixed —getLink()
Returns the link to the last created inventory list.
public
getLink() : array<string|int, mixed>
Return values
array<string|int, mixed> —Returns the link to the last created inventory list.
getProducts()
Creates a list of all products needed to create the inventory list. The list is then generated.
public
getProducts() : bool
Return values
bool —Returns true if the create and save was successful - otherwise, false is returned.
getProductsById()
Creates a list of products that have been passed as parameters.
public
getProductsById(array<string|int, mixed> $products) : bool
Parameters
- $products : array<string|int, mixed>
-
Returns the list of products that have been passed as parameters.
Return values
bool —Returns true if the create and save was successful - otherwise, false is returned.
_createPdfInventoryDocument()
Creates a PDF file and saves it.
protected
_createPdfInventoryDocument() : bool
Return values
bool —Returns true if the create and save was successful - otherwise, false is returned.
_getColumns()
Returns the required column names and their names.
protected
_getColumns() : array<string|int, mixed>
Return values
array<string|int, mixed> —Returns the required column names and their names.