StandaloneAclWriteService
in package
implements
AclWriteServiceInterface
Standalone ACL write service.
Delegates entirely to SettingsWriteServiceInterface for permission persistence (PREMIS rights, copyright statements, access statements). No Propel references or class_exists checks.
Table of Contents
Interfaces
- AclWriteServiceInterface
- Contract for ACL / permission-related persistence.
Methods
- __construct() : mixed
- saveAccessStatements() : void
- Save or delete access statement settings.
- saveCopyrightStatement() : void
- Save copyright statement configuration.
- savePremisRights() : void
- Save PREMIS access-right and access-right-values settings.
- savePreservationStatement() : void
- Save preservation system access statement.
Methods
__construct()
public
__construct([SettingsWriteServiceInterface|null $settings = null ]) : mixed
Parameters
- $settings : SettingsWriteServiceInterface|null = null
saveAccessStatements()
Save or delete access statement settings.
public
saveAccessStatements(array<string|int, mixed> $statements) : void
Parameters
- $statements : array<string|int, mixed>
-
Array of ['name' => string, 'value' => string|null] If value is null/empty, the setting is deleted.
saveCopyrightStatement()
Save copyright statement configuration.
public
saveCopyrightStatement(bool $enabled, string|null $text, bool $applyGlobally[, string $culture = 'en' ]) : void
Parameters
- $enabled : bool
-
Whether copyright statement is enabled
- $text : string|null
-
Copyright statement text (localized)
- $applyGlobally : bool
-
Whether to apply globally
- $culture : string = 'en'
-
Culture for localized text
savePremisRights()
Save PREMIS access-right and access-right-values settings.
public
savePremisRights(array<string|int, mixed> $rights, array<string|int, mixed> $rightValues) : void
Parameters
- $rights : array<string|int, mixed>
-
Serialized rights array
- $rightValues : array<string|int, mixed>
-
Serialized right-values array
savePreservationStatement()
Save preservation system access statement.
public
savePreservationStatement(bool $enabled, string|null $text[, string $culture = 'en' ]) : void
Parameters
- $enabled : bool
-
Whether preservation access statement is enabled
- $text : string|null
-
Statement text (localized)
- $culture : string = 'en'
-
Culture for localized text