Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
PermissionMapObject.php
Go to the documentation of this file.
1<?php
3
13
15
16 private $resource;
17
18 private $permission;
19
20 private $roles;
21
22 private $type='';
23
24 public function __construct(?string $controllerAction = '', ?string $resource = '', ?string $permission = '', ?array $roles = []) {
25 $this->controllerAction = $controllerAction;
26 $this->resource = $resource;
27 $this->permission = $permission;
28 $this->roles = $roles;
29 }
30
35 public function getControllerAction() {
37 }
38
43 public function getResource() {
44 return $this->resource;
45 }
46
51 public function getPermission() {
52 return $this->permission;
53 }
54
60 $this->controllerAction = $controllerAction;
61 }
62
67 public function setResource($resource) {
68 $this->resource = $resource;
69 }
70
75 public function setPermission($permission) {
76 $this->permission = $permission;
77 }
78
83 public function getRoles() {
84 return $this->roles;
85 }
86
91 public function setRoles($roles) {
92 $this->roles = $roles;
93 }
94
95 public function getId_() {
97 }
98
102 public function getType(): string {
103 return $this->type;
104 }
105
109 public function setType(?string $type): void {
110 $this->type = $type;
111 }
112}
113
Ubiquity\security\acl\cache$PermissionMapObject This class is part of Ubiquity.
__construct(?string $controllerAction='', ?string $resource='', ?string $permission='', ?array $roles=[])