Documentation

CRM_OAuth_BAO_OAuthSysToken extends CRM_OAuth_DAO_OAuthSysToken
in package

DAOs provide an OOP-style facade for reading and writing database records.

Tags
copyright

CiviCRM LLC https://civicrm.org/licensing

Table of Contents

Properties

$_tableName  : string
Required by older versions of CiviCRM (<5.74).
$access_token  : string
$client_id  : string
$created_date  : string
$error  : string
$expires  : string
$grant_type  : string
$id  : string
$modified_date  : string
$raw  : string
$refresh_token  : string
$resource_owner  : string
$resource_owner_name  : string
$scopes  : string
$tag  : string
$token_type  : string
$returnFields  : mixed

Methods

redact()  : array<string|int, mixed>
Redact the content of a token.

Properties

$_tableName

Required by older versions of CiviCRM (<5.74).

public static string $_tableName = 'civicrm_oauth_systoken'

$returnFields

private static mixed $returnFields = ['id', 'client_id', 'expires', 'tag']

Methods

redact()

Redact the content of a token.

public static redact(array<string|int, mixed> $tokenRecord) : array<string|int, mixed>

This is useful for processes which must internally use the entire token record -- but then report on their progress to a permissioned party.

Parameters
$tokenRecord : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results