diff options
author | polo <ordipolo@gmx.fr> | 2025-09-17 16:52:43 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2025-09-17 16:52:43 +0200 |
commit | 027af942de75f7c5bc519fabfa5fa11de9bc89ea (patch) | |
tree | f8074c57d59e99e036152369f2808046aa0004ec /src/controller | |
parent | 07819d9f9e151e9fed6a6490dcad53ba2d57a550 (diff) | |
download | cms-027af942de75f7c5bc519fabfa5fa11de9bc89ea.zip |
optimisation récursivité dans sortChildren uniquement avec les pages, regression constructeur MenuBuilder
Diffstat (limited to 'src/controller')
-rw-r--r-- | src/controller/MenuAndPathsController.php | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/controller/MenuAndPathsController.php b/src/controller/MenuAndPathsController.php index 5779b39..3ff7d54 100644 --- a/src/controller/MenuAndPathsController.php +++ b/src/controller/MenuAndPathsController.php | |||
@@ -101,7 +101,6 @@ class MenuAndPathsController | |||
101 | 101 | ||
102 | //Director::$menu_data->addChild($page); // => pour sortChildren | 102 | //Director::$menu_data->addChild($page); // => pour sortChildren |
103 | $page->getParent()->addChild($page); // => pour sortChildren | 103 | $page->getParent()->addChild($page); // => pour sortChildren |
104 | //Director::$menu_data->sortChildren(true); // positions décaléees des nouveaux petits frères | ||
105 | $page->getParent()->sortChildren(true); // positions décaléees des nouveaux petits frères | 104 | $page->getParent()->sortChildren(true); // positions décaléees des nouveaux petits frères |
106 | $page->setParent(null); | 105 | $page->setParent(null); |
107 | 106 | ||
@@ -116,7 +115,6 @@ class MenuAndPathsController | |||
116 | $page->getParent()->sortChildren(true); // positions décaléees des nouveaux petits frères | 115 | $page->getParent()->sortChildren(true); // positions décaléees des nouveaux petits frères |
117 | $page->fillChildrenPagePath($page->getParent()->getPagePath()); | 116 | $page->fillChildrenPagePath($page->getParent()->getPagePath()); |
118 | } | 117 | } |
119 | //$parent->sortChildren(true); // positions des enfants restants, inutile si la fonction est récursive? | ||
120 | $entityManager->flush(); | 118 | $entityManager->flush(); |
121 | 119 | ||
122 | // affichage | 120 | // affichage |