PersistenceConfigurationService

Read onlyYes
FinalYes

Service for accessing form storage configuration (persistenceManager settings)

This service provides a clean interface to access form storage related settings from the YAML configuration without coupling every component to the configuration loading mechanism.

Internal
Attributes
#[Autoconfigure]
$public: true

Table of Contents

Methods

__construct()  : mixed
getAllowedExtensionPaths()  : array<string|int, string>
Get allowed extension paths from form configuration
getAllowedFileMounts()  : array<string|int, string>
Get allowed file mounts from form configuration
getDatabaseStorageSettings()  : array<string|int, mixed>
Get database storage settings
getDefaultStoragePath()  : string
Get default storage path for new forms
getFormSettings()  : array<string|int, mixed>
Get all form settings
getPersistenceManagerSettings()  : array<string|int, mixed>
Get persistence manager settings
getSetting()  : mixed
Get specific setting from persistence manager configuration
getSortConfiguration()  : array{sortByKeys: string[], sortAscending: bool}
Get sort configuration for form listing
isAllowedToDeleteFromExtensionPaths()  : bool
Check if deleting from extension paths is allowed
isAllowedToSaveToExtensionPaths()  : bool
Check if saving to extension paths is allowed

Methods

getAllowedExtensionPaths()

Get allowed extension paths from form configuration

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

Array of allowed extension paths (e.g., ["EXT:my_ext/Configuration/Forms/"])

getAllowedFileMounts()

Get allowed file mounts from form configuration

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

Array of allowed file mount paths (e.g., ["1:/forms/", "2:/user_forms/"])

getDatabaseStorageSettings()

Get database storage settings

public getDatabaseStorageSettings() : array<string|int, mixed>
Return values
array<string|int, mixed>

getDefaultStoragePath()

Get default storage path for new forms

public getDefaultStoragePath() : string
Return values
string

getFormSettings()

Get all form settings

public getFormSettings() : array<string|int, mixed>
Return values
array<string|int, mixed>

getPersistenceManagerSettings()

Get persistence manager settings

public getPersistenceManagerSettings() : array<string|int, mixed>
Return values
array<string|int, mixed>

getSetting()

Get specific setting from persistence manager configuration

public getSetting(string $key[, mixed $default = null ]) : mixed
Parameters
$key : string
$default : mixed = null

getSortConfiguration()

Get sort configuration for form listing

public getSortConfiguration() : array{sortByKeys: string[], sortAscending: bool}
Return values
array{sortByKeys: string[], sortAscending: bool}

isAllowedToDeleteFromExtensionPaths()

Check if deleting from extension paths is allowed

public isAllowedToDeleteFromExtensionPaths() : bool
Return values
bool

isAllowedToSaveToExtensionPaths()

Check if saving to extension paths is allowed

public isAllowedToSaveToExtensionPaths() : bool
Return values
bool

        
On this page

Search results