@@ -119,6 +119,7 @@ discard block |
||
119 | 119 | |
120 | 120 | /** |
121 | 121 | * @param string $order |
122 | + * @param string $type |
|
122 | 123 | */ |
123 | 124 | public function orderBy($order, $type = null) { |
124 | 125 | if ($type === null) $type = "ASC"; |
@@ -128,6 +129,10 @@ discard block |
||
128 | 129 | return $this; |
129 | 130 | } |
130 | 131 | |
132 | + /** |
|
133 | + * @param integer $debut |
|
134 | + * @param integer $fin |
|
135 | + */ |
|
131 | 136 | public function limit($debut, $fin) { |
132 | 137 | $this->limit = " LIMIT ".$debut.", ".$fin." "; |
133 | 138 |
@@ -108,8 +108,7 @@ discard block |
||
108 | 108 | |
109 | 109 | if ($no_bind === true) { |
110 | 110 | $this->conditions_table[] = $champ.$cond.$champ_test." ".$closure; |
111 | - } |
|
112 | - else { |
|
111 | + } else { |
|
113 | 112 | $this->conditions[] = $cond; |
114 | 113 | $this->addWhere($champ, $champ_test); |
115 | 114 | } |
@@ -121,7 +120,9 @@ discard block |
||
121 | 120 | * @param string $order |
122 | 121 | */ |
123 | 122 | public function orderBy($order, $type = null) { |
124 | - if ($type === null) $type = "ASC"; |
|
123 | + if ($type === null) { |
|
124 | + $type = "ASC"; |
|
125 | + } |
|
125 | 126 | |
126 | 127 | $this->order_by = " ORDER BY ".$order." ".$type." "; |
127 | 128 |
@@ -10,7 +10,7 @@ |
||
10 | 10 | $meta_description = $_POST['meta_description']; |
11 | 11 | $titre_page = $_POST['titre_page']; |
12 | 12 | $parent = $_POST['parent_texte']; |
13 | - $contenu = $_POST['contenu'];echo("dgfdgf"); |
|
13 | + $contenu = $_POST['contenu']; echo("dgfdgf"); |
|
14 | 14 | } |
15 | 15 | else { |
16 | 16 | $contenu_class->getHeadPage($_POST['id_page']); |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | ->set(); |
137 | 137 | |
138 | 138 | $this->id_page = $dbc->lastInsertId(); |
139 | - $this->setAjoutLienNavigation("ID_page", $this->id_page , 1); |
|
139 | + $this->setAjoutLienNavigation("ID_page", $this->id_page, 1); |
|
140 | 140 | } |
141 | 141 | else { |
142 | 142 | FlashMessage::setFlash("Impossible de créer cette page, veuillez réeseyer dans un moment. Si le problème persiste contactez votre administrateur."); |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | ->update("parent", $parent) |
204 | 204 | ->update("affiche", $affiche) |
205 | 205 | ->from("page") |
206 | - ->where("ID_page", "=", $id_page,"",true) |
|
206 | + ->where("ID_page", "=", $id_page, "", true) |
|
207 | 207 | ->set(); |
208 | 208 | |
209 | 209 | $this->setModifierLienNavigation("ID_page", $id_page, $this->getParentId($parent), $affiche); |