pm_Dns_Record
in package
Panel dns wrapper
Tags
Table of Contents
- TYPE_A = 'A'
- TYPE_AAAA = 'AAAA'
- TYPE_AXFR = 'AXFR'
- TYPE_CAA = 'CAA'
- TYPE_CNAME = 'CNAME'
- TYPE_DS = 'DS'
- TYPE_MX = 'MX'
- TYPE_NS = 'NS'
- TYPE_PTR = 'PTR'
- TYPE_SRV = 'SRV'
- TYPE_TLSA = 'TLSA'
- TYPE_TXT = 'TXT'
- OWNER_TYPE_DOMAIN = 'domain'
- OWNER_TYPE_DOMAIN_ALIAS = 'domainAlias'
- __construct() : mixed
- availableTypes() : array<string|int, mixed>
- Return the list of available DNS record types
- getById() : pm_Dns_Record
- Return DNS record by ID.
- getHost() : string|null
- Return host name of DNS record.
- getId() : int|null
- Return id of DNS record.
- getOption() : string|null
- Return option of DNS record.
- getTtl() : int|null
- Return TTL of DNS record.
- getType() : string|null
- Return type of DNS record.
- getValue() : string|null
- Return value of DNS record.
- getZone() : pm_Dns_Zone
- Return DNS zone of DNS record.
- isTypeAvailable() : bool
- Return whether the DNS record type is available
- remove() : void
- Remove DNS record.
- save() : void
- Save DNS record.
- setHost() : pm_Dns_Record
- Set name host of DNS record.
- setOption() : pm_Dns_Record
- Set option of DNS record.
- setTtl() : pm_Dns_Record
- Set TTL of DNS record.
- setType() : pm_Dns_Record
- Set type of DNS record.
- setValue() : pm_Dns_Record
- Set value of DNS record.
- setZone() : $this
- Set DNS zone of Dns Record.
Constants
TYPE_A
public
mixed
TYPE_A
= 'A'
TYPE_AAAA
public
mixed
TYPE_AAAA
= 'AAAA'
TYPE_AXFR
public
mixed
TYPE_AXFR
= 'AXFR'
TYPE_CAA
public
mixed
TYPE_CAA
= 'CAA'
TYPE_CNAME
public
mixed
TYPE_CNAME
= 'CNAME'
TYPE_DS
public
mixed
TYPE_DS
= 'DS'
TYPE_MX
public
mixed
TYPE_MX
= 'MX'
TYPE_NS
public
mixed
TYPE_NS
= 'NS'
TYPE_PTR
public
mixed
TYPE_PTR
= 'PTR'
TYPE_SRV
public
mixed
TYPE_SRV
= 'SRV'
TYPE_TLSA
public
mixed
TYPE_TLSA
= 'TLSA'
TYPE_TXT
public
mixed
TYPE_TXT
= 'TXT'
OWNER_TYPE_DOMAIN
private
mixed
OWNER_TYPE_DOMAIN
= 'domain'
OWNER_TYPE_DOMAIN_ALIAS
private
mixed
OWNER_TYPE_DOMAIN_ALIAS
= 'domainAlias'
Methods
__construct()
public
__construct([int|null $recordId = null ]) : mixed
Parameters
- $recordId : int|null = null
Tags
Return values
mixed —availableTypes()
Return the list of available DNS record types
public
static availableTypes() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getById()
Return DNS record by ID.
public
static getById(int $recordId) : pm_Dns_Record
Parameters
- $recordId : int
Return values
pm_Dns_Record —getHost()
Return host name of DNS record.
public
getHost() : string|null
Return values
string|null —getId()
Return id of DNS record.
public
getId() : int|null
Return values
int|null —getOption()
Return option of DNS record.
public
getOption() : string|null
Return values
string|null —getTtl()
Return TTL of DNS record.
public
getTtl() : int|null
Return values
int|null —getType()
Return type of DNS record.
public
getType() : string|null
Return values
string|null —getValue()
Return value of DNS record.
public
getValue() : string|null
Return values
string|null —getZone()
Return DNS zone of DNS record.
public
getZone() : pm_Dns_Zone
Return values
pm_Dns_Zone —isTypeAvailable()
Return whether the DNS record type is available
public
static isTypeAvailable(string $type) : bool
Parameters
- $type : string
Tags
Return values
bool —remove()
Remove DNS record.
public
remove() : void
Return values
void —save()
Save DNS record.
public
save() : void
Return values
void —setHost()
Set name host of DNS record.
public
setHost(string $host) : pm_Dns_Record
Parameters
- $host : string
Return values
pm_Dns_Record —setOption()
Set option of DNS record.
public
setOption(string|null $option) : pm_Dns_Record
Parameters
- $option : string|null
Return values
pm_Dns_Record —setTtl()
Set TTL of DNS record.
public
setTtl(int|null $ttl) : pm_Dns_Record
Parameters
- $ttl : int|null
Return values
pm_Dns_Record —setType()
Set type of DNS record.
public
setType(string $type) : pm_Dns_Record
Parameters
- $type : string
Return values
pm_Dns_Record —setValue()
Set value of DNS record.
public
setValue(string $value) : pm_Dns_Record
Parameters
- $value : string
Return values
pm_Dns_Record —setZone()
Set DNS zone of Dns Record.
public
setZone(pm_Dns_Zone $zone) : $this
Parameters
- $zone : pm_Dns_Zone