DatabaseService

This class is subjected to change.

Do NOT subclass

Scope: frontend / backend

Internal

Table of Contents

Methods

getAllReferencesForFileUid()  : array
Returns an array with all form definition file uids as keys and their reference counts as values.
getAllReferencesForPersistenceIdentifier()  : array
Returns an array with all form definition persistenceIdentifiers as keys and their reference counts as values.
getReferencesByPersistenceIdentifier()  : array
Returns an array with all sys_refindex database rows which be connected to a formDefinition identified by $persistenceIdentifier
getAllReferences()  : array

Methods

getAllReferencesForFileUid()

Returns an array with all form definition file uids as keys and their reference counts as values.

public getAllReferencesForFileUid() : array
Internal
Return values
array

getAllReferencesForPersistenceIdentifier()

Returns an array with all form definition persistenceIdentifiers as keys and their reference counts as values.

public getAllReferencesForPersistenceIdentifier() : array
Internal
Return values
array

getReferencesByPersistenceIdentifier()

Returns an array with all sys_refindex database rows which be connected to a formDefinition identified by $persistenceIdentifier

public getReferencesByPersistenceIdentifier(string $persistenceIdentifier) : array

$persistenceIdentifier string can contain:

  • number -> interpreted as a sys_file reference UID to a FAL-stored YAML file (user-generated content)
  • EXT:... -> interpreted as a NON-FAL extension-based file
  • any string -> interpreted as FAL-based filename

Note that we explicitly do NOT check for file existence here, because we want to be able to reveal sys_refindex entries to files that have been deleted meanwhile!

Parameters
$persistenceIdentifier : string
Internal
Return values
array

getAllReferences()

protected getAllReferences(string $column) : array
Parameters
$column : string
Return values
array
On this page

Search results