Trait \Prado\Security\Permissions\TPermissionsManagerPropertyTrait
TPermissionsManagerPropertyTrait class.
These are the methods for having the TPermissionsManager as a property in the the behaviors TPermissionsBehavior, TPermissionsConfigurationBehavior, and TUserPermissionsBehavior.
The Permissions Manager property is important to zap when sleeping. On waking up, the PermissionsManager is set to the current instance manager.
This functionality is important to replicate if-when overriding.
Trait hierarchy
Author: Brad Anderson <belisoful@icloud.com>Since: 4.3.0
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
_getZappableSleepProps(array<string|int, mixed> &$exprops) : mixed
Returns an array with the names of all variables of this object that should NOT be serialized
because their value is the default one or useless to be cached for the next page loads.
Reimplement in derived classes to add new variables, but remember to also to call the parent implementation first. |
|