| [ Index ] |
|
Code source de Horde 3.1.3 |
[Code source] [Imprimer] [Statistiques]
Horde optimized interface to the MaxMind IP Address->Country listing.
| Author: | Michael Slusarz <slusarz@bigworm.colorado.edu> |
| Poids: | 357 lignes (13 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
NLS_GeoIP:: (10 méthodes):
singleton()
NLS_GeoIP()
_open()
countryIdByName()
countryCodeByName()
countryNameByName()
countryIdByAddr()
countryCodeByAddr()
countryNameByAddr()
_seekCountry()
| singleton($datafile) X-Ref |
| Returns a reference to the global NLS_GeoIP object, only creating it if it doesn't already exist. This method must be invoked as: $geoip = &GeoIP::singleton($datafile); param: string $datafile The location of the GeoIP database. return: object NLS_GeoIP The NLS_GeoIP instance. |
| NLS_GeoIP($datafile) X-Ref |
| Create a NLS_GeoIP instance (Constructor). param: string $datafile The location of the GeoIP database. |
| _open() X-Ref |
| Open the GeoIP database. return: boolean False on error. |
| countryIdByName($name) X-Ref |
| Returns the country ID for a hostname. param: string $name The hostname. return: integer The GeoIP country ID. |
| countryCodeByName($name) X-Ref |
| Returns the country abbreviation (2-letter) for a hostname. param: string $name The hostname. return: integer The country abbreviation. |
| countryNameByName($name) X-Ref |
| Returns the country name for a hostname. param: string $name The hostname. return: integer The country name. |
| countryIdByAddr($addr) X-Ref |
| Returns the country ID for an IP Address. param: string $addr The IP Address. return: integer The GeoIP country ID. |
| countryCodeByAddr($addr) X-Ref |
| Returns the country abbreviation (2-letter) for an IP Address. param: string $addr The IP Address. return: integer The country abbreviation. |
| countryNameByAddr($addr) X-Ref |
| Returns the country name for an IP address. param: string $addr The IP address. return: mixed The country name. |
| _seekCountry($ipnum) X-Ref |
| Finds a country by IP Address in the GeoIP database. param: string $ipnum The IP Address to search for. return: mixed The country ID or false if not found. |
| Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |