@@ -13,26 +13,26 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | class UserLogs |
| 15 | 15 | { |
| 16 | - /** |
|
| 17 | - * @var integer |
|
| 18 | - * |
|
| 19 | - * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned"=true}) |
|
| 20 | - * @ORM\Id |
|
| 21 | - * @ORM\GeneratedValue(strategy="NONE") |
|
| 22 | - */ |
|
| 23 | - private $id; |
|
| 16 | + /** |
|
| 17 | + * @var integer |
|
| 18 | + * |
|
| 19 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned"=true}) |
|
| 20 | + * @ORM\Id |
|
| 21 | + * @ORM\GeneratedValue(strategy="NONE") |
|
| 22 | + */ |
|
| 23 | + private $id; |
|
| 24 | 24 | |
| 25 | - /** |
|
| 26 | - * @var \User |
|
| 27 | - * |
|
| 28 | - * @ORM\Id |
|
| 29 | - * @ORM\GeneratedValue(strategy="NONE") |
|
| 30 | - * @ORM\OneToOne(targetEntity="User") |
|
| 31 | - * @ORM\JoinColumns({ |
|
| 32 | - * @ORM\JoinColumn(name="user_id", referencedColumnName="id") |
|
| 33 | - * }) |
|
| 34 | - */ |
|
| 35 | - private $user; |
|
| 25 | + /** |
|
| 26 | + * @var \User |
|
| 27 | + * |
|
| 28 | + * @ORM\Id |
|
| 29 | + * @ORM\GeneratedValue(strategy="NONE") |
|
| 30 | + * @ORM\OneToOne(targetEntity="User") |
|
| 31 | + * @ORM\JoinColumns({ |
|
| 32 | + * @ORM\JoinColumn(name="user_id", referencedColumnName="id") |
|
| 33 | + * }) |
|
| 34 | + */ |
|
| 35 | + private $user; |
|
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | 38 | * @var \DateTime |
@@ -50,37 +50,37 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | private $updateDate; |
| 52 | 52 | |
| 53 | - /** |
|
| 54 | - * @return int |
|
| 55 | - */ |
|
| 56 | - public function getId() |
|
| 57 | - { |
|
| 58 | - return $this->id; |
|
| 59 | - } |
|
| 53 | + /** |
|
| 54 | + * @return int |
|
| 55 | + */ |
|
| 56 | + public function getId() |
|
| 57 | + { |
|
| 58 | + return $this->id; |
|
| 59 | + } |
|
| 60 | 60 | |
| 61 | - /** |
|
| 62 | - * @param int $id |
|
| 63 | - */ |
|
| 64 | - public function setId($id) |
|
| 65 | - { |
|
| 66 | - $this->id = $id; |
|
| 67 | - } |
|
| 61 | + /** |
|
| 62 | + * @param int $id |
|
| 63 | + */ |
|
| 64 | + public function setId($id) |
|
| 65 | + { |
|
| 66 | + $this->id = $id; |
|
| 67 | + } |
|
| 68 | 68 | |
| 69 | - /** |
|
| 70 | - * @return \User |
|
| 71 | - */ |
|
| 72 | - public function getUser() |
|
| 73 | - { |
|
| 74 | - return $this->user; |
|
| 75 | - } |
|
| 69 | + /** |
|
| 70 | + * @return \User |
|
| 71 | + */ |
|
| 72 | + public function getUser() |
|
| 73 | + { |
|
| 74 | + return $this->user; |
|
| 75 | + } |
|
| 76 | 76 | |
| 77 | - /** |
|
| 78 | - * @param \User $user |
|
| 79 | - */ |
|
| 80 | - public function setUser($user) |
|
| 81 | - { |
|
| 82 | - $this->user = $user; |
|
| 83 | - } |
|
| 77 | + /** |
|
| 78 | + * @param \User $user |
|
| 79 | + */ |
|
| 80 | + public function setUser($user) |
|
| 81 | + { |
|
| 82 | + $this->user = $user; |
|
| 83 | + } |
|
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | 86 | * @return \DateTime |
@@ -14,49 +14,49 @@ discard block |
||
| 14 | 14 | */ |
| 15 | 15 | class Page |
| 16 | 16 | { |
| 17 | - /** |
|
| 18 | - * @var integer |
|
| 19 | - * |
|
| 20 | - * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned"=true}) |
|
| 21 | - * @ORM\Id |
|
| 22 | - * @ORM\GeneratedValue(strategy="IDENTITY") |
|
| 23 | - */ |
|
| 24 | - private $id; |
|
| 25 | - |
|
| 26 | - /** |
|
| 27 | - * @var string |
|
| 28 | - * |
|
| 29 | - * @ORM\Column(name="guid", type="string", length=255, nullable=false) |
|
| 30 | - */ |
|
| 31 | - private $guid; |
|
| 32 | - |
|
| 33 | - /** |
|
| 34 | - * @var string |
|
| 35 | - * |
|
| 36 | - * @ORM\Column(name="title_tag", type="string", length=70, nullable=true) |
|
| 37 | - */ |
|
| 38 | - private $titleTag; |
|
| 39 | - |
|
| 40 | - /** |
|
| 41 | - * @var string |
|
| 42 | - * |
|
| 43 | - * @ORM\Column(name="description_tag", type="string", length=160, nullable=true) |
|
| 44 | - */ |
|
| 45 | - private $descriptionTag; |
|
| 46 | - |
|
| 47 | - /** |
|
| 48 | - * @var string |
|
| 49 | - * |
|
| 50 | - * @ORM\Column(name="title", type="string", length=255, nullable=false) |
|
| 51 | - */ |
|
| 52 | - private $title; |
|
| 17 | + /** |
|
| 18 | + * @var integer |
|
| 19 | + * |
|
| 20 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned"=true}) |
|
| 21 | + * @ORM\Id |
|
| 22 | + * @ORM\GeneratedValue(strategy="IDENTITY") |
|
| 23 | + */ |
|
| 24 | + private $id; |
|
| 25 | + |
|
| 26 | + /** |
|
| 27 | + * @var string |
|
| 28 | + * |
|
| 29 | + * @ORM\Column(name="guid", type="string", length=255, nullable=false) |
|
| 30 | + */ |
|
| 31 | + private $guid; |
|
| 32 | + |
|
| 33 | + /** |
|
| 34 | + * @var string |
|
| 35 | + * |
|
| 36 | + * @ORM\Column(name="title_tag", type="string", length=70, nullable=true) |
|
| 37 | + */ |
|
| 38 | + private $titleTag; |
|
| 39 | + |
|
| 40 | + /** |
|
| 41 | + * @var string |
|
| 42 | + * |
|
| 43 | + * @ORM\Column(name="description_tag", type="string", length=160, nullable=true) |
|
| 44 | + */ |
|
| 45 | + private $descriptionTag; |
|
| 46 | + |
|
| 47 | + /** |
|
| 48 | + * @var string |
|
| 49 | + * |
|
| 50 | + * @ORM\Column(name="title", type="string", length=255, nullable=false) |
|
| 51 | + */ |
|
| 52 | + private $title; |
|
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | 55 | * @var string |
| 56 | 56 | * |
| 57 | 57 | * @ORM\Column(name="template", type="string", length=255, nullable=false) |
| 58 | 58 | */ |
| 59 | - private $template; |
|
| 59 | + private $template; |
|
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | 62 | * @var string |
@@ -65,43 +65,43 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | private $url; |
| 67 | 67 | |
| 68 | - /** |
|
| 69 | - * @var string |
|
| 70 | - * |
|
| 71 | - * @ORM\Column(name="content", type="text", nullable=true) |
|
| 72 | - */ |
|
| 73 | - private $content; |
|
| 74 | - |
|
| 75 | - /** |
|
| 76 | - * @var integer |
|
| 77 | - * |
|
| 78 | - * @ORM\Column(name="active", type="integer", nullable=false) |
|
| 79 | - */ |
|
| 80 | - private $active; |
|
| 81 | - |
|
| 82 | - /** |
|
| 83 | - * @var integer |
|
| 84 | - * |
|
| 85 | - * @ORM\Column(name="order", type="integer", nullable=false) |
|
| 86 | - */ |
|
| 87 | - private $order; |
|
| 88 | - |
|
| 89 | - /** |
|
| 90 | - * @var integer |
|
| 91 | - * |
|
| 92 | - * @ORM\Column(name="displayed", type="integer", nullable=false) |
|
| 93 | - */ |
|
| 94 | - private $displayed; |
|
| 95 | - |
|
| 96 | - /** |
|
| 97 | - * @var \Page |
|
| 98 | - * |
|
| 99 | - * @ORM\ManyToOne(targetEntity="Page") |
|
| 100 | - * @ORM\JoinColumns({ |
|
| 101 | - * @ORM\JoinColumn(name="parent", referencedColumnName="id") |
|
| 102 | - * }) |
|
| 103 | - */ |
|
| 104 | - private $parent; |
|
| 68 | + /** |
|
| 69 | + * @var string |
|
| 70 | + * |
|
| 71 | + * @ORM\Column(name="content", type="text", nullable=true) |
|
| 72 | + */ |
|
| 73 | + private $content; |
|
| 74 | + |
|
| 75 | + /** |
|
| 76 | + * @var integer |
|
| 77 | + * |
|
| 78 | + * @ORM\Column(name="active", type="integer", nullable=false) |
|
| 79 | + */ |
|
| 80 | + private $active; |
|
| 81 | + |
|
| 82 | + /** |
|
| 83 | + * @var integer |
|
| 84 | + * |
|
| 85 | + * @ORM\Column(name="order", type="integer", nullable=false) |
|
| 86 | + */ |
|
| 87 | + private $order; |
|
| 88 | + |
|
| 89 | + /** |
|
| 90 | + * @var integer |
|
| 91 | + * |
|
| 92 | + * @ORM\Column(name="displayed", type="integer", nullable=false) |
|
| 93 | + */ |
|
| 94 | + private $displayed; |
|
| 95 | + |
|
| 96 | + /** |
|
| 97 | + * @var \Page |
|
| 98 | + * |
|
| 99 | + * @ORM\ManyToOne(targetEntity="Page") |
|
| 100 | + * @ORM\JoinColumns({ |
|
| 101 | + * @ORM\JoinColumn(name="parent", referencedColumnName="id") |
|
| 102 | + * }) |
|
| 103 | + */ |
|
| 104 | + private $parent; |
|
| 105 | 105 | |
| 106 | 106 | /** |
| 107 | 107 | * @var \DateTime |
@@ -119,85 +119,85 @@ discard block |
||
| 119 | 119 | */ |
| 120 | 120 | private $updateDate; |
| 121 | 121 | |
| 122 | - /** |
|
| 123 | - * @return int |
|
| 124 | - */ |
|
| 125 | - public function getId() |
|
| 126 | - { |
|
| 127 | - return $this->id; |
|
| 128 | - } |
|
| 129 | - |
|
| 130 | - /** |
|
| 131 | - * @param int $id |
|
| 132 | - */ |
|
| 133 | - public function setId($id) |
|
| 134 | - { |
|
| 135 | - $this->id = $id; |
|
| 136 | - } |
|
| 137 | - |
|
| 138 | - /** |
|
| 139 | - * @return string |
|
| 140 | - */ |
|
| 141 | - public function getGuid() |
|
| 142 | - { |
|
| 143 | - return $this->guid; |
|
| 144 | - } |
|
| 145 | - |
|
| 146 | - /** |
|
| 147 | - * @param string $guid |
|
| 148 | - */ |
|
| 149 | - public function setGuid($guid) |
|
| 150 | - { |
|
| 151 | - $this->guid = $guid; |
|
| 152 | - } |
|
| 153 | - |
|
| 154 | - /** |
|
| 155 | - * @return string |
|
| 156 | - */ |
|
| 157 | - public function getTitleTag() |
|
| 158 | - { |
|
| 159 | - return $this->titleTag; |
|
| 160 | - } |
|
| 161 | - |
|
| 162 | - /** |
|
| 163 | - * @param string $titleTag |
|
| 164 | - */ |
|
| 165 | - public function setTitleTag($titleTag) |
|
| 166 | - { |
|
| 167 | - $this->titleTag = $titleTag; |
|
| 168 | - } |
|
| 169 | - |
|
| 170 | - /** |
|
| 171 | - * @return string |
|
| 172 | - */ |
|
| 173 | - public function getDescriptionTag() |
|
| 174 | - { |
|
| 175 | - return $this->descriptionTag; |
|
| 176 | - } |
|
| 177 | - |
|
| 178 | - /** |
|
| 179 | - * @param string $descriptionTag |
|
| 180 | - */ |
|
| 181 | - public function setDescriptionTag($descriptionTag) |
|
| 182 | - { |
|
| 183 | - $this->descriptionTag = $descriptionTag; |
|
| 184 | - } |
|
| 185 | - |
|
| 186 | - /** |
|
| 187 | - * @return string |
|
| 188 | - */ |
|
| 189 | - public function getTitle() |
|
| 190 | - { |
|
| 191 | - return $this->title; |
|
| 192 | - } |
|
| 193 | - |
|
| 194 | - /** |
|
| 195 | - * @param string $title |
|
| 196 | - */ |
|
| 197 | - public function setTitle($title) |
|
| 198 | - { |
|
| 199 | - $this->title = $title; |
|
| 200 | - } |
|
| 122 | + /** |
|
| 123 | + * @return int |
|
| 124 | + */ |
|
| 125 | + public function getId() |
|
| 126 | + { |
|
| 127 | + return $this->id; |
|
| 128 | + } |
|
| 129 | + |
|
| 130 | + /** |
|
| 131 | + * @param int $id |
|
| 132 | + */ |
|
| 133 | + public function setId($id) |
|
| 134 | + { |
|
| 135 | + $this->id = $id; |
|
| 136 | + } |
|
| 137 | + |
|
| 138 | + /** |
|
| 139 | + * @return string |
|
| 140 | + */ |
|
| 141 | + public function getGuid() |
|
| 142 | + { |
|
| 143 | + return $this->guid; |
|
| 144 | + } |
|
| 145 | + |
|
| 146 | + /** |
|
| 147 | + * @param string $guid |
|
| 148 | + */ |
|
| 149 | + public function setGuid($guid) |
|
| 150 | + { |
|
| 151 | + $this->guid = $guid; |
|
| 152 | + } |
|
| 153 | + |
|
| 154 | + /** |
|
| 155 | + * @return string |
|
| 156 | + */ |
|
| 157 | + public function getTitleTag() |
|
| 158 | + { |
|
| 159 | + return $this->titleTag; |
|
| 160 | + } |
|
| 161 | + |
|
| 162 | + /** |
|
| 163 | + * @param string $titleTag |
|
| 164 | + */ |
|
| 165 | + public function setTitleTag($titleTag) |
|
| 166 | + { |
|
| 167 | + $this->titleTag = $titleTag; |
|
| 168 | + } |
|
| 169 | + |
|
| 170 | + /** |
|
| 171 | + * @return string |
|
| 172 | + */ |
|
| 173 | + public function getDescriptionTag() |
|
| 174 | + { |
|
| 175 | + return $this->descriptionTag; |
|
| 176 | + } |
|
| 177 | + |
|
| 178 | + /** |
|
| 179 | + * @param string $descriptionTag |
|
| 180 | + */ |
|
| 181 | + public function setDescriptionTag($descriptionTag) |
|
| 182 | + { |
|
| 183 | + $this->descriptionTag = $descriptionTag; |
|
| 184 | + } |
|
| 185 | + |
|
| 186 | + /** |
|
| 187 | + * @return string |
|
| 188 | + */ |
|
| 189 | + public function getTitle() |
|
| 190 | + { |
|
| 191 | + return $this->title; |
|
| 192 | + } |
|
| 193 | + |
|
| 194 | + /** |
|
| 195 | + * @param string $title |
|
| 196 | + */ |
|
| 197 | + public function setTitle($title) |
|
| 198 | + { |
|
| 199 | + $this->title = $title; |
|
| 200 | + } |
|
| 201 | 201 | |
| 202 | 202 | /** |
| 203 | 203 | * @return string |
@@ -231,85 +231,85 @@ discard block |
||
| 231 | 231 | $this->url = $url; |
| 232 | 232 | } |
| 233 | 233 | |
| 234 | - /** |
|
| 235 | - * @return string |
|
| 236 | - */ |
|
| 237 | - public function getContent() |
|
| 238 | - { |
|
| 239 | - return $this->content; |
|
| 240 | - } |
|
| 241 | - |
|
| 242 | - /** |
|
| 243 | - * @param string $content |
|
| 244 | - */ |
|
| 245 | - public function setContent($content) |
|
| 246 | - { |
|
| 247 | - $this->content = $content; |
|
| 248 | - } |
|
| 249 | - |
|
| 250 | - /** |
|
| 251 | - * @return int |
|
| 252 | - */ |
|
| 253 | - public function getActive() |
|
| 254 | - { |
|
| 255 | - return $this->active; |
|
| 256 | - } |
|
| 257 | - |
|
| 258 | - /** |
|
| 259 | - * @param int $active |
|
| 260 | - */ |
|
| 261 | - public function setActive($active) |
|
| 262 | - { |
|
| 263 | - $this->active = $active; |
|
| 264 | - } |
|
| 265 | - |
|
| 266 | - /** |
|
| 267 | - * @return int |
|
| 268 | - */ |
|
| 269 | - public function getOrder() |
|
| 270 | - { |
|
| 271 | - return $this->order; |
|
| 272 | - } |
|
| 273 | - |
|
| 274 | - /** |
|
| 275 | - * @param int $order |
|
| 276 | - */ |
|
| 277 | - public function setOrder($order) |
|
| 278 | - { |
|
| 279 | - $this->order = $order; |
|
| 280 | - } |
|
| 281 | - |
|
| 282 | - /** |
|
| 283 | - * @return int |
|
| 284 | - */ |
|
| 285 | - public function getDisplayed() |
|
| 286 | - { |
|
| 287 | - return $this->displayed; |
|
| 288 | - } |
|
| 289 | - |
|
| 290 | - /** |
|
| 291 | - * @param int $displayed |
|
| 292 | - */ |
|
| 293 | - public function setDisplayed($displayed) |
|
| 294 | - { |
|
| 295 | - $this->displayed = $displayed; |
|
| 296 | - } |
|
| 297 | - |
|
| 298 | - /** |
|
| 299 | - * @return \Page |
|
| 300 | - */ |
|
| 301 | - public function getParent() |
|
| 302 | - { |
|
| 303 | - return $this->parent; |
|
| 304 | - } |
|
| 305 | - |
|
| 306 | - /** |
|
| 307 | - * @param \Page $parent |
|
| 308 | - */ |
|
| 309 | - public function setParent($parent) |
|
| 310 | - { |
|
| 311 | - $this->parent = $parent; |
|
| 312 | - } |
|
| 234 | + /** |
|
| 235 | + * @return string |
|
| 236 | + */ |
|
| 237 | + public function getContent() |
|
| 238 | + { |
|
| 239 | + return $this->content; |
|
| 240 | + } |
|
| 241 | + |
|
| 242 | + /** |
|
| 243 | + * @param string $content |
|
| 244 | + */ |
|
| 245 | + public function setContent($content) |
|
| 246 | + { |
|
| 247 | + $this->content = $content; |
|
| 248 | + } |
|
| 249 | + |
|
| 250 | + /** |
|
| 251 | + * @return int |
|
| 252 | + */ |
|
| 253 | + public function getActive() |
|
| 254 | + { |
|
| 255 | + return $this->active; |
|
| 256 | + } |
|
| 257 | + |
|
| 258 | + /** |
|
| 259 | + * @param int $active |
|
| 260 | + */ |
|
| 261 | + public function setActive($active) |
|
| 262 | + { |
|
| 263 | + $this->active = $active; |
|
| 264 | + } |
|
| 265 | + |
|
| 266 | + /** |
|
| 267 | + * @return int |
|
| 268 | + */ |
|
| 269 | + public function getOrder() |
|
| 270 | + { |
|
| 271 | + return $this->order; |
|
| 272 | + } |
|
| 273 | + |
|
| 274 | + /** |
|
| 275 | + * @param int $order |
|
| 276 | + */ |
|
| 277 | + public function setOrder($order) |
|
| 278 | + { |
|
| 279 | + $this->order = $order; |
|
| 280 | + } |
|
| 281 | + |
|
| 282 | + /** |
|
| 283 | + * @return int |
|
| 284 | + */ |
|
| 285 | + public function getDisplayed() |
|
| 286 | + { |
|
| 287 | + return $this->displayed; |
|
| 288 | + } |
|
| 289 | + |
|
| 290 | + /** |
|
| 291 | + * @param int $displayed |
|
| 292 | + */ |
|
| 293 | + public function setDisplayed($displayed) |
|
| 294 | + { |
|
| 295 | + $this->displayed = $displayed; |
|
| 296 | + } |
|
| 297 | + |
|
| 298 | + /** |
|
| 299 | + * @return \Page |
|
| 300 | + */ |
|
| 301 | + public function getParent() |
|
| 302 | + { |
|
| 303 | + return $this->parent; |
|
| 304 | + } |
|
| 305 | + |
|
| 306 | + /** |
|
| 307 | + * @param \Page $parent |
|
| 308 | + */ |
|
| 309 | + public function setParent($parent) |
|
| 310 | + { |
|
| 311 | + $this->parent = $parent; |
|
| 312 | + } |
|
| 313 | 313 | |
| 314 | 314 | /** |
| 315 | 315 | * @return \DateTime |
@@ -14,21 +14,21 @@ discard block |
||
| 14 | 14 | */ |
| 15 | 15 | class User |
| 16 | 16 | { |
| 17 | - /** |
|
| 18 | - * @var integer |
|
| 19 | - * |
|
| 20 | - * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned"=true}) |
|
| 21 | - * @ORM\Id |
|
| 22 | - * @ORM\GeneratedValue(strategy="IDENTITY") |
|
| 23 | - */ |
|
| 24 | - private $id; |
|
| 25 | - |
|
| 26 | - /** |
|
| 27 | - * @var string |
|
| 28 | - * |
|
| 29 | - * @ORM\Column(name="guid", type="string", length=255, nullable=false) |
|
| 30 | - */ |
|
| 31 | - private $guid; |
|
| 17 | + /** |
|
| 18 | + * @var integer |
|
| 19 | + * |
|
| 20 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned"=true}) |
|
| 21 | + * @ORM\Id |
|
| 22 | + * @ORM\GeneratedValue(strategy="IDENTITY") |
|
| 23 | + */ |
|
| 24 | + private $id; |
|
| 25 | + |
|
| 26 | + /** |
|
| 27 | + * @var string |
|
| 28 | + * |
|
| 29 | + * @ORM\Column(name="guid", type="string", length=255, nullable=false) |
|
| 30 | + */ |
|
| 31 | + private $guid; |
|
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * @var AccessRight |
@@ -36,63 +36,63 @@ discard block |
||
| 36 | 36 | * @ORM\ManyToOne(targetEntity="PiouPiou\RibsAdminBundle\Entity\AccessRight", inversedBy="users") |
| 37 | 37 | * @ORM\JoinColumn(name="id_access_right", referencedColumnName="id", nullable=true) |
| 38 | 38 | */ |
| 39 | - private $accessRightList; |
|
| 39 | + private $accessRightList; |
|
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | 42 | * @var boolean |
| 43 | 43 | * |
| 44 | 44 | * @ORM\Column(name="admin", type="boolean", nullable=true, options={"default": false}) |
| 45 | 45 | */ |
| 46 | - private $admin; |
|
| 47 | - |
|
| 48 | - /** |
|
| 49 | - * @var string |
|
| 50 | - * |
|
| 51 | - * @ORM\Column(name="firstname", type="string", length=255, nullable=false) |
|
| 52 | - */ |
|
| 53 | - private $firstname; |
|
| 54 | - |
|
| 55 | - /** |
|
| 56 | - * @var string |
|
| 57 | - * |
|
| 58 | - * @ORM\Column(name="lastname", type="string", length=255, nullable=false) |
|
| 59 | - */ |
|
| 60 | - private $lastname; |
|
| 61 | - |
|
| 62 | - /** |
|
| 63 | - * @var string |
|
| 64 | - * |
|
| 65 | - * @ORM\Column(name="adress", type="string", length=255, nullable=true) |
|
| 66 | - */ |
|
| 67 | - private $adress; |
|
| 68 | - |
|
| 69 | - /** |
|
| 70 | - * @var string |
|
| 71 | - * |
|
| 72 | - * @ORM\Column(name="postal_code", type="string", length=100, nullable=true) |
|
| 73 | - */ |
|
| 74 | - private $postalCode; |
|
| 75 | - |
|
| 76 | - /** |
|
| 77 | - * @var string |
|
| 78 | - * |
|
| 79 | - * @ORM\Column(name="country", type="string", length=100, nullable=true) |
|
| 80 | - */ |
|
| 81 | - private $country; |
|
| 82 | - |
|
| 83 | - /** |
|
| 84 | - * @var string |
|
| 85 | - * |
|
| 86 | - * @ORM\Column(name="state", type="string", length=255, nullable=true) |
|
| 87 | - */ |
|
| 88 | - private $state; |
|
| 89 | - |
|
| 90 | - /** |
|
| 91 | - * @var string |
|
| 92 | - * |
|
| 93 | - * @ORM\Column(name="access_rights", type="text", nullable=true) |
|
| 94 | - */ |
|
| 95 | - private $accessRights; |
|
| 46 | + private $admin; |
|
| 47 | + |
|
| 48 | + /** |
|
| 49 | + * @var string |
|
| 50 | + * |
|
| 51 | + * @ORM\Column(name="firstname", type="string", length=255, nullable=false) |
|
| 52 | + */ |
|
| 53 | + private $firstname; |
|
| 54 | + |
|
| 55 | + /** |
|
| 56 | + * @var string |
|
| 57 | + * |
|
| 58 | + * @ORM\Column(name="lastname", type="string", length=255, nullable=false) |
|
| 59 | + */ |
|
| 60 | + private $lastname; |
|
| 61 | + |
|
| 62 | + /** |
|
| 63 | + * @var string |
|
| 64 | + * |
|
| 65 | + * @ORM\Column(name="adress", type="string", length=255, nullable=true) |
|
| 66 | + */ |
|
| 67 | + private $adress; |
|
| 68 | + |
|
| 69 | + /** |
|
| 70 | + * @var string |
|
| 71 | + * |
|
| 72 | + * @ORM\Column(name="postal_code", type="string", length=100, nullable=true) |
|
| 73 | + */ |
|
| 74 | + private $postalCode; |
|
| 75 | + |
|
| 76 | + /** |
|
| 77 | + * @var string |
|
| 78 | + * |
|
| 79 | + * @ORM\Column(name="country", type="string", length=100, nullable=true) |
|
| 80 | + */ |
|
| 81 | + private $country; |
|
| 82 | + |
|
| 83 | + /** |
|
| 84 | + * @var string |
|
| 85 | + * |
|
| 86 | + * @ORM\Column(name="state", type="string", length=255, nullable=true) |
|
| 87 | + */ |
|
| 88 | + private $state; |
|
| 89 | + |
|
| 90 | + /** |
|
| 91 | + * @var string |
|
| 92 | + * |
|
| 93 | + * @ORM\Column(name="access_rights", type="text", nullable=true) |
|
| 94 | + */ |
|
| 95 | + private $accessRights; |
|
| 96 | 96 | |
| 97 | 97 | /** |
| 98 | 98 | * @var boolean |
@@ -117,37 +117,37 @@ discard block |
||
| 117 | 117 | */ |
| 118 | 118 | private $updateDate; |
| 119 | 119 | |
| 120 | - /** |
|
| 121 | - * @return int |
|
| 122 | - */ |
|
| 123 | - public function getId() |
|
| 124 | - { |
|
| 125 | - return $this->id; |
|
| 126 | - } |
|
| 127 | - |
|
| 128 | - /** |
|
| 129 | - * @param int $id |
|
| 130 | - */ |
|
| 131 | - public function setId($id) |
|
| 132 | - { |
|
| 133 | - $this->id = $id; |
|
| 134 | - } |
|
| 135 | - |
|
| 136 | - /** |
|
| 137 | - * @return string |
|
| 138 | - */ |
|
| 139 | - public function getGuid() |
|
| 140 | - { |
|
| 141 | - return $this->guid; |
|
| 142 | - } |
|
| 143 | - |
|
| 144 | - /** |
|
| 145 | - * @param string $guid |
|
| 146 | - */ |
|
| 147 | - public function setGuid($guid) |
|
| 148 | - { |
|
| 149 | - $this->guid = $guid; |
|
| 150 | - } |
|
| 120 | + /** |
|
| 121 | + * @return int |
|
| 122 | + */ |
|
| 123 | + public function getId() |
|
| 124 | + { |
|
| 125 | + return $this->id; |
|
| 126 | + } |
|
| 127 | + |
|
| 128 | + /** |
|
| 129 | + * @param int $id |
|
| 130 | + */ |
|
| 131 | + public function setId($id) |
|
| 132 | + { |
|
| 133 | + $this->id = $id; |
|
| 134 | + } |
|
| 135 | + |
|
| 136 | + /** |
|
| 137 | + * @return string |
|
| 138 | + */ |
|
| 139 | + public function getGuid() |
|
| 140 | + { |
|
| 141 | + return $this->guid; |
|
| 142 | + } |
|
| 143 | + |
|
| 144 | + /** |
|
| 145 | + * @param string $guid |
|
| 146 | + */ |
|
| 147 | + public function setGuid($guid) |
|
| 148 | + { |
|
| 149 | + $this->guid = $guid; |
|
| 150 | + } |
|
| 151 | 151 | |
| 152 | 152 | /** |
| 153 | 153 | * @return AccessRight |
@@ -181,133 +181,133 @@ discard block |
||
| 181 | 181 | $this->admin = $admin; |
| 182 | 182 | } |
| 183 | 183 | |
| 184 | - /** |
|
| 185 | - * @return string |
|
| 186 | - */ |
|
| 187 | - public function getFirstname() |
|
| 188 | - { |
|
| 189 | - return $this->firstname; |
|
| 190 | - } |
|
| 191 | - |
|
| 192 | - /** |
|
| 193 | - * @param string $firstname |
|
| 194 | - */ |
|
| 195 | - public function setFirstname($firstname) |
|
| 196 | - { |
|
| 197 | - $this->firstname = $firstname; |
|
| 198 | - } |
|
| 199 | - |
|
| 200 | - /** |
|
| 201 | - * @return string |
|
| 202 | - */ |
|
| 203 | - public function getLastname() |
|
| 204 | - { |
|
| 205 | - return $this->lastname; |
|
| 206 | - } |
|
| 207 | - |
|
| 208 | - /** |
|
| 209 | - * @param string $lastname |
|
| 210 | - */ |
|
| 211 | - public function setLastname($lastname) |
|
| 212 | - { |
|
| 213 | - $this->lastname = $lastname; |
|
| 214 | - } |
|
| 215 | - |
|
| 216 | - /** |
|
| 217 | - * @return string |
|
| 218 | - */ |
|
| 219 | - public function getAdress() |
|
| 220 | - { |
|
| 221 | - return $this->adress; |
|
| 222 | - } |
|
| 223 | - |
|
| 224 | - /** |
|
| 225 | - * @param string $adress |
|
| 226 | - */ |
|
| 227 | - public function setAdress($adress) |
|
| 228 | - { |
|
| 229 | - $this->adress = $adress; |
|
| 230 | - } |
|
| 231 | - |
|
| 232 | - /** |
|
| 233 | - * @return string |
|
| 234 | - */ |
|
| 235 | - public function getPostalCode() |
|
| 236 | - { |
|
| 237 | - return $this->postalCode; |
|
| 238 | - } |
|
| 239 | - |
|
| 240 | - /** |
|
| 241 | - * @param string $postalCode |
|
| 242 | - */ |
|
| 243 | - public function setPostalCode($postalCode) |
|
| 244 | - { |
|
| 245 | - $this->postalCode = $postalCode; |
|
| 246 | - } |
|
| 247 | - |
|
| 248 | - /** |
|
| 249 | - * @return string |
|
| 250 | - */ |
|
| 251 | - public function getCountry() |
|
| 252 | - { |
|
| 253 | - return $this->country; |
|
| 254 | - } |
|
| 255 | - |
|
| 256 | - /** |
|
| 257 | - * @param string $country |
|
| 258 | - */ |
|
| 259 | - public function setCountry($country) |
|
| 260 | - { |
|
| 261 | - $this->country = $country; |
|
| 262 | - } |
|
| 263 | - |
|
| 264 | - /** |
|
| 265 | - * @return string |
|
| 266 | - */ |
|
| 267 | - public function getState() |
|
| 268 | - { |
|
| 269 | - return $this->state; |
|
| 270 | - } |
|
| 271 | - |
|
| 272 | - /** |
|
| 273 | - * @param string $state |
|
| 274 | - */ |
|
| 275 | - public function setState($state) |
|
| 276 | - { |
|
| 277 | - $this->state = $state; |
|
| 278 | - } |
|
| 279 | - |
|
| 280 | - /** |
|
| 281 | - * @return string |
|
| 282 | - */ |
|
| 283 | - public function getAccessRights() |
|
| 284 | - { |
|
| 285 | - return $this->accessRights; |
|
| 286 | - } |
|
| 287 | - |
|
| 288 | - /** |
|
| 289 | - * @param string $accessRights |
|
| 290 | - */ |
|
| 291 | - public function setAccessRights($accessRights) |
|
| 292 | - { |
|
| 293 | - $this->accessRights = $accessRights; |
|
| 294 | - } |
|
| 295 | - |
|
| 296 | - /** |
|
| 297 | - * @return \DateTime |
|
| 298 | - */ |
|
| 299 | - public function getCreationDate() |
|
| 300 | - { |
|
| 301 | - return $this->creationDate; |
|
| 302 | - } |
|
| 303 | - |
|
| 304 | - /** |
|
| 305 | - * @param \DateTime $creationDate |
|
| 306 | - */ |
|
| 307 | - public function setCreationDate($creationDate) |
|
| 308 | - { |
|
| 309 | - $this->creationDate = $creationDate; |
|
| 310 | - } |
|
| 184 | + /** |
|
| 185 | + * @return string |
|
| 186 | + */ |
|
| 187 | + public function getFirstname() |
|
| 188 | + { |
|
| 189 | + return $this->firstname; |
|
| 190 | + } |
|
| 191 | + |
|
| 192 | + /** |
|
| 193 | + * @param string $firstname |
|
| 194 | + */ |
|
| 195 | + public function setFirstname($firstname) |
|
| 196 | + { |
|
| 197 | + $this->firstname = $firstname; |
|
| 198 | + } |
|
| 199 | + |
|
| 200 | + /** |
|
| 201 | + * @return string |
|
| 202 | + */ |
|
| 203 | + public function getLastname() |
|
| 204 | + { |
|
| 205 | + return $this->lastname; |
|
| 206 | + } |
|
| 207 | + |
|
| 208 | + /** |
|
| 209 | + * @param string $lastname |
|
| 210 | + */ |
|
| 211 | + public function setLastname($lastname) |
|
| 212 | + { |
|
| 213 | + $this->lastname = $lastname; |
|
| 214 | + } |
|
| 215 | + |
|
| 216 | + /** |
|
| 217 | + * @return string |
|
| 218 | + */ |
|
| 219 | + public function getAdress() |
|
| 220 | + { |
|
| 221 | + return $this->adress; |
|
| 222 | + } |
|
| 223 | + |
|
| 224 | + /** |
|
| 225 | + * @param string $adress |
|
| 226 | + */ |
|
| 227 | + public function setAdress($adress) |
|
| 228 | + { |
|
| 229 | + $this->adress = $adress; |
|
| 230 | + } |
|
| 231 | + |
|
| 232 | + /** |
|
| 233 | + * @return string |
|
| 234 | + */ |
|
| 235 | + public function getPostalCode() |
|
| 236 | + { |
|
| 237 | + return $this->postalCode; |
|
| 238 | + } |
|
| 239 | + |
|
| 240 | + /** |
|
| 241 | + * @param string $postalCode |
|
| 242 | + */ |
|
| 243 | + public function setPostalCode($postalCode) |
|
| 244 | + { |
|
| 245 | + $this->postalCode = $postalCode; |
|
| 246 | + } |
|
| 247 | + |
|
| 248 | + /** |
|
| 249 | + * @return string |
|
| 250 | + */ |
|
| 251 | + public function getCountry() |
|
| 252 | + { |
|
| 253 | + return $this->country; |
|
| 254 | + } |
|
| 255 | + |
|
| 256 | + /** |
|
| 257 | + * @param string $country |
|
| 258 | + */ |
|
| 259 | + public function setCountry($country) |
|
| 260 | + { |
|
| 261 | + $this->country = $country; |
|
| 262 | + } |
|
| 263 | + |
|
| 264 | + /** |
|
| 265 | + * @return string |
|
| 266 | + */ |
|
| 267 | + public function getState() |
|
| 268 | + { |
|
| 269 | + return $this->state; |
|
| 270 | + } |
|
| 271 | + |
|
| 272 | + /** |
|
| 273 | + * @param string $state |
|
| 274 | + */ |
|
| 275 | + public function setState($state) |
|
| 276 | + { |
|
| 277 | + $this->state = $state; |
|
| 278 | + } |
|
| 279 | + |
|
| 280 | + /** |
|
| 281 | + * @return string |
|
| 282 | + */ |
|
| 283 | + public function getAccessRights() |
|
| 284 | + { |
|
| 285 | + return $this->accessRights; |
|
| 286 | + } |
|
| 287 | + |
|
| 288 | + /** |
|
| 289 | + * @param string $accessRights |
|
| 290 | + */ |
|
| 291 | + public function setAccessRights($accessRights) |
|
| 292 | + { |
|
| 293 | + $this->accessRights = $accessRights; |
|
| 294 | + } |
|
| 295 | + |
|
| 296 | + /** |
|
| 297 | + * @return \DateTime |
|
| 298 | + */ |
|
| 299 | + public function getCreationDate() |
|
| 300 | + { |
|
| 301 | + return $this->creationDate; |
|
| 302 | + } |
|
| 303 | + |
|
| 304 | + /** |
|
| 305 | + * @param \DateTime $creationDate |
|
| 306 | + */ |
|
| 307 | + public function setCreationDate($creationDate) |
|
| 308 | + { |
|
| 309 | + $this->creationDate = $creationDate; |
|
| 310 | + } |
|
| 311 | 311 | |
| 312 | 312 | /** |
| 313 | 313 | * @return boolean |
@@ -325,21 +325,21 @@ discard block |
||
| 325 | 325 | $this->archived = $archived; |
| 326 | 326 | } |
| 327 | 327 | |
| 328 | - /** |
|
| 329 | - * @return \DateTime |
|
| 330 | - */ |
|
| 331 | - public function getUpdateDate() |
|
| 332 | - { |
|
| 333 | - return $this->updateDate; |
|
| 334 | - } |
|
| 335 | - |
|
| 336 | - /** |
|
| 337 | - * @param \DateTime $updateDate |
|
| 338 | - */ |
|
| 339 | - public function setUpdateDate($updateDate) |
|
| 340 | - { |
|
| 341 | - $this->updateDate = $updateDate; |
|
| 342 | - } |
|
| 328 | + /** |
|
| 329 | + * @return \DateTime |
|
| 330 | + */ |
|
| 331 | + public function getUpdateDate() |
|
| 332 | + { |
|
| 333 | + return $this->updateDate; |
|
| 334 | + } |
|
| 335 | + |
|
| 336 | + /** |
|
| 337 | + * @param \DateTime $updateDate |
|
| 338 | + */ |
|
| 339 | + public function setUpdateDate($updateDate) |
|
| 340 | + { |
|
| 341 | + $this->updateDate = $updateDate; |
|
| 342 | + } |
|
| 343 | 343 | |
| 344 | 344 | |
| 345 | 345 | } |
@@ -12,11 +12,11 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | private $container; |
| 14 | 14 | |
| 15 | - /** |
|
| 16 | - * GuidAwareListener constructor. |
|
| 17 | - * @param ContainerInterface $container |
|
| 18 | - */ |
|
| 19 | - public function __construct(ContainerInterface $container) |
|
| 15 | + /** |
|
| 16 | + * GuidAwareListener constructor. |
|
| 17 | + * @param ContainerInterface $container |
|
| 18 | + */ |
|
| 19 | + public function __construct(ContainerInterface $container) |
|
| 20 | 20 | { |
| 21 | 21 | $this->container = $container; |
| 22 | 22 | } |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | - * method that return all infos needed in access right management page |
|
| 25 | + * method that return all infos needed in access right management page |
|
| 26 | 26 | * @return array |
| 27 | 27 | */ |
| 28 | 28 | public function getAllInfosModules() |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | - * function that return all modules rights |
|
| 47 | + * function that return all modules rights |
|
| 48 | 48 | * @return object |
| 49 | 49 | */ |
| 50 | 50 | public function getModuleRights() |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | - * this method is used to test jwt and if the user is ok else send false |
|
| 35 | + * this method is used to test jwt and if the user is ok else send false |
|
| 36 | 36 | * @param string $infos_jwt |
| 37 | 37 | * @param string $token |
| 38 | 38 | * @return Account|bool |
@@ -58,12 +58,12 @@ discard block |
||
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | |
| 61 | - /** |
|
| 62 | - * method that return the token for a user |
|
| 63 | - * @param Account $account |
|
| 64 | - * @return string |
|
| 65 | - * @throws \Exception |
|
| 66 | - */ |
|
| 61 | + /** |
|
| 62 | + * method that return the token for a user |
|
| 63 | + * @param Account $account |
|
| 64 | + * @return string |
|
| 65 | + * @throws \Exception |
|
| 66 | + */ |
|
| 67 | 67 | public function getToken(Account $account): string |
| 68 | 68 | { |
| 69 | 69 | $token = $account->getToken(); |
@@ -76,12 +76,12 @@ discard block |
||
| 76 | 76 | return $token; |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | - /** |
|
| 80 | - * method that set a toek for the user |
|
| 81 | - * @param Account $account |
|
| 82 | - * @return string |
|
| 83 | - * @throws \Exception |
|
| 84 | - */ |
|
| 79 | + /** |
|
| 80 | + * method that set a toek for the user |
|
| 81 | + * @param Account $account |
|
| 82 | + * @return string |
|
| 83 | + * @throws \Exception |
|
| 84 | + */ |
|
| 85 | 85 | public function setToken(Account $account): string |
| 86 | 86 | { |
| 87 | 87 | $token = $this->generateToken(); |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | /** |
| 101 | - * generate a token for api |
|
| 101 | + * generate a token for api |
|
| 102 | 102 | * @param int $length |
| 103 | 103 | * @return string |
| 104 | 104 | */ |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | /** |
| 109 | - * function that allow to test a right directly in the view |
|
| 109 | + * function that allow to test a right directly in the view |
|
| 110 | 110 | * @param string $right |
| 111 | 111 | * @return bool |
| 112 | 112 | */ |
@@ -117,9 +117,9 @@ discard block |
||
| 117 | 117 | |
| 118 | 118 | $all_rights = array_merge($user_rights, $list_rights); |
| 119 | 119 | |
| 120 | - if (in_array("*", $all_rights)) { |
|
| 121 | - return true; |
|
| 122 | - } |
|
| 120 | + if (in_array("*", $all_rights)) { |
|
| 121 | + return true; |
|
| 122 | + } |
|
| 123 | 123 | |
| 124 | 124 | if (in_array($right, $all_rights)) { |
| 125 | 125 | return true; |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | /** |
| 132 | - * test if route_right is found in users rights |
|
| 132 | + * test if route_right is found in users rights |
|
| 133 | 133 | * @param array $route_right |
| 134 | 134 | * @return bool |
| 135 | 135 | */ |
@@ -141,8 +141,8 @@ discard block |
||
| 141 | 141 | $all_rights = array_merge($user_rights, $list_rights); |
| 142 | 142 | |
| 143 | 143 | if (in_array("*", $all_rights)) { |
| 144 | - return true; |
|
| 145 | - } |
|
| 144 | + return true; |
|
| 145 | + } |
|
| 146 | 146 | |
| 147 | 147 | foreach ($all_rights as $right) { |
| 148 | 148 | if (in_array($right, $route_right)) { |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | } |
| 155 | 155 | |
| 156 | 156 | /** |
| 157 | - * function that search if the right contain an url or more |
|
| 157 | + * function that search if the right contain an url or more |
|
| 158 | 158 | * @param $needle |
| 159 | 159 | * @param $haystack |
| 160 | 160 | * @return bool|mixed |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | } |
| 179 | 179 | |
| 180 | 180 | /** |
| 181 | - * function that retun a array that contain all user rights or empty array if no right found |
|
| 181 | + * function that retun a array that contain all user rights or empty array if no right found |
|
| 182 | 182 | * @return array |
| 183 | 183 | */ |
| 184 | 184 | private function getUserRights(): array |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | /** |
| 196 | - * function that retun a array that contain all rights of rattached list right of the current user |
|
| 196 | + * function that retun a array that contain all rights of rattached list right of the current user |
|
| 197 | 197 | * @return array |
| 198 | 198 | */ |
| 199 | 199 | private function getRightsListOfUser(): array |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | class Jwt |
| 8 | 8 | { |
| 9 | 9 | /** |
| 10 | - * encode an array in jwt |
|
| 10 | + * encode an array in jwt |
|
| 11 | 11 | * @param array $values |
| 12 | 12 | * @param string $token |
| 13 | 13 | * @return string |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | - * encode a jwt in array |
|
| 21 | + * encode a jwt in array |
|
| 22 | 22 | * @param string $encoded_json |
| 23 | 23 | * @param string $token |
| 24 | 24 | * @return bool|object |
@@ -11,11 +11,11 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | private $container; |
| 13 | 13 | |
| 14 | - /** |
|
| 15 | - * Globals constructor. |
|
| 16 | - * @param ContainerInterface $container |
|
| 17 | - */ |
|
| 18 | - public function __construct(ContainerInterface $container) |
|
| 14 | + /** |
|
| 15 | + * Globals constructor. |
|
| 16 | + * @param ContainerInterface $container |
|
| 17 | + */ |
|
| 18 | + public function __construct(ContainerInterface $container) |
|
| 19 | 19 | { |
| 20 | 20 | $this->container = $container; |
| 21 | 21 | } |