class SRVWizard extends AbstractDnsWizard (View source)

SRV Wizard

Wizard for creating SRV (Service) records. SRV records define the location (hostname and port) of servers for specified services.

Constants

private COMMON_SERVICES

Common service definitions with default ports

Properties

protected ConfigurationInterface $config from  AbstractDnsWizard
protected string $recordType from  AbstractDnsWizard
protected string $wizardType from  AbstractDnsWizard
protected string $displayName from  AbstractDnsWizard
protected string $description from  AbstractDnsWizard

Methods

__construct(ConfigurationInterface $config)

Constructor

string
getRecordType()

{@inheritdoc}

string
getWizardType()

{@inheritdoc}

string
getDisplayName()

{@inheritdoc}

string
getDescription()

{@inheritdoc}

string
getPreview(array $formData)

{@inheritdoc}

string
formatPreview(array $record)

Format a DNS record for preview display

array
getWizardConfig()

Get wizard module configuration with legacy fallback

int
getDefaultTTL()

Get default TTL from configuration

string
sanitizeInput(string $input)

Sanitize user input

array
validateTTL(mixed $ttl)

Validate TTL value

bool
isValidDomain(string $domain)

Validate domain name format

bool
isValidEmail(string $email)

Validate email address format (DNS style)

array
createValidationResult(bool $valid, array $errors = [], array $warnings = [])

Create a standard validation result array

array
getFormSchema()

{@inheritdoc}

array
generateRecord(array $formData)

{@inheritdoc}

array
validate(array $formData)

{@inheritdoc}

array
parseExistingRecord(string $content, array $recordData = [])

{@inheritdoc}

Details

__construct(ConfigurationInterface $config)

Constructor

Parameters

ConfigurationInterface $config

Application configuration

string getRecordType()

{@inheritdoc}

Return Value

string

string getWizardType()

{@inheritdoc}

Return Value

string

string getDisplayName()

{@inheritdoc}

Return Value

string

string getDescription()

{@inheritdoc}

Return Value

string

string getPreview(array $formData)

{@inheritdoc}

Parameters

array $formData

Return Value

string

protected string formatPreview(array $record)

Format a DNS record for preview display

Parameters

array $record

The generated record data

Return Value

string

Formatted preview string

protected array getWizardConfig()

Get wizard module configuration with legacy fallback

Return Value

array

Wizard configuration

protected int getDefaultTTL()

Get default TTL from configuration

Return Value

int

Default TTL value

protected string sanitizeInput(string $input)

Sanitize user input

Parameters

string $input

User input to sanitize

Return Value

string

Sanitized input

protected array validateTTL(mixed $ttl)

Validate TTL value

Parameters

mixed $ttl

TTL value to validate

Return Value

array

Validation result

protected bool isValidDomain(string $domain)

Validate domain name format

Parameters

string $domain

Domain name to validate

Return Value

bool

True if valid

protected bool isValidEmail(string $email)

Validate email address format (DNS style)

Parameters

string $email

Email address to validate

Return Value

bool

True if valid

protected array createValidationResult(bool $valid, array $errors = [], array $warnings = [])

Create a standard validation result array

Parameters

bool $valid

Whether validation passed

array $errors

List of error messages

array $warnings

List of warning messages

Return Value

array

Validation result

array getFormSchema()

{@inheritdoc}

Return Value

array

array generateRecord(array $formData)

{@inheritdoc}

Parameters

array $formData

Return Value

array

array validate(array $formData)

{@inheritdoc}

Parameters

array $formData

Return Value

array

array parseExistingRecord(string $content, array $recordData = [])

{@inheritdoc}

Parameters

string $content
array $recordData

Return Value

array