diff options
Diffstat (limited to 'src/model')
| -rw-r--r-- | src/model/entities/Node.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/model/entities/Node.php b/src/model/entities/Node.php index ec5f081..76ef74b 100644 --- a/src/model/entities/Node.php +++ b/src/model/entities/Node.php | |||
| @@ -177,7 +177,8 @@ class Node | |||
| 177 | } | 177 | } |
| 178 | } | 178 | } |
| 179 | 179 | ||
| 180 | private function sortNews(bool $chrono = false) // affichage du plus récent au plus ancien par défaut | 180 | // remplacée par "ORDER BY a.date_time" en DQL |
| 181 | /*private function sortNews(bool $chrono = false) // affichage du plus récent au plus ancien par défaut | ||
| 181 | { | 182 | { |
| 182 | // tri par insertion similaire à Position::sortChildren | 183 | // tri par insertion similaire à Position::sortChildren |
| 183 | for($i = 1; $i < count($this->children); $i++){ | 184 | for($i = 1; $i < count($this->children); $i++){ |
| @@ -192,7 +193,7 @@ class Node | |||
| 192 | } | 193 | } |
| 193 | $this->children[$j + 1] = $tmp; | 194 | $this->children[$j + 1] = $tmp; |
| 194 | } | 195 | } |
| 195 | } | 196 | }*/ |
| 196 | 197 | ||
| 197 | public function removeChild(self $child): void | 198 | public function removeChild(self $child): void |
| 198 | { | 199 | { |
