diff --git a/app/config/services.yml b/app/config/services.yml index b102700f9..cc041f444 100644 --- a/app/config/services.yml +++ b/app/config/services.yml @@ -164,6 +164,9 @@ services: Afup\Site\Association\CotisationsFactory: autowire: true + Afup\Site\Corporate\Page: + autowire: true + Afup\Site\Forum\Facturation: autowire: true diff --git a/sources/Afup/Corporate/Branche.php b/sources/Afup/Corporate/Branche.php deleted file mode 100644 index a85245988..000000000 --- a/sources/Afup/Corporate/Branche.php +++ /dev/null @@ -1,115 +0,0 @@ -bdd = $bdd ?: new _Site_Base_De_Donnees(); - } - - public function navigation_avec_image($bool = false): void - { - if ($bool) { - $this->navigation = 'image'; - } - } - - public function feuillesEnfants($id) - { - $requete = 'SELECT * - FROM afup_site_feuille - WHERE id_parent = ' . $this->bdd->echapper($id) . ' - AND etat = 1 - ORDER BY position'; - return $this->bdd->obtenirTous($requete); - } - - public function getNom($id) - { - $requete = 'SELECT nom - FROM afup_site_feuille - WHERE id = ' . $this->bdd->echapper($id) . ' - AND etat = 1'; - $enregistrement = $this->bdd->obtenirEnregistrement($requete); - - if (false === $enregistrement) { - return null; - } - - return $enregistrement['nom']; - } - - public function naviguer($id, $profondeur = 1, string $identification = ""): string - { - $requete = 'SELECT * - FROM afup_site_feuille - WHERE id = ' . $this->bdd->echapper($id) . ' - AND etat = 1'; - $racine = $this->bdd->obtenirEnregistrement($requete); - - if ($racine === false) { - return ''; - } - - $feuilles = $this->extraireFeuilles($id, $profondeur); - if ($feuilles !== '' && $feuilles !== '0') { - $navigation = '