Class

ezpRestAuthorizedClient

class ezpRestAuthorizedClient

Persistent object class representing a REST application authorization by a user.

Each entry matches one client/application allowed for oAuth by one user

Properties

$id
int $rest_client_id Application creation date, as a unix timestamp
int $user_id ID of the user who authorized this client/application
int $created Application creation date, as a unix timestamp

Methods

getState()

setState(array $properties)

static  fetchForClientUser(ezpRestClient $client, eZUser $user)

Returns the authorization object for a user & application

Details

at line 37
public getState()

at line 47
public setState(array $properties)

Parameters

array $properties

at line 60
static public fetchForClientUser(ezpRestClient $client, eZUser $user)

Returns the authorization object for a user & application

Parameters

ezpRestClient $client
eZUser $user