summaryrefslogtreecommitdiff
path: root/src/model/entities/Page.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/entities/Page.php')
-rw-r--r--src/model/entities/Page.php7
1 files changed, 5 insertions, 2 deletions
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
73 { 73 {
74 return $this->end_of_path; 74 return $this->end_of_path;
75 } 75 }
76 public function getInMenu(): bool 76 public function isReachable(): bool
77 {
78 return $this->reachable;
79 }
80 public function isInMenu(): bool
77 { 81 {
78 return $this->in_menu; 82 return $this->in_menu;
79 } 83 }
@@ -112,7 +116,6 @@ class Page
112 { 116 {
113 for($i = 0; $i < $iteration - 1; $i++) 117 for($i = 0; $i < $iteration - 1; $i++)
114 { 118 {
115 //echo '<br>' . $this->children[$i]->getPosition() . ' - ' . $this->children[$i + 1]->getPosition();
116 if($this->children[$i]->getPosition() > $this->children[$i + 1]->getPosition()) 119 if($this->children[$i]->getPosition() > $this->children[$i + 1]->getPosition())
117 { 120 {
118 $tmp = $this->children[$i]; 121 $tmp = $this->children[$i];