Class \Prado\Security\TAuthorizationRule
TAuthorizationRule represents a single authorization rule. A rule is specified by an action (required), a list of users (optional), a list of roles (optional), a verb (optional), and a list of IP rules (optional). Action can be either 'allow' or 'deny'. Guest (anonymous, unauthenticated) users are represented by question mark '?'. All users (including guest users) are represented by asterisk ''. Authenticated users are represented by '@'. Users/roles are case-insensitive. Different users/roles are separated by comma ','. Verb can be either 'get' or 'post'. If it is absent, it means both. IP rules are separated by comma ',' and can contain wild card in the rules (e.g. '192.132.23.33, 192.122..*')
Class hierarchy
Author: Qiang Xue <qiang.xue@gmail.com>Since: 3.0
public
|
__construct([string $action = 'allow' ][, string $users = '' ][, string $roles = '' ][, string $verb = '' ][, string $ipRules = '' ][, null|(numeric) $priority = null ]) : mixed
Constructor.
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
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 load.
Reimplement in derived classes to add new variables, but remember to also to call the parent implementation first. |
private
|
|
private
|
|
private
|
|
private
|
\Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |