@@ -268,6 +268,10 @@ |
||
268 | 268 | } |
269 | 269 | } |
270 | 270 | |
271 | + /** |
|
272 | + * @param string $id |
|
273 | + * @param integer $affiche |
|
274 | + */ |
|
271 | 275 | private function setAjoutLienNavigation($id, $value_id, $affiche) { |
272 | 276 | if ($affiche !== null) { |
273 | 277 | $nav = new Navigation(); |
@@ -129,7 +129,7 @@ |
||
129 | 129 | |
130 | 130 | $dbc->prepare("INSERT INTO page (titre, contenu, url, meta_description, balise_title, ordre, parent, affiche) VALUES (:titre, :contenu, :url, :meta_description, :balise_title, :ordre, :parent, :affiche)", $value); |
131 | 131 | $this->id_page = $dbc->lastInsertId(); |
132 | - $this->setAjoutLienNavigation("ID_page", $this->id_page , 1); |
|
132 | + $this->setAjoutLienNavigation("ID_page", $this->id_page, 1); |
|
133 | 133 | } |
134 | 134 | else { |
135 | 135 | FlashMessage::setFlash("Impossible de créer cette page, veuillez réeseyer dans un moment. Si le problème persiste contactez votre administrateur."); |
@@ -90,6 +90,9 @@ |
||
90 | 90 | } |
91 | 91 | } |
92 | 92 | |
93 | + /** |
|
94 | + * @param string $id |
|
95 | + */ |
|
93 | 96 | public function setSupprimerLien($id, $value_id) {echo("$id, $value_id"); |
94 | 97 | $dbc = App::getDb(); |
95 | 98 |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | if (is_array($query) && (count($query) > 0)) { |
52 | 52 | foreach ($query as $obj) { |
53 | - return [$obj->titre,$obj->url]; |
|
53 | + return [$obj->titre, $obj->url]; |
|
54 | 54 | } |
55 | 55 | } |
56 | 56 | } |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | |
70 | 70 | if (is_array($query) && (count($query) > 0)) { |
71 | 71 | foreach ($query as $obj) { |
72 | - return [$obj->nom_module,$obj->url]; |
|
72 | + return [$obj->nom_module, $obj->url]; |
|
73 | 73 | } |
74 | 74 | } |
75 | 75 | } |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | $dbc = App::getDb(); |
87 | 87 | |
88 | 88 | if ($afficher != null) { |
89 | - $dbc->insert($id, $value_id)->insert("ordre", $this->last_ordre+1)->into("navigation")->set(); |
|
89 | + $dbc->insert($id, $value_id)->insert("ordre", $this->last_ordre + 1)->into("navigation")->set(); |
|
90 | 90 | } |
91 | 91 | } |
92 | 92 |