From a45a3e0345890b9df3c5fa7c82966a64491eca02 Mon Sep 17 00:00:00 2001 From: polo Date: Wed, 14 Dec 2022 12:52:11 +0100 Subject: MODEL + reorganisation --- php/Latex.php | 84 ----------------------------------------------------------- 1 file changed, 84 deletions(-) delete mode 100644 php/Latex.php (limited to 'php/Latex.php') diff --git a/php/Latex.php b/php/Latex.php deleted file mode 100644 index c3d56af..0000000 --- a/php/Latex.php +++ /dev/null @@ -1,84 +0,0 @@ -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