DatabaseService
This class is subjected to change.
Do NOT subclass
Scope: frontend / backend
Table of Contents
Methods
- getAllReferencesForFileUid() : array<string|int, mixed>
- Returns an array with all form definition file uids as keys and their reference counts as values.
- getAllReferencesForPersistenceIdentifier() : array<string|int, mixed>
- Returns an array with all form definition persistenceIdentifiers as keys and their reference counts as values.
- getReferencesByPersistenceIdentifier() : array<string|int, mixed>
- Returns an array with all sys_refindex database rows which be connected to a formDefinition identified by $persistenceIdentifier
- getAllReferences() : array<string|int, mixed>
Methods
getAllReferencesForFileUid()
Returns an array with all form definition file uids as keys and their reference counts as values.
public
getAllReferencesForFileUid() : array<string|int, mixed>
Return values
array<string|int, mixed>getAllReferencesForPersistenceIdentifier()
Returns an array with all form definition persistenceIdentifiers as keys and their reference counts as values.
public
getAllReferencesForPersistenceIdentifier() : array<string|int, mixed>
Return values
array<string|int, mixed>getReferencesByPersistenceIdentifier()
Returns an array with all sys_refindex database rows which be connected to a formDefinition identified by $persistenceIdentifier
public
getReferencesByPersistenceIdentifier(string $persistenceIdentifier) : array<string|int, mixed>
$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
Return values
array<string|int, mixed>getAllReferences()
protected
getAllReferences(string $column) : array<string|int, mixed>
Parameters
- $column : string