phpDocumentor Net_DNS
[ class tree: Net_DNS ] [ index: Net_DNS ] [ all elements ]

Class: Net_DNS_RR_LOC

Source Location: /qp_plugins/basic_antispam_plugin/Net/DNS/RR/LOC.php

Class Net_DNS_RR_LOC

Class Overview

License Information:

Net_DNS: A resolver library for PHP Copyright (c) 2002-2003 Eric Kilfoil eric@ypass.net Maintainers: Marco Kaiser <bate@php.net> Florian Anderiasch <fa@php.net> Ian Pye <ianbara@imap.cc>

PHP versions 4 and 5

LICENSE: This source file is subject to version 3.01 of the PHP license that is available through the world-wide-web at the following URI: http://www.php.net/license/3_01.txt. If you did not receive a copy of the PHP License and are unable to obtain it through the web, please send a note to license@php.net so we can mail you a copy immediately.

A representation of a resource record of type LOC

Located in /qp_plugins/basic_antispam_plugin/Net/DNS/RR/LOC.php [line 29]

Net_DNS_RR
   |
   --Net_DNS_RR_LOC
Author(s): API Tags:
See:  http://en.wikipedia.org/wiki/LOC_record
Filesource:  Source Code for this file

Information Tags:
Link:  http://pear.php.net/package/Net_DNS
License:  3.01

Properties

Methods

[ Top ]
Property Summary
mixed   $altitude  
mixed   $conv_deg  
mixed   $conv_min  
mixed   $conv_sec  
mixed   $data  
mixed   $default_horiz_pre  
mixed   $default_min  
mixed   $default_sec  
mixed   $default_size  
mixed   $default_vert_pre  
mixed   $degree_latitude  
mixed   $degree_longitude  
mixed   $ew_hem  
mixed   $hp  
mixed   $min_latitude  
mixed   $min_longitude  
mixed   $ns_hem  
mixed   $offset  
mixed   $parsed  
mixed   $pretty_print_string  
mixed   $raw_alt  
mixed   $raw_latitude  
mixed   $raw_longitude  
mixed   $reference_alt  
mixed   $reference_latlon  
mixed   $sec_latitude  
mixed   $sec_longitude  
mixed   $size  
mixed   $version  
mixed   $vp  

[ Top ]
Method Summary
Net_DNS_RR_LOC   Net_DNS_RR_LOC()   class constructor - RR(&$rro, $data, $offset = '')
void   latlon2dms()   Now with added side effects, setting values for the class, while returning a formatted string.
void   parse()   Net_DNS_RR_LOC::parse() Parses the $data field set in the constructor.
int   precsize_ntoval()  
int   precsize_valton()  
string   rdatastr()  
string   rr_rdata()  

[ Top ]
Properties
mixed   $altitude [line 63]

[ Top ]
mixed   $conv_deg = 3600000 [line 42]

[ Top ]
mixed   $conv_min = 60000 [line 41]

[ Top ]
mixed   $conv_sec = 1000 [line 40]

[ Top ]
mixed   $data [line 51]

[ Top ]
mixed   $default_horiz_pre = 10000 [line 48]

[ Top ]
mixed   $default_min = 0 [line 45]

[ Top ]
mixed   $default_sec = 0 [line 46]

[ Top ]
mixed   $default_size = 1 [line 47]

[ Top ]
mixed   $default_vert_pre = 10 [line 49]

[ Top ]
mixed   $degree_latitude [line 64]

[ Top ]
mixed   $degree_longitude [line 65]

[ Top ]
mixed   $ew_hem [line 71]

[ Top ]
mixed   $hp [line 59]

[ Top ]
mixed   $min_latitude [line 66]

[ Top ]
mixed   $min_longitude [line 67]

[ Top ]
mixed   $ns_hem [line 70]

[ Top ]
mixed   $offset [line 52]

[ Top ]
mixed   $parsed [line 77]

[ Top ]
mixed   $pretty_print_string [line 74]

[ Top ]
mixed   $raw_alt [line 57]

[ Top ]
mixed   $raw_latitude [line 55]

[ Top ]
mixed   $raw_longitude [line 56]

[ Top ]
mixed   $reference_alt = 10000000 [line 35]

[ Top ]
mixed   $reference_latlon = 2147483648 [line 37]

[ Top ]
mixed   $sec_latitude [line 68]

[ Top ]
mixed   $sec_longitude [line 69]

[ Top ]
mixed   $size [line 58]

[ Top ]
mixed   $version [line 80]

[ Top ]
mixed   $vp [line 60]

[ Top ]
Methods
Constructor Net_DNS_RR_LOC  [line 94]

  Net_DNS_RR_LOC Net_DNS_RR_LOC( $rro $rro, string $data, [int $offset = 0]  )

class constructor - RR(&$rro, $data, $offset = '')

Usage: $rr = new Net_DNS_RR_LOC($rro, $data, $offset); $rr->parse();

Parameters:
string   $data:  String to parse
int   $offset: 
$rro   $rro: 


[ Top ]
latlon2dms  [line 246]

  void latlon2dms( $rawmsec $rawmsec, $hems $hems, [bool $is_lat = false]  )

Now with added side effects, setting values for the class, while returning a formatted string.

Net_DNS_RR_LOC::latlon2dms($rawmsec, $hems, $is_lat) {{{

Parameters:
bool   $is_lat: 
$rawmsec   $rawmsec: 
$hems   $hems: 

Information Tags:
Todo:  This should not change class state

[ Top ]
parse  [line 113]

  void parse( )

Net_DNS_RR_LOC::parse() Parses the $data field set in the constructor.



[ Top ]
precsize_ntoval  [line 214]

  int precsize_ntoval( $prec $prec  )

Parameters:
$prec   $prec: 


[ Top ]
precsize_valton  [line 225]

  int precsize_valton( int $val  )

Parameters:
int   $val: 


[ Top ]
rdatastr  [line 162]

  string rdatastr( )



Redefinition of:
Net_DNS_RR::rdatastr()

[ Top ]
rr_rdata  [line 181]

  string rr_rdata( $packet $packet, $offset $offset  )

Parameters:
$packet   $packet: 
$offset   $offset: 


Redefinition of:
Net_DNS_RR::rr_rdata()

[ Top ]