kernel/private/rest/classes/models/ezprest_token.php
File containing the ezpRestToken class
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Package
- kernel
- Version
- 4.6.0
\ezpRestToken
Package: Default
Parameters
Returns
Data class ezprest_tokens.
Class to be used with eZ Components PersistentObject.
- Parent(s)
- ?\ezcPersistentObject
Properties
Methods


fetch(
string $accessToken, bool $authCheck
=
true
)
:
\ezpRestToken
static
Fetches an ezpRestToken persistent object from an access token
Parameters
Returns
Name | Type | Description |
---|---|---|
$accessToken | string | Access token hash string |
$authCheck | bool | If true, will also check if token corresponds to a client app authorized by its user |
Type | Description |
---|---|
\ezpRestToken |


generateToken(
$vary
)
:
string
static
Generates a random token.
Code is adopted from MvcAuthenticationTiein
Name | Type | Description |
---|---|---|
$vary |
Type | Description |
---|---|
string | The token. |


getState(
)
:
\array(string=>mixed)
Get the PersistentObject state.
Returns
Type | Description |
---|---|
\array(string=>mixed) | The state of the object. |