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'
$access_token
public
string
$access_token
$client_id
public
string
$client_id
$contact_id
public
string
$contact_id
$created_date
public
string
$created_date
$error
public
string
$error
$expires
public
string
$expires
$grant_type
public
string
$grant_type
$id
public
string
$id
$modified_date
public
string
$modified_date
$raw
public
string
$raw
$refresh_token
public
string
$refresh_token
$resource_owner
public
string
$resource_owner
$resource_owner_name
public
string
$resource_owner_name
$scopes
public
string
$scopes
$tag
public
string
$tag
$token_type
public
string
$token_type
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
Return values
array<string|int, mixed>create()
Create or update OAuthContactToken based on array-data
public
static create(array<string|int, mixed> $record) : CRM_OAuth_DAO_OAuthContactToken
Parameters
- $record : array<string|int, mixed>
Return values
CRM_OAuth_DAO_OAuthContactTokendel()
public
static del(mixed $id) : CRM_OAuth_BAO_OAuthContactToken
Parameters
- $id : mixed
Tags
Return values
CRM_OAuth_BAO_OAuthContactTokenself_civi_api4_authorizeRecord()
public
static self_civi_api4_authorizeRecord(AuthorizeRecordEvent $e) : void
Parameters
- $e : AuthorizeRecordEvent
Tags
fillAndValidate()
private
static fillAndValidate(mixed &$record, mixed $userId) : mixed
Parameters
- $record : mixed
- $userId : mixed
Tags
fillContactIdFromTag()
private
static fillContactIdFromTag(array<string|int, mixed> &$record) : void
Parameters
- $record : array<string|int, mixed>