Net_DNS2
[ class tree: Net_DNS2 ] [ index: Net_DNS2 ] [ all elements ]

Class: Net_DNS2_RR

Source Location: /Net_DNS2-1.4.1/Net/DNS2/RR.php

Class Overview


This is the base class for DNS Resource Records


Author(s):

Variables

Methods


Child classes:

Net_DNS2_RR_PX
PX Resource Record - RFC2163 section 4
Net_DNS2_RR_RRSIG
RRSIG Resource Record - RFC4034 sction 3.1
Net_DNS2_RR_EUI48
EUI48 Resource Record - RFC7043 section 3.1
Net_DNS2_RR_AFSDB
AFSDB Resource Record - RFC1183 section 1
Net_DNS2_RR_A
A Resource Record - RFC1035 section 3.4.1
Net_DNS2_RR_MX
MX Resource Record - RFC1035 section 3.3.9
Net_DNS2_RR_DNSKEY
DNSKEY Resource Record - RFC4034 sction 2.1
Net_DNS2_RR_EUI64
EUI64 Resource Record - RFC7043 section 4.1
Net_DNS2_RR_RP
RP Resource Record - RFC1183 section 2.2
Net_DNS2_RR_L32
L32 Resource Record - RFC6742 section 2.2
Net_DNS2_RR_PTR
PTR Resource Record - RFC1035 section 3.3.12
Net_DNS2_RR_LOC
LOC Resource Record - RFC1876 section 2
Net_DNS2_RR_ANY
This is only used for generating an empty ANY RR.
Net_DNS2_RR_HINFO
HINFO Resource Record - RFC1035 section 3.3.2
Net_DNS2_RR_OPT
OPT Resource Record - RFC2929 section 3.1
Net_DNS2_RR_NSEC
NSEC Resource Record - RFC3845 section 2.1
Net_DNS2_RR_IPSECKEY
IPSECKEY Resource Record - RFC4025 section 2.1
Net_DNS2_RR_EID
EID Resource Record - undefined; the rdata is simply used as-is in it's binary format, so not process has to be done.
Net_DNS2_RR_L64
L64 Resource Record - RFC6742 section 2.3
Net_DNS2_RR_SIG
SIG Resource Record - RFC2535 section 4.1
Net_DNS2_RR_CNAME
CNAME Resource Record - RFC1035 section 3.3.1
Net_DNS2_RR_NSEC3PARAM
NSEC3PARAM Resource Record - RFC5155 section 4.2
Net_DNS2_RR_DS
DS Resource Record - RFC4034 sction 5.1
Net_DNS2_RR_RT
RT Resource Record - RFC1183 section 3.3
Net_DNS2_RR_CERT
CERT Resource Record - RFC4398 section 2
Net_DNS2_RR_SOA
SOA Resource Record - RFC1035 section 3.3.13
Net_DNS2_RR_APL
APL Resource Record - RFC3123
Net_DNS2_RR_TKEY
TKEY Resource Record - RFC 2930 section 2
Net_DNS2_RR_X25
X25 Resource Record - RFC1183 section 3.1
Net_DNS2_RR_ATMA
ATMA Resource Record
Net_DNS2_RR_SSHFP
SSHFP Resource Record - RFC4255 section 3.1
Net_DNS2_RR_ISDN
ISDN Resource Record - RFC1183 section 3.2
Net_DNS2_RR_CSYNC
CSYNC Resource Record - RFC 7477 seciond 2.1.1
Net_DNS2_RR_URI
URI Resource Record - http://tools.ietf.org/html/draft-faltstrom-uri-06
Net_DNS2_RR_NSEC3
NSEC3 Resource Record - RFC5155 section 3.2
Net_DNS2_RR_NAPTR
NAPTR Resource Record - RFC2915
Net_DNS2_RR_TLSA
TLSA Resource Record - RFC 6698
Net_DNS2_RR_NS
NS Resource Record - RFC1035 section 3.3.11
Net_DNS2_RR_TXT
TXT Resource Record - RFC1035 section 3.3.14
Net_DNS2_RR_NIMLOCK
NIMLOCK Resource Record - undefined; the rdata is simply used as-is in it's binary format, so not process has to be done.
Net_DNS2_RR_DHCID
DHCID Resource Record - RFC4701 section 3.1
Net_DNS2_RR_KX
KX Resource Record - RFC2230 section 3.1
Net_DNS2_RR_WKS
WKS Resource Record - RFC1035 section 3.4.2
Net_DNS2_RR_TSIG
TSIG Resource Record - RFC 2845
Net_DNS2_RR_DNAME
DNAME Resource Record - RFC2672 section 3
Net_DNS2_RR_HIP
HIP Resource Record - RFC5205 section 5
Net_DNS2_RR_NID
NID Resource Record - RFC6742 section 2.1
Net_DNS2_RR_SRV
SRV Resource Record - RFC2782
Net_DNS2_RR_NSAP
NSAP Resource Record - RFC1706
Net_DNS2_RR_TALINK
TALINK Resource Record - DNSSEC Trust Anchor
Net_DNS2_RR_LP
LP Resource Record - RFC6742 section 2.4
Net_DNS2_RR_AAAA
A Resource Record - RFC1035 section 3.4.1
Net_DNS2_RR_OPENPGPKEY
OPENPGPKEY Resource Record - https://tools.ietf.org/html/draft-ietf-dane-openpgpkey-01
Net_DNS2_RR_CAA
CAA Resource Record - http://tools.ietf.org/html/draft-ietf-pkix-caa-03

