Methods |
public
static
|
isListOperation(SyncOperation::* $operation): ($operation is SyncOperation::*_LIST ? true : false)
Check if a sync operation is CREATE_LIST, READ_LIST, UPDATE_LIST or
DELETE_LIST
Check if a sync operation is CREATE_LIST, READ_LIST, UPDATE_LIST or
DELETE_LIST
|
#
|
public
static
|
isWriteOperation(SyncOperation::* $operation): ($operation is SyncOperation::READ* ? false : true)
Check if a sync operation is CREATE, UPDATE, DELETE, CREATE_LIST,
UPDATE_LIST or DELETE_LIST
Check if a sync operation is CREATE, UPDATE, DELETE, CREATE_LIST,
UPDATE_LIST or DELETE_LIST
|
#
|
public
static
|
getEntityTypeProvider(
class-string<SyncEntityInterface> $entityType,
?SyncStoreInterface $store = null,
): class-string<SyncProviderInterface>
Get the name of a sync entity type's provider interface
Get the name of a sync entity type's provider interface
|
#
|
public
static
|
getProviderEntityTypes(
class-string<SyncProviderInterface> $provider,
?SyncStoreInterface $store = null,
): array<class-string<SyncEntityInterface>>
Get the names of sync entity types serviced by a provider interface
Get the names of sync entity types serviced by a provider interface
|
#
|
public
static
|
getEntityTypeUri(
class-string<SyncEntityInterface> $entityType,
bool $compact = true,
?SyncStoreInterface $store = null,
): string
Get the canonical URI of a sync entity type
Get the canonical URI of a sync entity type
|
#
|
public
static
|
getStore(?ContainerInterface $container = null): SyncStoreInterface
Get an entity store, creating one if necessary
Get an entity store, creating one if necessary
If a container with a shared {@see SyncStoreInterface} instance is given,
it is returned. Otherwise, {@see Sync::getInstance()} is returned if
loaded, or a new {@see SyncStore} instance is created.
|
#
|