diff options
| author | polo <ordipolo@gmx.fr> | 2025-10-09 14:40:54 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2025-10-09 14:40:54 +0200 |
| commit | f0d1cd5d68579b462cf01a4a9f7d558a231bc072 (patch) | |
| tree | 2769cef714275d86781a46c2d1f1a8981e3b4bcf /src/model | |
| parent | 44f4110d53f58086b17d17afe81b0da0978d2a29 (diff) | |
| download | cms-f0d1cd5d68579b462cf01a4a9f7d558a231bc072.tar.gz cms-f0d1cd5d68579b462cf01a4a9f7d558a231bc072.tar.bz2 cms-f0d1cd5d68579b462cf01a4a9f7d558a231bc072.zip | |
description de page déplacée dans la table page
Diffstat (limited to 'src/model')
| -rw-r--r-- | src/model/entities/Page.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/model/entities/Page.php b/src/model/entities/Page.php index bcf49db..5b54ae6 100644 --- a/src/model/entities/Page.php +++ b/src/model/entities/Page.php | |||
| @@ -28,6 +28,9 @@ class Page | |||
| 28 | 28 | ||
| 29 | private string $page_path = ''; | 29 | private string $page_path = ''; |
| 30 | 30 | ||
| 31 | #[ORM\Column(type: "text")] | ||
| 32 | private string $description; | ||
| 33 | |||
| 31 | #[ORM\Column(type: "boolean")] | 34 | #[ORM\Column(type: "boolean")] |
| 32 | private bool $reachable; | 35 | private bool $reachable; |
| 33 | 36 | ||
| @@ -50,10 +53,11 @@ class Page | |||
| 50 | /*#[ORM\Column(type: "json", nullable: true)] | 53 | /*#[ORM\Column(type: "json", nullable: true)] |
| 51 | private ?array $metadata = null;*/ | 54 | private ?array $metadata = null;*/ |
| 52 | 55 | ||
| 53 | public function __construct(string $name, string $eop, bool $reachable, bool $in_menu, bool $hidden, ?int $position, ?Page $parent) | 56 | public function __construct(string $name, string $eop, string $description, bool $reachable, bool $in_menu, bool $hidden, ?int $position, ?Page $parent) |
| 54 | { | 57 | { |
| 55 | $this->name_page = $name; | 58 | $this->name_page = $name; |
| 56 | $this->end_of_path = $eop; | 59 | $this->end_of_path = $eop; |
| 60 | $this->description = $description; | ||
| 57 | $this->reachable = $reachable; | 61 | $this->reachable = $reachable; |
| 58 | $this->in_menu = $in_menu; | 62 | $this->in_menu = $in_menu; |
| 59 | $this->hidden = $hidden; | 63 | $this->hidden = $hidden; |
| @@ -91,6 +95,14 @@ class Page | |||
| 91 | { | 95 | { |
| 92 | $this->end_of_path = $end_of_path; | 96 | $this->end_of_path = $end_of_path; |
| 93 | } | 97 | } |
| 98 | public function getDescription(): string | ||
| 99 | { | ||
| 100 | return $this->description; | ||
| 101 | } | ||
| 102 | public function setDescription(string $description): void | ||
| 103 | { | ||
| 104 | $this->description = $description; | ||
| 105 | } | ||
| 94 | public function isReachable(): bool | 106 | public function isReachable(): bool |
| 95 | { | 107 | { |
| 96 | return $this->reachable; | 108 | return $this->reachable; |
