diff options
author | polo <ordipolo@gmx.fr> | 2025-05-11 17:45:14 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2025-05-11 17:45:14 +0200 |
commit | 6ddffd80053e268789f1b168ff3a8ee223681e47 (patch) | |
tree | 7539761c4454d9ff8c92e1d4e64a7da0c103c21b /src/model/entities/Page.php | |
parent | 4efa19d4357ab204d62397f1849e4651906e0e70 (diff) | |
download | cms-6ddffd80053e268789f1b168ff3a8ee223681e47.zip |
création de page
Diffstat (limited to 'src/model/entities/Page.php')
-rw-r--r-- | src/model/entities/Page.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/model/entities/Page.php b/src/model/entities/Page.php index 1ad9ddb..7448e5d 100644 --- a/src/model/entities/Page.php +++ b/src/model/entities/Page.php | |||
@@ -26,7 +26,7 @@ class Page | |||
26 | #[ORM\Column(type: "string", length: 255)] | 26 | #[ORM\Column(type: "string", length: 255)] |
27 | private string $end_of_path; // morceau d'URL plus exactement | 27 | private string $end_of_path; // morceau d'URL plus exactement |
28 | 28 | ||
29 | private string $page_path; | 29 | private string $page_path = ''; |
30 | 30 | ||
31 | #[ORM\Column(type: "boolean")] | 31 | #[ORM\Column(type: "boolean")] |
32 | private bool $reachable; | 32 | private bool $reachable; |
@@ -128,6 +128,7 @@ class Page | |||
128 | return $this->children; | 128 | return $this->children; |
129 | } | 129 | } |
130 | 130 | ||
131 | // utilisée par $menu_path | ||
131 | public function fillChildrenPagePath(string $parent_path = ''): void | 132 | public function fillChildrenPagePath(string $parent_path = ''): void |
132 | { | 133 | { |
133 | $this->page_path = $parent_path != '' ? $parent_path . '/' . $this->end_of_path : $this->end_of_path; | 134 | $this->page_path = $parent_path != '' ? $parent_path . '/' . $this->end_of_path : $this->end_of_path; |