Documentation

pm_Dns_Template_Record extends pm_Dns_Record
in package

Panel dns wrapper

Tags
since
18.0.33

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
Construct DNS template record in '<domain>' zone
availableTypes()  : array<string|int, mixed>
Return the list of available DNS record types
getById()  : pm_Dns_Template_Record
Return template of 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 template of 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()

Construct DNS template record in '<domain>' zone

public __construct() : mixed
Return values
mixed

availableTypes()

Return the list of available DNS record types

public static availableTypes() : array<string|int, mixed>
Tags
since
18.0.55
Return values
array<string|int, mixed>

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

isTypeAvailable()

Return whether the DNS record type is available

public static isTypeAvailable(string $type) : bool
Parameters
$type : string
Tags
since
18.0.55
Return values
bool

remove()

Remove template of DNS record.

public remove() : void
Return values
void

save()

Save DNS record.

public save() : void
Return values
void

Search results