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

Attribute Permission. More...

+ Inheritance diagram for Permission:

Public Member Functions

 __construct (string|int $name, ?int $level=0)
 Permission 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 int null $name
 
int $level
 

Additional Inherited Members

- Protected Member Functions inherited from BaseAttribute
 getDefaultParameters ()
 

Detailed Description

Attribute Permission.

usages :

  • #[Permission("permissionName")]
  • #[Permission("permissionName",permissionLevel)]
  • #[Permission(name: "permissionName")]
  • #[Permission(name: "permissionName",level: permissionLevel)]
  • #[Permission(permissionLevel)]
Author
jc
Version
1.0.0

Definition at line 22 of file Permission.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( string|int  $name,
?int  $level = 0 
)

Permission constructor.

Parameters
string | int$name
int | null$level

Definition at line 33 of file Permission.php.

Field Documentation

◆ $level

int $level

Definition at line 26 of file Permission.php.

◆ $name

string int null $name

Definition at line 24 of file Permission.php.


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