GeoIP Locator
[ class tree: GeoIP Locator ] [ index: GeoIP Locator ] [ all elements ]

Class: GeoIPLocator

Source Location: /GeoIPLocator.class.php

Class Overview


IP Locator Class


Author(s):

  • Arlind Nushi

Version:

  • 1.0

Implements interfaces:

Methods



Class Details

[line 17]
IP Locator Class



Tags:

author:  Arlind Nushi
version:  1.0


[ Top ]


Class Methods


constructor __construct [line 35]

GeoIPLocator __construct( $ip $ip)

Constructor



Tags:

access:  public


Parameters:

$ip   $ip   - IPv4 Address

[ Top ]

method execTime [line 296]

Time execTime( )

Get execution time



Tags:

return:  in milliseconds
access:  public



Implementation of:
GeoIPLocatorInterface::execTime()
[ Top ]

method getCountryFlag [line 219]

Image getCountryFlag( [ $default_size = 256], [ $return_url = false])

Get Image location for a specified country



Tags:

return:  Location (url + relative location)
access:  public



Implementation of:
GeoIPLocatorInterface::getCountryFlag()

Parameters:

   $default_size  
   $return_url  

[ Top ]

method getIP [line 75]

IPv4 getIP( )

Get Current IP



Tags:

return:  address format
access:  public



Implementation of:
GeoIPLocatorInterface::getIP()
[ Top ]

method getIPInfo [line 143]

IPAddress getIPInfo( )

Get IP Information



Tags:

access:  public


[ Top ]

method getLocationMap [line 161]

JavaScript getLocationMap( [$width $width = 200], [$height $height = 140], [$zoom_level $zoom_level = 4], [ $dragable = false], [ $controller = false])

Get Location



Tags:

return:  Code for Google MAP using Google API
access:  public



Implementation of:
GeoIPLocatorInterface::getLocationMap()

Parameters:

$width   $width   - 200 pixels default
$height   $height   - 140 pixels default
$zoom_level   $zoom_level   - 4 default
   $dragable  
   $controller  

[ Top ]

method lookup [line 87]

void lookup( )

Lookup for IP address



Tags:

access:  public



Implementation of:
GeoIPLocatorInterface::lookup()
[ Top ]

method setIP [line 52]

void setIP( $ip $ip)

Set IP



Tags:

access:  public



Implementation of:
GeoIPLocatorInterface::setIP()

Parameters:

$ip   $ip   - IPv4 format

[ Top ]

method showDetails [line 271]

void showDetails( $template $template, [ $map_zoom_level = 7])

Parse IP details in HTML mode



Tags:

access:  public


Parameters:

$template   $template   - Template name
   $map_zoom_level  

[ Top ]


Documentation generated on Mon, 15 Feb 2010 21:00:48 +0100 by phpDocumentor 1.4.3