class RecordDisplay (View source)

Value object representing a DNS record prepared for display Encapsulates both the raw record data and display-specific transformations

Methods

__construct(array $recordData, string $displayName, string $editableName, bool $isHostnameOnly = false)

No description

string
getDisplayName()

Get the display name (what users see in the UI)

string
getEditableName()

Get the editable name (what appears in form inputs)

int
getId()

Get the original record ID

string
getName()

Get the original record name (FQDN)

string
getType()

Get the record type

string
getContent()

Get the record content

int
getTtl()

Get the record TTL

int|null
getPriority()

Get the record priority

string|null
getComment()

Get the record comment

bool
isDisabled()

Check if record is disabled

bool
isHostnameOnly()

Check if hostname-only display is active

array
getRawData()

Get all raw record data

array
toArray()

Convert to array for template consumption

Details

__construct(array $recordData, string $displayName, string $editableName, bool $isHostnameOnly = false)

No description

Parameters

array $recordData
string $displayName
string $editableName
bool $isHostnameOnly

string getDisplayName()

Get the display name (what users see in the UI)

Return Value

string

string getEditableName()

Get the editable name (what appears in form inputs)

Return Value

string

int getId()

Get the original record ID

Return Value

int

string getName()

Get the original record name (FQDN)

Return Value

string

string getType()

Get the record type

Return Value

string

string getContent()

Get the record content

Return Value

string

int getTtl()

Get the record TTL

Return Value

int

int|null getPriority()

Get the record priority

Return Value

int|null

string|null getComment()

Get the record comment

Return Value

string|null

bool isDisabled()

Check if record is disabled

Return Value

bool

bool isHostnameOnly()

Check if hostname-only display is active

Return Value

bool

array getRawData()

Get all raw record data

Return Value

array

array toArray()

Convert to array for template consumption

Return Value

array