From 61a907785d9382adeb2de05b4b080de1d270f6d0 Mon Sep 17 00:00:00 2001 From: polo Date: Sun, 19 Oct 2025 14:24:00 +0200 Subject: =?UTF-8?q?suppression=20champ=20file=5Fpath=5Fmini=20dans=20Asset?= =?UTF-8?q?,=20nettoyage=20divers,=20r=C3=A9solution=20bug=20quand=20pas?= =?UTF-8?q?=20d'image=20de=20fond?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/entities/Node.php | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/model/entities/Node.php') diff --git a/src/model/entities/Node.php b/src/model/entities/Node.php index 76ef74b..2034b3d 100644 --- a/src/model/entities/Node.php +++ b/src/model/entities/Node.php @@ -176,25 +176,6 @@ class Node $this->sortChildren(false); } } - - // remplacée par "ORDER BY a.date_time" en DQL - /*private function sortNews(bool $chrono = false) // affichage du plus récent au plus ancien par défaut - { - // tri par insertion similaire à Position::sortChildren - for($i = 1; $i < count($this->children); $i++){ - $tmp = $this->children[$i]; - $j = $i - 1; - - $compare = $chrono ? fn($a, $b) => $a > $b : fn($a, $b) => $a < $b; - - while($j >= 0 && $compare($this->children[$j]->getArticle()->getDateTime(), $tmp->getArticle()->getDateTime())){ - $this->children[$j + 1] = $this->children[$j]; - $j--; - } - $this->children[$j + 1] = $tmp; - } - }*/ - public function removeChild(self $child): void { foreach($this->children as $key => $object){ -- cgit v1.2.3