[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 56/107: New function PDF_Core:is_fill add doc
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 56/107: New function PDF_Core:is_fill add documentation |
Date: |
Mon, 26 Aug 2019 10:31:57 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 660aed7957ff77211992ba08a1990600f6c2f66f
Author: Dany De Bontridder <address@hidden>
Date: Mon Jul 29 11:07:55 2019 +0200
New function PDF_Core:is_fill
add documentation
---
include/lib/pdf_core.class.php | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/include/lib/pdf_core.class.php b/include/lib/pdf_core.class.php
index 805bd87..91c7672 100644
--- a/include/lib/pdf_core.class.php
+++ b/include/lib/pdf_core.class.php
@@ -211,6 +211,11 @@ class PDF_Core 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)
@@ -219,6 +224,27 @@ class PDF_Core extends TFPDF
parent::Ln($this->bigger);
$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;
+ }
+
}
- [Noalyss-commit] [noalyss] 92/107: Code : remove direct use of $_GET, (continued)
- [Noalyss-commit] [noalyss] 92/107: Code : remove direct use of $_GET, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 39/107: Code cleaning : split database into database (for noalyss) and databasecore , with the functions, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 98/107: New :: function Icon_Action::tips for short comment New : Icon_Action::unlock, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 84/107: Task #1734 Upgrade patch for PRINTTVA, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 46/107: Code Cleaning split PDF into PDF_Core and PDF, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 105/107: fixup! New Task 1728: Aide à l'encodage - Journaux négatifs (note de crédit), Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 106/107: cosmetic, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 64/107: Add demo for fontello, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 75/107: Task #0001731: Moyen de paiement, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 81/107: Task #0001733: Impression moyen paiement, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 56/107: New function PDF_Core:is_fill add documentation,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 38/107: load_all must always return an array, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 67/107: SQL : add constraint for payment_method, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 44/107: fixup! fixup! Code cleaning : split database into database (for noalyss) and databasecore , with the functions, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 36/107: Bug : card cannot use a attribute of the type "card", reason : the query was wrong and there were a confusion between this->name and this->id in "get_js_attr()", Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 47/107: Improve doxygen, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 51/107: Code Cleaning split sendmail between sendmail_core (not related to noalyss) and sendmail which is used by noalyss, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 54/107: Merge branch 'dev7109', Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 59/107: #0001729: Preference : ne plus recharger la page, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 85/107: Cosmetic : Icon_Trash in Todo_List, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 80/107: translation, Dany De Bontridder, 2019/08/26