tClient
MMO\oauth\classes · 1 symbol · generated 5 Oct 2026
tClient
tClient.php:13Model for client
- Namespace
MMO\oauth\classes- Uses traits
- tWithRoles
Index
Properties4
clientFlags
Client flags
- Type
- int
config
- Type
- array
roles
Roles associated with the token.
- Type
- array
scopes
- Type
- array
Methods28
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:106getClientFlagsText($separator)
tClient.php:64Get the flags as text
getConfig()
tClient.php:71| returns | array |
getOwnScope($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> |
hasClientFlag($flag)
tClient.php:43hasRole($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