aboutsummaryrefslogtreecommitdiff
path: root/src/model/entities/Node.php
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2025-12-16 22:41:57 +0100
committerpolo <ordipolo@gmx.fr>2025-12-16 22:41:57 +0100
commit423755b019a09111b971e36c53e2557e2f5a704f (patch)
tree022c0a911133d676dd8e4e90379f8b186863fc88 /src/model/entities/Node.php
parent22da81bbcb9bb61fa484c9af6fbb667b685d2f9b (diff)
downloadcms-423755b019a09111b971e36c53e2557e2f5a704f.tar.gz
cms-423755b019a09111b971e36c53e2557e2f5a704f.tar.bz2
cms-423755b019a09111b971e36c53e2557e2f5a704f.zip
page emails, application du RGPD: table email et nettoyeur, renommage de $id_email
Diffstat (limited to 'src/model/entities/Node.php')
-rw-r--r--src/model/entities/Node.php37
1 files changed, 1 insertions, 36 deletions
diff --git a/src/model/entities/Node.php b/src/model/entities/Node.php
index fe3a1e5..71c159d 100644
--- a/src/model/entities/Node.php
+++ b/src/model/entities/Node.php
@@ -72,42 +72,7 @@ class Node
72 { 72 {
73 $this->name_node = $name; 73 $this->name_node = $name;
74 }*/ 74 }*/
75 75
76 /*public function getAttributes(): array
77 {
78 return $this->attributes;
79 }
80 public function setDefaultAttributes(array $attributes): void
81 {
82 $this->attributes = $attributes;
83 }
84 public function useDefaultAttributes(): void
85 {
86 $this->attributes = self::$default_attributes;
87 }
88 public function addAttribute(string $key, string $value): void
89 {
90 if(!isset($this->attributes[$key])) { // sécurité $key inexistante
91 $this->attributes[$key] = [];
92 }
93 if(!in_array($value, $this->attributes[$key])){
94 $this->attributes[$key][] = $value;
95 }
96 }*/
97 /*public function removeAttribute(string $key, string $value): void
98 {
99 if(isset($this->attributes[$key])) // sécurité $key inexistante
100 {
101 // supprime et réindex avec un nouveau tableau
102 $tmp_array = $this->attributes[$key];
103 $this->attributes[$key] = [];
104 foreach($tmp_array as $entry){
105 if($entry !== $value){
106 $this->attributes[$key][] = $entry;
107 }
108 }
109 }
110 }*/
111 public function getParent(): ?self 76 public function getParent(): ?self
112 { 77 {
113 return $this->parent; 78 return $this->parent;