Documentation

ImportSubscriber extends AutoService
in package
implements EventSubscriberInterface

Listening class that registers each Import table as an entity.

Tags
service

civi.api4.importSubscriber

Table of Contents

Interfaces

EventSubscriberInterface

Methods

getImportForms()  : array<string|int, mixed>
Get an array of FormBuilder forms for viewing imports.
getSubscribedEvents()  : array<string|int, string>
Get the events this class listens to.
on_civi_afform_get()  : void
Get an array of FormBuilder forms for viewing imports.
on_civi_api4_entityTypes()  : void
Register each valid import as an entity
on_hook_civicrm_post()  : void
Callback for hook_civicrm_post().
on_hook_civicrm_pre()  : void
Callback for hook_civicrm_pre().
on_schema_map_build()  : void
Register FK join from import table to entity being imported
onApiAuthorize()  : void
flushEntityMetadata()  : void
Flush entities cache key so our new Import will load as an entity.
ImportEntityExists()  : int
Does the pseudo-entity for the import exist yet.
getImportTableFromEvent()  : string|null
Get the import table from event data.
isTableChange()  : bool
Is the update changing the associated temp table.

Methods

getImportForms()

Get an array of FormBuilder forms for viewing imports.

public static getImportForms() : array<string|int, mixed>
Tags
throws
CRM_Core_Exception
Return values
array<string|int, mixed>

getSubscribedEvents()

Get the events this class listens to.

public static getSubscribedEvents() : array<string|int, string>
Return values
array<string|int, string>

on_hook_civicrm_pre()

Callback for hook_civicrm_pre().

public on_hook_civicrm_pre(PreEvent $event) : void
Parameters
$event : PreEvent
Tags
noinspection

PhpUnused

flushEntityMetadata()

Flush entities cache key so our new Import will load as an entity.

protected flushEntityMetadata() : void

ImportEntityExists()

Does the pseudo-entity for the import exist yet.

protected ImportEntityExists(PostEvent $event) : int
Parameters
$event : PostEvent
Tags
noinspection

PhpDocMissingThrowsInspection

noinspection

PhpUnhandledExceptionInspection

Return values
int

isTableChange()

Is the update changing the associated temp table.

private isTableChange(GenericHookEvent $event) : bool
Parameters
$event : GenericHookEvent
Tags
noinspection

PhpDocMissingThrowsInspection

noinspection

PhpUnhandledExceptionInspection

Return values
bool

        
On this page

Search results