AccessUserDirectory
Corex\Access\AccessUserDirectory · interface · Core layer
Public API
Section titled “Public API”userIdsForRole(string $roleKey): array
Section titled “userIdsForRole(string $roleKey): array”fullAccessAdministratorIds(): array
Section titled “fullAccessAdministratorIds(): array”grantUserAbility(int $userId, string $abilityKey): void
Section titled “grantUserAbility(int $userId, string $abilityKey): void”revokeUserAbility(int $userId, string $abilityKey): void
Section titled “revokeUserAbility(int $userId, string $abilityKey): void”Takes back an ability given to this person, not to their role. Nothing happens for a person who no longer exists (spec 112: an expiry still ends the grant).
holdsOwnAbility(int $userId, string $abilityKey): bool
Section titled “holdsOwnAbility(int $userId, string $abilityKey): bool”Whether this person was given the ability themself: their own capabilities, not what their role or a filter adds. A grant whose ability was taken away elsewhere answers false.
displayName(int $userId): string
Section titled “displayName(int $userId): string”exists(int $userId): bool
Section titled “exists(int $userId): bool”Whether this account still exists.