Represents a PDF Document, for example an offer or an invoice.
This file is part of the project codename "AMANUENSIS"
- Author
- Sebastian Antosch s.ant.nosp@m.osch.nosp@m.@i-sa.nosp@m.n.de
- Copyright
- 2015 I-SAN.de Webdesign & Hosting GbR GPL
| __construct |
( |
|
$type, |
|
|
|
$id |
|
) |
| |
Constructs a new PDF Doc
- Parameters
-
| $type | - the document type (e.g. offer, invoice...) |
| $id | - the id of the document |
Will stream a preview for this document
Will render the doc and save it to disk at the proper location
- Returns
- String - the path the PDF was saved
Gathers the document info
- Returns
- array
- Exceptions
-
| Exception | - if the thing is not found |
Gathers the associated items
Will update the database state and path of the document
- Parameters
-
generates desired path and filename for the document, and ensures it is existent
- Returns
- String
- Exceptions
-
generates an appropriate filename
- Returns
- String
Generates the HTML for the doc
- Returns
- string
Calcs a due date for a date
- Parameters
-
- Returns
- bool|string
The documentation for this class was generated from the following file:
- D:/Arbeit/PhpStormProjects/amanuensis/app/classes/pdf/pdfDoc.php