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

Class: Net_GeoIP_DMA

Source Location: /Net_GeoIP-1.0.0/Net/GeoIP/DMA.php

Class Overview


Static class to handle mapping of DMA codes to metro regions.


Author(s):

Version:

  • $Revision: 288474 $

Methods


Inherited Variables

Inherited Methods


Class Details

[line 52]
Static class to handle mapping of DMA codes to metro regions.

Use this class with the dmaCode property of the Net_GeoIpLocation object.

  1.  $region = Net_GeoIPDMA::getMetroRegion($record->dmaCode);



[ Top ]


Method Detail

getDMACode   [line 307]

int getDMACode( string $metro)

Reverse lookup of DMA code if [exact] metro region name is known.
  • Return: DMA code, or false if not found.
  • Access: public

Parameters:

string   $metro     Metro region name.

[ Top ]

getMetroRegion   [line 289]

string getMetroRegion( int $dmaCode)

Lookup the metro region based on the provided DMA code.
  • Return: Metro region name.
  • Access: public

Parameters:

int   $dmaCode     The DMA code

[ Top ]

initialize   [line 65]

void initialize( )

Initialize
  • Access: public

[ Top ]


Documentation generated on Thu, 12 May 2011 12:30:03 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.