Class \Prado\Security\TAuthorizationRuleCollection
TAuthorizationRuleCollection class.
TAuthorizationRuleCollection represents a collection of authorization rules TAuthorizationRule. To check if a user is allowed, call isUserAllowed.
Class hierarchy
- \Prado\Security\TAuthorizationRuleCollection
- \Prado\Collections\TPriorityList implements IPriorityCollection uses TPriorityCollectionTrait
- \Prado\Collections\TList implements IteratorAggregate, ArrayAccess, Countable
- \Prado\TComponent
Since: 3.0
public
|
insertAt(int $index, mixed $item) : float|null
Inserts an item at the specified position.
This overrides the parent implementation by performing additional operations for each newly added TAuthorizationRule object. |
public
|
isUserAllowed(IUser $user, string $verb, string $ip[, null|array<string|int, mixed> $extra = null ]) : bool
|
\Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |