RecordDisplayService
class RecordDisplayService (View source)
Service responsible for transforming DNS records for display purposes Implements the Single Responsibility Principle by focusing only on display transformations
Methods
__construct(bool $displayHostnameOnly = false)
No description
transformRecord(array $record, string $zoneName)
Transform a single record for display
array
transformRecords(array $records, string $zoneName)
Transform multiple records for display
string
restoreFqdn(string $hostname, string $zoneName)
Restore the full FQDN from a hostname Used when processing form submissions
bool
isHostnameOnlyEnabled()
Check if hostname-only display is enabled
Details
__construct(bool $displayHostnameOnly = false)
No description
RecordDisplay
transformRecord(array $record, string $zoneName)
Transform a single record for display
array
transformRecords(array $records, string $zoneName)
Transform multiple records for display
string
restoreFqdn(string $hostname, string $zoneName)
Restore the full FQDN from a hostname Used when processing form submissions
bool
isHostnameOnlyEnabled()
Check if hostname-only display is enabled