From 6b55446d12a5c39d5a4a4584bfabc7507c2f9b74 Mon Sep 17 00:00:00 2001 From: polo Date: Fri, 2 Dec 2022 15:29:02 +0100 Subject: date<->timestamp, ===, renommage, latex --- php/Latex.php | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 php/Latex.php (limited to 'php/Latex.php') diff --git a/php/Latex.php b/php/Latex.php new file mode 100644 index 0000000..e8ed763 --- /dev/null +++ b/php/Latex.php @@ -0,0 +1,84 @@ +fileName = $quoi . '-' . $codePresta . '.tex'; + } +} + +class DevisLatex extends PrestaLatex +{} + +class FactureLatex extends PrestaLatex +{} + +class LocationLatex extends PrestaLatex +{} + +class EnveloppeRectoLatex extends PrestaLatex +{} +class EnveloppeVersoLatex extends PrestaLatex +{} + + +abstract class ComptaLatex extends Latex +{ + public function __construct(string $quoi, , string $annee, int $numeroMois = 0) + { + nameTheFile($quoi, $annee, $numeroMois); + } + + // forme = Recettes-2022-06-Juin.tex ou Recettes-2022.tex + // type de 'annee'? + protected function nameTheFile(string $quoi, string $annee, int $numeroMois = 0) + { + $this->fileName = $quoi . '-' . $annee; + $mois = ['', 'Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre']; + if($numeroMois > 0 && $numeroMois <= 12) + { + $this->fileName .= '-' . $numeroMois . '-' . $mois[$numeroMois]; + } + $this->fileName .= '.tex'; + } +} + +class LivreRecettesLatex extends ComptaLatex +{} + +class RegistreAchatsLatex extends ComptaLatex +{} + +class BilanLatex extends ComptaLatex +{} -- cgit v1.2.3