From 75f2c543e7fe45c1a3dcea842650a5d13a0235f0 Mon Sep 17 00:00:00 2001 From: polo Date: Sun, 13 Apr 2025 13:30:31 +0200 Subject: =?UTF-8?q?menu=20et=20fil=20d'ariane=20g=C3=A8rent=20le=20champ?= =?UTF-8?q?=20reachable=20dans=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/entities/Page.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/model/entities') diff --git a/src/model/entities/Page.php b/src/model/entities/Page.php index fbf0f27..c40a297 100644 --- a/src/model/entities/Page.php +++ b/src/model/entities/Page.php @@ -73,7 +73,11 @@ class Page { return $this->end_of_path; } - public function getInMenu(): bool + public function isReachable(): bool + { + return $this->reachable; + } + public function isInMenu(): bool { return $this->in_menu; } @@ -112,7 +116,6 @@ class Page { for($i = 0; $i < $iteration - 1; $i++) { - //echo '
' . $this->children[$i]->getPosition() . ' - ' . $this->children[$i + 1]->getPosition(); if($this->children[$i]->getPosition() > $this->children[$i + 1]->getPosition()) { $tmp = $this->children[$i]; -- cgit v1.2.3