Method |
Description |
|
__construct ( string $name ) : Role |
Constructor |
|
__toString ( ) : string |
Method to return the string value of the name of the role |
|
addChild ( mixed $role ) : Role |
Method to add a child role |
|
addPermission ( string $name ) : Role |
Method to add a permission to the role |
|
factory ( string $name ) : Role |
Static method to instantiate the role object and return itself
to facilitate chaining methods together. |
|
getName ( ) : string |
Method to get the role name |
|
getParent ( ) : Role |
Method to get the role parent |
|
hasParent ( ) : Role |
Method to see if the role has a parent |
|
hasPermission ( string $name ) : boolean |
Method to check if a role has a permission |
|
setParent ( Role $parent ) : Role |
Method to set the role parent |
|