[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 30/107: New function PDF:is_fill add document
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 30/107: New function PDF:is_fill add documentation |
Date: |
Mon, 26 Aug 2019 10:31:52 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 126395069c9721c3dbe3ebade6f5f548942011fb
Author: Dany De Bontridder <address@hidden>
Date: Sun Jul 21 17:31:32 2019 +0200
New function PDF:is_fill
add documentation
---
include/lib/pdf.class.php | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/include/lib/pdf.class.php b/include/lib/pdf.class.php
index 90600bd..42efcaa 100644
--- a/include/lib/pdf.class.php
+++ b/include/lib/pdf.class.php
@@ -243,6 +243,10 @@ class PDF extends TFPDF
$this->add_cell(new Cellule($w,$h,$txt,$border,0,$align,$fill,'','M'));
}
+ /**
+ * Print all the cell stored and call Ln (new line)
+ * @param int $p_step
+ */
function line_new($p_step=null){
$this->print_row();
if ( $this->bigger==0)
@@ -252,6 +256,26 @@ class PDF extends TFPDF
$this->bigger=0;
}
/**
+ * If the step is even then return 1 and set the backgroup color to blue ,
otherwise
+ * returns 0, and set the background color to white
+ * It is use to compute alternated colored row , it the parameter fill in
write_cell and
+ * cell
+ * @see PDF:write_cell
+ * @see TPDF:cell
+ *
+ */
+ function is_fill($p_step)
+ {
+ if ($p_step % 2 == 0) {
+ $pdf->SetFillColor(220, 221, 255);
+ $fill = 1;
+ } else {
+ $pdf->SetFillColor(0, 0, 0);
+ $fill = 0;
+ }
+ return $p_step;
+ }
+ /**
*@brief retrieve the client name and quick_code
*@param $p_jr_id jrn.jr_id
*@param $p_jrn_type ledger type ACH VEN FIN
- [Noalyss-commit] [noalyss] 06/107: TEST : fix some little bugs, (continued)
- [Noalyss-commit] [noalyss] 06/107: TEST : fix some little bugs, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 14/107: Accounting : Cosmetic change icon more by arrow, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 17/107: Mantis #0001651: Problème avec totaux en CA, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 12/107: Code cleaning replace $start and $end by $periode_...>value to avoid to get it several times, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 23/107: Bug javascript mispelled function show_tab, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 21/107: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss into dev7016, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 15/107: Icon_Action : add testing + cosmetic for Icon_Action::menu, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 22/107: typo, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 26/107: Code Cleaning : replace tempname with sys_get_temp_dir Merge commit 'd85d6f8c77083fb997441a672d222bb10836af3e' into dev7109, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 27/107: Improve : depending if pdftk is a snap or not , his path must be a setting, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 30/107: New function PDF:is_fill add documentation,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 35/107: indent code, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 37/107: Card : allow to specify the max displaid rows, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 34/107: Clean code , remove useless comment, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 60/107: New message : failed, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 01/107: replace tempname with sys_get_temp_dir, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 03/107: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 05/107: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 19/107: Bug with javascript document.viewport cannot be used directly, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 20/107: Bug with javascript global variable width is undefined, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 31/107: translation, Dany De Bontridder, 2019/08/26