Documentation

CRM_OAuth_BAO_OAuthContactToken extends CRM_OAuth_DAO_OAuthContactToken
in package
implements HookInterface

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

DAOs are a primary source for metadata in older versions of CiviCRM (<5.74) and are required for some subsystems (such as APIv3).

This stub provides compatibility. It is not intended to be modified in a substantive way. Property annotations may be added, but are not required.

Table of Contents

Interfaces

HookInterface
Interface HookInterface

Properties

$_tableName  : string
Required by older versions of CiviCRM (<5.74).
$access_token  : string
$client_id  : string
$contact_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

Methods

addSelectWhereClause()  : array<string|int, mixed>
create()  : CRM_OAuth_DAO_OAuthContactToken
Create or update OAuthContactToken based on array-data
del()  : CRM_OAuth_BAO_OAuthContactToken
self_civi_api4_authorizeRecord()  : void
fillAndValidate()  : mixed
fillContactIdFromTag()  : void

Properties

$_tableName

Required by older versions of CiviCRM (<5.74).

public static string $_tableName = 'civicrm_oauth_contact_token'

Methods

addSelectWhereClause()

public addSelectWhereClause([string|null $entityName = null ][, int|null $userId = null ][, array<string|int, mixed> $conditions = [] ]) : array<string|int, mixed>
Parameters
$entityName : string|null = null
$userId : int|null = null
$conditions : array<string|int, mixed> = []
Tags
inheritDoc
Return values
array<string|int, mixed>

fillContactIdFromTag()

private static fillContactIdFromTag(array<string|int, mixed> &$record) : void
Parameters
$record : array<string|int, mixed>

        
On this page

Search results