SchemaMapBuilder
extends AutoService
in package
AutoService is a base-class for defining a service (in Civi's service-container).
Tags
Table of Contents
Properties
- $apiEntities : array<string|int, mixed>
- $dispatcher : CiviEventDispatcherInterface
Methods
- __construct() : mixed
- build() : SchemaMap
- addCustomFields() : mixed
- addJoins() : mixed
- getTableName() : string|null
- loadTables() : mixed
- Add all tables and joins
Properties
$apiEntities
protected
array<string|int, mixed>
$apiEntities
$dispatcher
protected
CiviEventDispatcherInterface
$dispatcher
Methods
__construct()
public
__construct(CiviEventDispatcherInterface $dispatcher) : mixed
Parameters
- $dispatcher : CiviEventDispatcherInterface
Tags
build()
public
build() : SchemaMap
Return values
SchemaMapaddCustomFields()
private
addCustomFields(SchemaMap $map, Table $baseTable, string $entityName) : mixed
Parameters
addJoins()
private
addJoins(Table $table, string $fieldName, array<string|int, mixed> $data) : mixed
Parameters
- $table : Table
- $fieldName : string
- $data : array<string|int, mixed>
getTableName()
private
static getTableName(string $entityName) : string|null
Parameters
- $entityName : string
Return values
string|nullloadTables()
Add all tables and joins
private
loadTables(SchemaMap $map) : mixed
Parameters
- $map : SchemaMap