Inherited Variables

Inherited Methods


Class Details

[line 92]
This is the base class for DNS Resource Records

Each resource record type (defined in RR/*.php) extends this class for base functionality.

This class handles parsing and constructing the common parts of the DNS resource records, while the RR specific functionality is handled in each child class.

DNS resource record format - RFC1035 section 4.1.3

  1. 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | | / / / NAME / | | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | TYPE | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | CLASS | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | TTL | | | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | RDLENGTH | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| / RDATA / / / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+



[ Top ]


Class Variables

$class =

[line 107]

  • Access: public

Type:   mixed


[ Top ]

$name =

[line 97]

  • Access: public

Type:   mixed


[ Top ]

$rdata =

[line 122]

  • Access: public

Type:   mixed


[ Top ]

$rdlength =

[line 117]

  • Access: public

Type:   mixed


[ Top ]

$ttl =

[line 112]

  • Access: public

Type:   mixed


[ Top ]

$type =

[line 102]

  • Access: public

Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 181]

Net_DNS2_RR __construct( [Net_DNS2_Packet &$packet = null], [array $rr = null])

Constructor - builds a new Net_DNS2_RR object
  • Throws: Net_DNS2_Exception
  • Access: public

Overridden in child classes as:

Net_DNS2_RR_OPT::__construct()
Constructor - builds a new Net_DNS2_RR_OPT object; normally you wouldn't call this directly, but OPT RR's are a little different
Net_DNS2_RR_CERT::__construct()
we have our own constructor so that we can load our certificate information for parsing.

Parameters:

Net_DNS2_Packet   &$packet   —  a Net_DNS2_Packet packet or null to create an empty object
array   $rr   —  an array with RR parse values or null to create an empty object

[ Top ]

buildString   [line 242]

array buildString( array $chunks)

builds an array of strings from an array of chunks of text split by spaces
  • Access: protected

Parameters:

array   $chunks   —  an array of chunks of text split by spaces

[ Top ]

cleanString   [line 491]

string cleanString( string $data)

cleans up some RR data
  • Return: returns the cleaned string
  • Access: public

Parameters:

string   $data   —  the text string to clean

[ Top ]

formatString   [line 228]

string formatString( string $string)

return a formatted string; if a string has spaces in it, then return it with double quotes around it, otherwise, return it as it was passed in.
  • Access: protected

Parameters:

string   $string   —  the string to format

[ Top ]

fromString   [line 515]

mixed fromString( string $line)

parses a standard RR format lines, as defined by rfc1035 (kinda)

In our implementation, the domain *must* be specified- format must be

<name> [<ttl>] [<class>] <type> <rdata> or <name> [<class>] [<ttl>] <type> <rdata>

name, title, class and type are parsed by this function, rdata is passed to the RR specific classes for parsing.

  • Return: returns a new Net_DNS2_RR_* object for the given RR
  • Throws: Net_DNS2_Exception
  • Access: public

Parameters:

string   $line   —  a standard DNS config line

[ Top ]

get   [line 341]

string get( Net_DNS2_Packet &$packet)

returns a binary packed DNS RR object
  • Throws: Net_DNS2_Exception
  • Access: public

Parameters:

Net_DNS2_Packet   &$packet   —  a Net_DNS2_Packet packet used for compressing names

[ Top ]

parse   [line 414]

mixed parse( Net_DNS2_Packet &$packet)

parses a binary packet, and returns the appropriate Net_DNS2_RR object, based on the RR type of the binary content.
  • Return: returns a new Net_DNS2_RR_* object for the given RR
  • Throws: Net_DNS2_Exception
  • Access: public

Parameters:

Net_DNS2_Packet   &$packet   —  a Net_DNS2_Packet packet used for decompressing names

[ Top ]

rrFromString   [line 143]

boolean rrFromString( array $rdata)

abstract definition - parses a RR from a standard DNS config line
  • Abstract:
  • Access: protected

Overridden in child classes as:

Net_DNS2_RR_PX::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_RRSIG::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_EUI48::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_AFSDB::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_A::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_MX::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_DNSKEY::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_EUI64::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_RP::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_L32::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_PTR::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_LOC::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_ANY::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_HINFO::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_OPT::rrFromString()
parses the rdata portion from a standard DNS config line. There is no definition for parsing a OPT RR by string- this is just here to validate the binary parsing / building routines.
Net_DNS2_RR_NSEC::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_IPSECKEY::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_EID::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_L64::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_SIG::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_CNAME::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_NSEC3PARAM::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_DS::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_RT::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_CERT::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_SOA::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_APL::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_TKEY::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_X25::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_ATMA::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_SSHFP::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_ISDN::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_CSYNC::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_URI::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_NSEC3::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_NAPTR::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_TLSA::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_NS::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_TXT::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_NIMLOCK::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_DHCID::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_KX::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_WKS::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_TSIG::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_DNAME::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_HIP::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_NID::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_SRV::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_NSAP::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_TALINK::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_LP::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_AAAA::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_OPENPGPKEY::rrFromString()
parses the rdata portion from a standard DNS config line
Net_DNS2_RR_CAA::rrFromString()
parses the rdata portion from a standard DNS config line

Parameters:

array   $rdata   —  a string split line of values for the rdata

[ Top ]

rrGet   [line 167]

mixed rrGet( Net_DNS2_Packet &$packet)

abstract definition - returns a binary packet DNS RR object
  • Return: either returns a binary packed string or null on failure
  • Abstract:
  • Access: protected

Overridden in child classes as:

Net_DNS2_RR_PX::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_RRSIG::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_EUI48::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_AFSDB::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_A::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_MX::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_DNSKEY::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_EUI64::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_RP::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_L32::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_PTR::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_LOC::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_ANY::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_HINFO::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_OPT::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_NSEC::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_IPSECKEY::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_EID::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_L64::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_SIG::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_CNAME::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_NSEC3PARAM::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_DS::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_RT::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_CERT::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_SOA::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_APL::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_TKEY::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_X25::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_ATMA::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_SSHFP::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_ISDN::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_CSYNC::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_URI::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_NSEC3::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_NAPTR::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_TLSA::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_NS::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_TXT::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_NIMLOCK::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_DHCID::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_KX::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_WKS::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_TSIG::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_DNAME::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_HIP::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_NID::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_SRV::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_NSAP::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_TALINK::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_LP::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_AAAA::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_OPENPGPKEY::rrGet()
returns the rdata portion of the DNS packet
Net_DNS2_RR_CAA::rrGet()
returns the rdata portion of the DNS packet

Parameters:

Net_DNS2_Packet   &$packet   —  a Net_DNS2_Packet packet use for compressed names

[ Top ]

rrSet   [line 154]

boolean rrSet( Net_DNS2_Packet &$packet)

abstract definition - sets a Net_DNS2_RR from a Net_DNS2_Packet object
  • Abstract:
  • Access: protected

Overridden in child classes as:

Net_DNS2_RR_PX::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_RRSIG::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_EUI48::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_AFSDB::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_A::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_MX::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_DNSKEY::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_EUI64::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_RP::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_L32::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_PTR::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_LOC::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_ANY::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_HINFO::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_OPT::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_NSEC::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_IPSECKEY::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_EID::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_L64::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_SIG::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_CNAME::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_NSEC3PARAM::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_DS::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_RT::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_CERT::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_SOA::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_APL::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_TKEY::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_X25::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_ATMA::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_SSHFP::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_ISDN::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_CSYNC::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_URI::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_NSEC3::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_NAPTR::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_TLSA::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_NS::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_TXT::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_NIMLOCK::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_DHCID::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_KX::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_WKS::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_TSIG::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_DNAME::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_HIP::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_NID::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_SRV::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_NSAP::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_TALINK::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_LP::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_AAAA::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_OPENPGPKEY::rrSet()
parses the rdata of the Net_DNS2_Packet object
Net_DNS2_RR_CAA::rrSet()
parses the rdata of the Net_DNS2_Packet object

Parameters:

Net_DNS2_Packet   &$packet   —  a Net_DNS2_Packet packet to parse the RR from

[ Top ]

rrToString   [line 132]

string rrToString( )

abstract definition - method to return a RR as a string; not to be confused with the __toString() magic method.
  • Abstract:
  • Access: protected

Overridden in child classes as:

Net_DNS2_RR_PX::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_RRSIG::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_EUI48::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_AFSDB::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_A::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_MX::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_DNSKEY::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_EUI64::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_RP::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_L32::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_PTR::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_LOC::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_ANY::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_HINFO::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_OPT::rrToString()
method to return the rdata portion of the packet as a string. There is no defintion for returning an OPT RR by string- this is just here to validate the binary parsing / building routines.
Net_DNS2_RR_NSEC::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_IPSECKEY::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_EID::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_L64::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_SIG::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_CNAME::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_NSEC3PARAM::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_DS::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_RT::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_CERT::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_SOA::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_APL::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_TKEY::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_X25::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_ATMA::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_SSHFP::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_ISDN::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_CSYNC::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_URI::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_NSEC3::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_NAPTR::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_TLSA::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_NS::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_TXT::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_NIMLOCK::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_DHCID::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_KX::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_WKS::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_TSIG::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_DNAME::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_HIP::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_NID::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_SRV::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_NSAP::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_TALINK::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_LP::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_AAAA::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_OPENPGPKEY::rrToString()
method to return the rdata portion of the packet as a string
Net_DNS2_RR_CAA::rrToString()
method to return the rdata portion of the packet as a string

[ Top ]

set   [line 308]

boolean set( Net_DNS2_Packet &$packet, array $rr)

builds a new Net_DNS2_RR object
  • Throws: Net_DNS2_Exception
  • Access: public

Parameters:

Net_DNS2_Packet   &$packet   —  a Net_DNS2_Packet packet or null to create an empty object
array   $rr   —  an array with RR parse values or null to create an empty object

[ Top ]

__toString   [line 212]

string __toString( )

magic __toString() method to return the Net_DNS2_RR object object as a string
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 16:01:45 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.