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

Class: Net_DNS2_RR_KX

Source Location: /Net_DNS2-1.3.2/Net/DNS2/RR/KX.php

Class Overview

Net_DNS2_RR
   |
   --Net_DNS2_RR_KX

KX Resource Record - RFC2230 section 3.1


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: Net_DNS2_RR

Net_DNS2_RR::__construct()
Constructor - builds a new Net_DNS2_RR object
Net_DNS2_RR::buildString()
builds an array of strings from an array of chunks of text split by spaces
Net_DNS2_RR::cleanString()
cleans up some RR data
Net_DNS2_RR::formatString()
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.
Net_DNS2_RR::fromString()
parses a standard RR format lines, as defined by rfc1035 (kinda)
Net_DNS2_RR::get()
returns a binary packed DNS RR object
Net_DNS2_RR::parse()
parses a binary packet, and returns the appropriate Net_DNS2_RR object, based on the RR type of the binary content.
Net_DNS2_RR::rrFromString()
abstract definition - parses a RR from a standard DNS config line
Net_DNS2_RR::rrGet()
abstract definition - returns a binary packet DNS RR object
Net_DNS2_RR::rrSet()
abstract definition - sets a Net_DNS2_RR from a Net_DNS2_Packet object
Net_DNS2_RR::rrToString()
abstract definition - method to return a RR as a string; not to be confused with the __toString() magic method.
Net_DNS2_RR::set()
builds a new Net_DNS2_RR object
Net_DNS2_RR::__toString()
magic __toString() method to return the Net_DNS2_RR object object as a string

Class Details

[line 73]
KX Resource Record - RFC2230 section 3.1

This class is almost identical to MX, except that the the exchanger domain is not compressed, it's added as a label

+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | PREFERENCE | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ / EXCHANGER / / / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+



[ Top ]


Class Variables

$exchange =

[line 83]

  • Access: public

Type:   mixed


[ Top ]

$preference =

[line 78]

  • Access: public

Type:   mixed


[ Top ]



Method Detail

rrFromString   [line 106]

boolean rrFromString( $rdata)

parses the rdata portion from a standard DNS config line
  • Access: protected

Overrides Net_DNS2_RR::rrFromString() (abstract definition - parses a RR from a standard DNS config line)

Parameters:

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

[ Top ]

rrGet   [line 156]

mixed rrGet( Net_DNS2_Packet &$packet)

returns the rdata portion of the DNS packet
  • Return: either returns a binary packed string or null on failure
  • Access: protected

Overrides Net_DNS2_RR::rrGet() (abstract definition - returns a binary packet DNS RR object)

Parameters:

Net_DNS2_Packet   &$packet     a Net_DNS2_Packet packet use for compressed names

[ Top ]

rrSet   [line 123]

boolean rrSet( Net_DNS2_Packet &$packet)

parses the rdata of the Net_DNS2_Packet object
  • Access: protected

Overrides Net_DNS2_RR::rrSet() (abstract definition - sets a Net_DNS2_RR from a Net_DNS2_Packet object)

Parameters:

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

[ Top ]

rrToString   [line 92]

string rrToString( )

method to return the rdata portion of the packet as a string
  • Access: protected

Overrides Net_DNS2_RR::rrToString() (abstract definition - method to return a RR as a string; not to be confused with the __toString() magic method.)
[ Top ]


Documentation generated on Sun, 01 Dec 2013 01:30:14 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.