diff options
| author | polo <ordipolo@gmx.fr> | 2025-09-01 18:52:17 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2025-09-01 18:52:17 +0200 |
| commit | f477314613beb26b0ce4c61ec0b1900df1de1cb1 (patch) | |
| tree | d41ace78a572a11887e7cfa2611c3f02fb04e51c /src/model/entities/Node.php | |
| parent | e642cd51d7e8599537f8514bef8d5d16096dddf8 (diff) | |
| download | cms-f477314613beb26b0ce4c61ec0b1900df1de1cb1.tar.gz cms-f477314613beb26b0ce4c61ec0b1900df1de1cb1.tar.bz2 cms-f477314613beb26b0ce4c61ec0b1900df1de1cb1.zip | |
renommage des présentations,modif présentation des blocs et largeur min (donc nb de colonnes) en mode grid, corrections de bugs et erreurs 404, le param page_modif n'est plus une action, légère symfonyfication du routeur
Diffstat (limited to 'src/model/entities/Node.php')
| -rw-r--r-- | src/model/entities/Node.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/model/entities/Node.php b/src/model/entities/Node.php index 93363d3..7cf395c 100644 --- a/src/model/entities/Node.php +++ b/src/model/entities/Node.php | |||
| @@ -161,6 +161,15 @@ class Node | |||
| 161 | { | 161 | { |
| 162 | return $this->children; | 162 | return $this->children; |
| 163 | } | 163 | } |
| 164 | public function getNodeByName(string $name): ?Node | ||
| 165 | { | ||
| 166 | foreach($this->children as $child){ | ||
| 167 | if($child->getName() === $name){ | ||
| 168 | return $child; | ||
| 169 | } | ||
| 170 | } | ||
| 171 | return null; | ||
| 172 | } | ||
| 164 | public function addChild(self $child): void | 173 | public function addChild(self $child): void |
| 165 | { | 174 | { |
| 166 | $this->children[] = $child; | 175 | $this->children[] = $child; |
