The Addons logic?
Posted: 05 Oct 2008, 19:10
Hi Jan,
I don't have any issue or problem with your nice Addon. It works fine in all aspects!
However, I'm trying to learn how it works, or actually how the Addon, TCPDF and VM classes work together.
So, let me just state how I understand things, and then correct me where ever I'm wrong, OK?
---------------------------------------------------------------------------------------------------------------------------------
1. All logic and presentation in regards of retrieving database fields, presenting pdf icons and
creating tabs for insert,edit,delete of deliverables in admin backend - are handled in ps_delivery.php and
ps_order_delivery.php
2. The ps_delivery.php is calling the delivery.pdf.php, which in its turn utilize the parameters already set in
ps_delivery.php. delivery.pdf.php sets some basic parameters to be used later in phoca.tcpdf.pdf.
3. The delivery.pdf.php then calls phoca.tcpdf.php which does the actual placement of fields in the PDF.
.............................................................................................................................
So the things I don't understand here are:
1. Where/when is the 'printpdf' directory being called?
2. How does printpdf 'know' that it should include the phoca.tcpdf.php code in order to render PDF?
Why I'm asking is c'ause I'm trying to understand the workflow in order to insert some new fields.
Happy if you have the time to give me some pointers.
(And again, the Addon works nicely. It's just me trying to enhance my site...
)
Regards
Akerman
I don't have any issue or problem with your nice Addon. It works fine in all aspects!
However, I'm trying to learn how it works, or actually how the Addon, TCPDF and VM classes work together.
So, let me just state how I understand things, and then correct me where ever I'm wrong, OK?
---------------------------------------------------------------------------------------------------------------------------------
1. All logic and presentation in regards of retrieving database fields, presenting pdf icons and
creating tabs for insert,edit,delete of deliverables in admin backend - are handled in ps_delivery.php and
ps_order_delivery.php
2. The ps_delivery.php is calling the delivery.pdf.php, which in its turn utilize the parameters already set in
ps_delivery.php. delivery.pdf.php sets some basic parameters to be used later in phoca.tcpdf.pdf.
3. The delivery.pdf.php then calls phoca.tcpdf.php which does the actual placement of fields in the PDF.
.............................................................................................................................
So the things I don't understand here are:
1. Where/when is the 'printpdf' directory being called?
2. How does printpdf 'know' that it should include the phoca.tcpdf.php code in order to render PDF?
Why I'm asking is c'ause I'm trying to understand the workflow in order to insert some new fields.
Happy if you have the time to give me some pointers.
(And again, the Addon works nicely. It's just me trying to enhance my site...
Regards
Akerman