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

Class: Net_GeoIP_DMA

Source Location: /Net_GeoIP-0.9.0alpha1/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);

  • Author: Hans Lellelid <hans@xmpl.org>
  • Version: $Revision: 1.1 $


[ 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.
  • Access: public

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.
  • Access: public

Parameters:

int   $dmaCode   — 

[ Top ]

initialize   [line 50]

void initialize( )

  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:20:12 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.