Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
Allow Class Reference

Attribute Allow. More...

+ Inheritance diagram for Allow:

Public Member Functions

 __construct (string|array $role, ?string $resource=null, ?string $permission=null)
 Allow constructor.
 
- Public Member Functions inherited from BaseAttribute
 __construct ()
 
 asAnnotation ()
 
 getNamespace ()
 
 __toString ()
 
- Public Member Functions inherited from BaseAnnotationTrait
 getProperties ()
 
 getPropertiesAndValues ($props=NULL)
 
 isSameAs ($annot)
 

Data Fields

string array $role
 
string $permission
 
string $resource
 

Additional Inherited Members

- Protected Member Functions inherited from BaseAttribute
 getDefaultParameters ()
 

Detailed Description

Attribute Allow.

usages :

  • #[Allow("roleName")]
  • #[Allow(role: "roleName")]
  • #[Allow(role: "roleName",resource: "resourceName",permission: "permissionName")]
  • #[Allow("roleName","resourceName","permissionName")]
Author
jc
Version
1.0.0

Definition at line 21 of file Allow.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( string|array  $role,
?string  $resource = null,
?string  $permission = null 
)

Allow constructor.

Parameters
string | array$role
string | null$resource
string | null$permission

Definition at line 35 of file Allow.php.

Field Documentation

◆ $permission

string $permission

Definition at line 25 of file Allow.php.

◆ $resource

string $resource

Definition at line 27 of file Allow.php.

◆ $role

string array $role

Definition at line 23 of file Allow.php.


The documentation for this class was generated from the following file: