AccessExplain
MMO\oauth\events · 1 symbole · générée le 30 Nov 2026
AccessExplain
AccessExplain.php:18Sent by AccessController::routeExplain (access/explain.json) once it said what mmo.oauth checks of a call -- the scopes of its route, of its collection, a private collection: an application adds what only it checks, its perimeter (the establishments an account sees, the filter of a collection). Each reason is words for the account, and whether it allows (true), refuses (false) or only narrows (null) the call.
- Espace de noms
MMO\oauth\events- Étend
- Event
Index
| account readonly | ||
| collection readonly | ||
| method readonly | ||
| path readonly | ||
| reasons | ||
| add($kind, $text, $allowed, $data) | Add a reason. | |
| __construct($origin, $account, $method, $path, $collection) |
Propriétés5
account
readonly- Type
- iClient
collection
readonlymethod
readonly- Type
- string
path
readonly- Type
- string
reasons
- Type
- array
Méthodes2
add($kind, $text, $allowed, $data)
AccessExplain.php:40Add a reason.
__construct($origin, $account, $method, $path, $collection)
AccessExplain.php:29Membres hérités (12)
| Méthodes | Déclaré par | Description | |
|---|---|---|---|
AddListener($handler, $order) | Event | Register a listener directly (as opposed to ConnectListeners's attribute-based discovery). | |
ConnectListeners($obj) | Event | Scan $obj's methods for #[Listen(EventClass::class)] attributes and register each one as a listener on the matching event class. | |
DisconnectListeners($obj) | Event | Undo a previous ConnectListeners: removes every listener that connect had registered for $obj on this event class. | |
dispatch() | Event | Invoke every GetListeners listener with $this. | |
GetListeners() | Event | Collect every listener for this class, including those registered on its parent classes (so a subclass event is also caught by listeners of its parent event), sorted by ascending $order (ties keep … | |
getOrigin() | Event | ||
HasListener($handler) | Event | ||
RemoveListener($handler) | Event | Remove the last added handler from the listeners. | |
Send($args) | Event | Construct a new instance of this class with $args, then dispatch it to every listener. | |
SetListenerOrder($handler, $order) | Event | Change the order of an already-registered listener, whether added directly via AddListener or indirectly via ConnectListeners (which also stores its [$obj, $methodName] callables here). |