tWithRoles
MMO\oauth\classes · 1 symbol · generated 5 Oct 2026
tWithRoles
tWithRoles.php:8- Namespace
MMO\oauth\classes- Uses traits
- tWithScopes
Index
| roles | Roles associated with the token. | |
| scopes | ||
| addRole($role) | ||
| allow($uids) | Add scope if it is not already disallowed | |
| applyScopes($scopes, $set) | Apply this scopes onto a list of scopes | |
| blameOwnScope($uid) | ||
| blameScope($uid) | ||
| clearRoles() | ||
| clearScopes() | ||
| disallow($uids) | ||
| getOwnScope($uid) | ||
| getOwnScopes() | Return an array of scopes associated with the token. | |
| getRoles() | ||
| getScope($uid) | ||
| getScopes() | Return an array of scopes associated with the token. | |
| hasRole($role) | ||
| hasScope($uid) | ||
| isAllowed($uids) | Test if all scopes are allowed | |
| isAnyAllowed($uids) | Test if any scope is allowed Scopes expressed as string can be a list of scope's uid seperated by a space (in this case, all scopes MUST be allowed). | |
| markChanged($keys) abstract | Record that properties changed (scopes), so they are saved: aEntity::markChanged | |
| removeRole($role) | ||
| scopesText($separator, $true, $false) | ||
| setRoles($roles) | ||
| setScope($uid, $value) | Set the scope's value | |
| setScopes($scopes) |
Properties2
roles
Roles associated with the token.
- Type
- array
scopes
- Type
- array
Methods23
addRole($role)
tWithRoles.php:24allow($uids)
tWithScopes.php:100Add scope if it is not already disallowed
applyScopes($scopes, $set)
tWithScopes.php:136Apply this scopes onto a list of scopes
| $scopes | array | list of {scope:uid} => {allow:bool} |
| $set = false | bool | mergeScopes |
| returns | void |
blameOwnScope($uid)
tWithScopes.php:52blameScope($uid)
tWithRoles.php:100clearRoles()
tWithRoles.php:57| returns | void |
clearScopes()
tWithScopes.php:91| returns | void |
disallow($uids)
tWithScopes.php:106getOwnScope($uid)
tWithScopes.php:27getOwnScopes()
tWithScopes.php:40Return an array of scopes associated with the token.
| returns | array | bool> |
getRoles()
tWithRoles.php:62| returns | array |
getScope($uid)
tWithRoles.php:87getScopes()
tWithRoles.php:79Return an array of scopes associated with the token.
| returns | array | iScope> |
hasRole($role)
tWithRoles.php:32hasScope($uid)
tWithScopes.php:31isAllowed($uids)
tWithScopes.php:116Test if all scopes are allowed
isAnyAllowed($uids)
tWithScopes.php:125Test if any scope is allowed Scopes expressed as string can be a list of scope's uid seperated by a space (in this case, all scopes MUST be allowed).
markChanged($keys)
abstracttWithScopes.php:25Record that properties changed (scopes), so they are saved: aEntity::markChanged
removeRole($role)
tWithRoles.php:40scopesText($separator, $true, $false)
tWithScopes.php:44setRoles($roles)
tWithRoles.php:66setScope($uid, $value)
tWithScopes.php:65Set the scope's value