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

Class: Net_GeoIP_DMA

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

Class Overview


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


Author(s):

Version:

  • $Revision: 1.1 $

Methods


Inherited Variables

Inherited Methods


Class Details

[line 42]
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 288]

int getDMACode( string $metro)

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

Parameters:

string   $metro     Metro region name.

[ Top ]

getMetroRegion   [line 272]

string getMetroRegion( int $dmaCode)

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

Parameters:

int   $dmaCode     

[ Top ]

initialize   [line 50]

void initialize( )

Holds DMA -> Metro mapping.

[ Top ]


Documentation generated on Fri, 01 Sep 2006 09:15:04 -0400 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.