Interface \Prado\Security\Permissions\IPermissions
IPermissions interface
Namespace: \Prado\Security\PermissionsIPermissions specifies the interface for implementation by any class that wants permission authorization built in through dynamic events. This interface will have the TPermissionsBehavior attached by TPermissionsManager. When attached, the behavior will register the owners permissions, and check a permission rules on specified dynamic events.
getPermissions returns an array of TPermissionEvent. These are automatically registered permissions. If nothing is returned, then the implementation will need to register its own permissions through $manager->TPermissionsManager::registerPermissions.
Author: Brad Anderson <belisoful@icloud.com>
Since: 4.2.0
public
|
|