interface SOARecordManagerInterface (View source)

Interface for SOA record management operations

Methods

string
getSOARecord(int $zone_id)

Get SOA record content for Zone ID

static string|null
getSOASerial(string $soa_rec)

Get SOA Serial Number

static string
setSOASerial(string $soa_rec, string $serial)

Set SOA serial in SOA content

string
getUpdatedSOARecord(string $soa_rec)

Return SOA record with incremented serial number

bool
updateSOARecord(int $domain_id, string $content)

Update SOA record

bool
updateSOASerial(int $domain_id)

Update SOA serial

int|string
getNextSerial(int|string $curr_serial)

Get next serial number

static string
getNextDate(string $curr_date)

Get Next Date

Details

string getSOARecord(int $zone_id)

Get SOA record content for Zone ID

Parameters

int $zone_id

Zone ID

Return Value

string

SOA content

static string|null getSOASerial(string $soa_rec)

Get SOA Serial Number

Parameters

string $soa_rec

SOA record content

Return Value

string|null

SOA serial

static string setSOASerial(string $soa_rec, string $serial)

Set SOA serial in SOA content

Parameters

string $soa_rec

SOA record content

string $serial

New serial number

Return Value

string

Updated SOA record

string getUpdatedSOARecord(string $soa_rec)

Return SOA record with incremented serial number

Parameters

string $soa_rec

Current SOA record

Return Value

string

Updated SOA record

bool updateSOARecord(int $domain_id, string $content)

Update SOA record

Parameters

int $domain_id

Domain ID

string $content

SOA content to set

Return Value

bool

true if success

bool updateSOASerial(int $domain_id)

Update SOA serial

Increments SOA serial to next possible number

Parameters

int $domain_id

Domain ID

Return Value

bool

true if success

int|string getNextSerial(int|string $curr_serial)

Get next serial number

Parameters

int|string $curr_serial

Current Serial No

Return Value

int|string

Next serial number

static string getNextDate(string $curr_date)

Get Next Date

Parameters

string $curr_date

Current date in YYYYMMDD format

Return Value

string

Date +1 day