diff options
| author | polo <ordipolo@gmx.fr> | 2025-10-03 15:42:22 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2025-10-03 15:42:22 +0200 |
| commit | 9f88389d78755d7c69c29e9db8f114fd1dbef034 (patch) | |
| tree | 2158ac1292fcd973563adf2a5836b13354fc8207 /src/model/entities/Node.php | |
| parent | d6d7351259e104ab10b5dda3483c281830ce4ff3 (diff) | |
| download | cms-9f88389d78755d7c69c29e9db8f114fd1dbef034.tar.gz cms-9f88389d78755d7c69c29e9db8f114fd1dbef034.tar.bz2 cms-9f88389d78755d7c69c29e9db8f114fd1dbef034.zip | |
regression AbstractBuilder->render inaccessible, séparation dans Director __construct/makeMenuAndPaths
Diffstat (limited to 'src/model/entities/Node.php')
| -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 | { |
