Compare commits

..

51 Commits

Author SHA1 Message Date
Gregory Oschwald
20af46a696 Updated for v2.1.1 2014-12-03 07:00:27 -08:00
Gregory Oschwald
0d5990729e Updated for v2.1.0 2014-10-29 10:12:11 -07:00
Gregory Oschwald
25e27c5bb2 Updated for v2.1.0 2014-10-29 10:08:50 -07:00
Gregory Oschwald
b6c01c8eef Updated for v2.0.1 2014-10-28 14:20:50 -07:00
Gregory Oschwald
cf68b88021 Ignore apigen.neon 2014-10-28 14:20:23 -07:00
Gregory Oschwald
5e92937764 Ignore apigen.phar 2014-10-28 14:19:12 -07:00
Gregory Oschwald
b5c35cb75a Updated for v2.0.0 2014-09-22 10:49:59 -07:00
Gregory Oschwald
1e938c6382 Updated for v0.9.0 2014-09-15 10:16:36 -07:00
Gregory Oschwald
c1fb69f2d6 Updated for v0.8.1 2014-09-12 07:16:05 -07:00
Gregory Oschwald
6f8639cb25 Updated for v0.8.0 2014-09-10 12:43:24 -07:00
Gregory Oschwald
5edea69496 Updated for v0.8.0 2014-09-10 12:42:28 -07:00
Gregory Oschwald
8e55f5cead Fixed doc generation 2014-07-22 10:48:45 -07:00
Gregory Oschwald
1f60692531 Updated for v0.7.0 2014-07-22 09:30:38 -07:00
Gregory Oschwald
165a8d6298 Updated for v0.7.0 2014-07-22 09:25:05 -07:00
Gregory Oschwald
28fc731c5c Clean up page template 2014-06-23 08:15:13 -07:00
Gregory Oschwald
20a397f81d Make all comments darker 2014-06-23 08:10:57 -07:00
Gregory Oschwald
851d4245d1 Make comments darker 2014-06-23 08:09:23 -07:00
Gregory Oschwald
e3bb1d2550 switch back to github theme 2014-06-23 08:06:28 -07:00
Gregory Oschwald
fe7de83772 Fix theme 2014-06-23 08:03:59 -07:00
Gregory Oschwald
e950032594 Try another theme 2014-06-23 08:01:31 -07:00
Gregory Oschwald
f65abd96ed Update style 2014-06-23 07:58:54 -07:00
Gregory Oschwald
b35c54cb20 Enable pygments 2014-06-23 07:55:23 -07:00
Gregory Oschwald
0a93d36098 Actually add stylesheet 2014-06-23 07:49:56 -07:00
Gregory Oschwald
f4eb71dee7 Update stylesheets to include highlighter 2014-06-23 07:39:27 -07:00
Gregory Oschwald
54890e4ec3 Updated for v0.6.1 2014-05-03 09:22:09 -07:00
Gregory Oschwald
1f0b4f371d Updated for v0.6.0 2014-02-19 08:39:21 -08:00
Gregory Oschwald
a507444a92 Updated for v0.5.0 2013-10-21 11:15:29 -07:00
Gregory Oschwald
725786f53c Test change 2013-10-11 12:04:50 -07:00
Gregory Oschwald
cbffa448cd Updated for v0.4.0 2013-07-16 12:40:45 -07:00
Gregory Oschwald
171f261684 Updated for v0.3.0 2013-07-12 07:03:22 -07:00
Gregory Oschwald
8f11fee8d8 Updated for v0.2.1 2013-06-10 09:44:51 -07:00
Gregory Oschwald
76ccab7e12 Updated for v0.2.0 2013-05-29 07:46:25 -07:00
Gregory Oschwald
c3bdf27f19 Updated for v0.2.0 2013-05-29 07:41:50 -07:00
Gregory Oschwald
636e60b375 Updated for v0.1.1 2013-05-24 19:37:17 -07:00
Gregory Oschwald
5eceb52b26 Updated for v0.1.1 2013-05-24 19:35:55 -07:00
Gregory Oschwald
b6148eb70b Switched PHP and Java to use identical template 2013-05-24 19:33:58 -07:00
Gregory Oschwald
8c22ddf97d Updated for v0.1.1 2013-05-24 14:35:12 -07:00
Gregory Oschwald
397897a6e0 Made the top links more relevant 2013-05-24 14:34:59 -07:00
Gregory Oschwald
082cb36567 Updated for v0.1.1 2013-05-24 14:31:13 -07:00
Gregory Oschwald
e33e3805af Updated for v0.1.1 2013-05-24 14:29:46 -07:00
Gregory Oschwald
6872994b4f Updated for v0.1.1 2013-05-24 14:20:57 -07:00
Gregory Oschwald
fba27a5a80 Added GitHub link 2013-05-24 14:20:23 -07:00
Gregory Oschwald
1c0b9c9544 Updated for v0.1.1 2013-05-24 14:18:19 -07:00
Gregory Oschwald
47dad9e4b6 Changed tab names 2013-05-24 14:18:05 -07:00
Gregory Oschwald
26e44def1e Updated for v0.1.1 2013-05-24 13:39:11 -07:00
Gregory Oschwald
85235ab3b9 Symbolic links don't work with GH pages 2013-05-24 13:26:40 -07:00
Gregory Oschwald
e3dcba323e Test whitespace change 2013-05-24 13:13:35 -07:00
Gregory Oschwald
3974094842 Updated template 2013-05-24 13:02:25 -07:00
Gregory Oschwald
c4899836c3 Updated for v0.1.1 2013-05-24 12:58:46 -07:00
Gregory Oschwald
848d7ad629 Test commit 2013-05-24 12:50:44 -07:00
Gregory Oschwald
dab1fc9857 gh-pages regen 2013-05-24 12:09:48 -07:00
1209 changed files with 251069 additions and 3484 deletions

11
.gitignore vendored
View File

@ -1,14 +1,11 @@
_site _site/
.gh-pages bin/
.idea apigen.neon
GeoLite2-City.mmdb
apigen.phar apigen.phar
box.phar
build
composer.lock composer.lock
composer.phar composer.phar
phpunit.xml phpunit.xml
geoip2-php.sublime-*
vendor/ vendor/
*.sw? *.sw?
t.php
*.old *.old

3
.gitmodules vendored
View File

@ -1,3 +0,0 @@
[submodule "maxmind-db"]
path = maxmind-db
url = git://github.com/maxmind/MaxMind-DB.git

View File

@ -4,18 +4,16 @@ php:
- 5.3 - 5.3
- 5.4 - 5.4
- 5.5 - 5.5
- 5.6
- hhvm
before_install: before_install:
- composer self-update - composer self-update
- composer install --dev -n --prefer-source - composer install --dev -n --prefer-source
- if [ "5.5" == $TRAVIS_PHP_VERSION ]; then pyrus install pear/PHP_CodeSniffer; fi - pyrus install pear/PHP_CodeSniffer
- phpenv rehash - phpenv rehash
script: script:
- mkdir -p build/logs - mkdir -p build/logs
- if [ "5.5" == $TRAVIS_PHP_VERSION ]; then phpcs --standard=PSR2 src/; fi - phpcs --standard=PSR2 src/
- phpunit -c phpunit.xml.dist - phpunit -c phpunit.xml.dist
after_script: after_script:

View File

@ -1,139 +0,0 @@
CHANGELOG
=========
2.1.1 (2014-12-03)
------------------
* The 2.1.0 Phar builds included a shebang line, causing issues when loading
it as a library. This has been corrected. GitHub #33.
2.1.0 (2014-10-29)
------------------
* Update ApiGen dependency to version that isn't broken on case sensitive
file systems.
* Added support for the GeoIP2 Anonymous IP database. The
`GeoIP2\Database\Reader` class now has an `anonymousIp` method which returns
a `GeoIP2\Model\AnonymousIp` object.
* Boolean attributes like those in the `GeoIP2\Record\Traits` class now return
`false` instead of `null` when they were not true.
2.0.0 (2014-09-22)
------------------
* First production release.
0.9.0 (2014-09-15)
------------------
* IMPORTANT: The deprecated `omni()` and `cityIspOrg()` methods have been
removed from `GeoIp2\WebService\Client`.
0.8.1 (2014-09-12)
------------------
* The check added to the `GeoIP2\Database\Reader` lookup methods in 0.8.0 did
not work with the GeoIP2 City Database Subset by Continent with World
Countries. This has been fixed. Fixes GitHub issue #23.
0.8.0 (2014-09-10)
------------------
* The `GeoIp2\Database\Reader` lookup methods (e.g., `city()`, `isp()`) now
throw a `BadMethodCallException` if they are used with a database that
does not match the method. In particular, doing a `city()` lookup on a
GeoIP2 Country database will result in an exception, and vice versa.
* A `metadata()` method has been added to the `GeoIP2\Database\Reader` class.
This returns a `MaxMind\Db\Reader\Metadata` class with information about the
database.
* The name attribute was missing from the RepresentedCountry class.
0.7.0 (2014-07-22)
------------------
* The web service client API has been updated for the v2.1 release of the web
service. In particular, the `cityIspOrg` and `omni` methods on
`GeoIp2\WebService\Client` should be considered deprecated. The `city`
method now provides all of the data formerly provided by `cityIspOrg`, and
the `omni` method has been replaced by the `insights` method.
* Support was added for GeoIP2 Connection Type, Domain and ISP databases.
0.6.3 (2014-05-12)
------------------
* With the previous Phar builds, some users received `phar error: invalid url
or non-existent phar` errors. The correct alias is now used for the Phar,
and this should no longer be an issue.
0.6.2 (2014-05-08)
------------------
* The Phar build was broken with Guzzle 3.9.0+. This has been fixed.
0.6.1 (2014-05-01)
------------------
* This API now officially supports HHVM.
* The `maxmind-db/reader` dependency was updated to a version that does not
require BC Math.
* The Composer compatibility autoload rules are now targeted more narrowly.
* A `box.json` file is included to build a Phar package.
0.6.0 (2014-02-19)
------------------
* This API is now licensed under the Apache License, Version 2.0.
* Model and record classes now implement `JsonSerializable`.
* `isset` now works with model and record classes.
0.5.0 (2013-10-21)
------------------
* Renamed $languages constructor parameters to $locales for both the Client
and Reader classes.
* Documentation and code clean-up (Ben Morel).
* Added the interface `GeoIp2\ProviderInterface`, which is implemented by both
`\GeoIp2\Database\Reader` and `\GeoIp2\WebService\Client`.
0.4.0 (2013-07-16)
------------------
* This is the first release with the GeoIP2 database reader. Please see the
`README.md` file and the `\GeoIp2\Database\Reader` class.
* The general exception classes were replaced with specific exception classes
representing particular types of errors, such as an authentication error.
0.3.0 (2013-07-12)
------------------
* In namespaces and class names, "GeoIP2" was renamed to "GeoIp2" to improve
consistency.
0.2.1 (2013-06-10)
------------------
* First official beta release.
* Documentation updates and corrections.
0.2.0 (2013-05-29)
------------------
* `GenericException` was renamed to `GeoIP2Exception`.
* We now support more languages. The new languages are de, es, fr, and pt-BR.
* The REST API now returns a record with data about your account. There is
a new `GeoIP\Records\MaxMind` class for this data.
* The `continentCode` attribute on `Continent` was renamed to `code`.
* Documentation updates.
0.1.1 (2013-05-14)
------------------
* Updated Guzzle version requirement.
* Fixed Composer example in README.md.
0.1.0 (2013-05-13)
------------------
* Initial release.

202
LICENSE
View File

@ -1,202 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

5
_config.yml Normal file
View File

@ -0,0 +1,5 @@
auto: true
pygments: true
lsi: true
markdown: redcarpet
permalink: /title.html

48
_layouts/default.html Normal file
View File

@ -0,0 +1,48 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="">
<meta name="author" content="MaxMind, Inc.">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="//www.maxmind.com/css/maxmind.css" rel="stylesheet">
<link rel="stylesheet" href="stylesheets/pygments.css"/>
<link rel="shortcut icon" href="//dev.maxmind.com/static/favicon.ico">
<title>{{ page.title }}</title>
</head>
<body>
<div class="container">
<div class="row-fluid">
<div class="span7">
<ul class="nav nav-tabs">
<li class="active">
<a href="index.html">Overview</a>
</li>
<li>
<a href="doc/{{ page.version }}/">API</a>
</li>
<li>
<a href="https://github.com/maxmind/GeoIP2-{{ page.language }}">GitHub</a>
</li>
<li>
<a href="http://dev.maxmind.com/geoip/geoip2/web-services">Web Services</a>
</li>
<li>
<a href="http://www.maxmind.com">MaxMind</a>
</li>
</ul>
</div>
</div>
{{ content }}
</div>
</body>
</html>

View File

@ -1,26 +0,0 @@
#!/usr/bin/env php
<?php
require_once '../vendor/autoload.php';
use GeoIp2\Database\Reader;
use GeoIp2\Exception\AddressNotFoundException;
$reader = new Reader('GeoLite2-City.mmdb');
$count = 40000;
$startTime = microtime(true);
for ($i = 0; $i < $count; $i++) {
$ip = long2ip(rand(0, pow(2, 32) -1));
try {
$t = $reader->city($ip);
} catch (AddressNotFoundException $e) {
}
if ($i % 1000 == 0) {
print($i . ' ' . $ip . "\n");
}
}
$endTime = microtime(true);
$duration = $endTime - $startTime;
print('Requests per second: ' . $count / $duration . "\n");

View File

@ -1,36 +0,0 @@
{
"alias": "geoip2.phar",
"main": "phar-stub.php",
"output": "geoip2.phar",
"compactors": [
"Herrera\\Box\\Compactor\\Composer",
"Herrera\\Box\\Compactor\\Json",
"Herrera\\Box\\Compactor\\Php"
],
"files": [
"LICENSE"
],
"finder": [
{
"name": [
"LICENSE",
"LICENSE.*",
"*.php",
"*.pem",
"*.pem.md5"
],
"exclude": [
"phpunit",
"satooshi",
"Tests",
"tests",
"yaml"
],
"in": "vendor"
}
],
"directories": ["compat", "src/"],
"git-version": "git-version",
"shebang": false,
"stub": true
}

View File

@ -1,13 +0,0 @@
<?php
/**
* This interface exists to provide backwards compatibility with PHP 5.3
*/
interface JsonSerializable
{
/**
* Returns data that can be serialized by json_encode
*
*/
public function jsonSerialize();
}

View File

@ -1,30 +0,0 @@
{
"name": "geoip2/geoip2",
"description": "MaxMind GeoIP2 PHP API",
"keywords": ["geoip", "geoip2", "geolocation", "ip", "maxmind"],
"homepage": "https://github.com/maxmind/GeoIP2-php",
"type": "library",
"license": "Apache-2.0",
"authors": [
{
"name": "Gregory J. Oschwald",
"email": "goschwald@maxmind.com",
"homepage": "http://www.maxmind.com/"
}
],
"require": {
"guzzle/guzzle": "3.*",
"maxmind-db/reader": "~1.0",
"php": ">=5.3.1"
},
"require-dev": {
"phpunit/phpunit": "4.2.*",
"satooshi/php-coveralls": "dev-master"
},
"autoload": {
"psr-0": {
"GeoIp2": "src/",
"JsonSerializable": "compat/"
}
}
}

View File

@ -1,15 +0,0 @@
#!/usr/bin/env php
<?php
require_once 'geoip2.phar';
use GeoIp2\Database\Reader;
$reader = new Reader('maxmind-db/test-data/GeoIP2-City-Test.mmdb');
$record = $reader->city('81.2.69.160');
if ( $record->country->isoCode === 'GB' ) {
exit(0);
}
print('Problem with Phar!');
exit(1);

View File

@ -1,112 +0,0 @@
#!/bin/bash
set -e
TAG=$1
if [ -z $TAG ]; then
echo "Please specify a tag"
exit 1
fi
if [ -f geoip2.phar ]; then
rm geoip2.phar
fi
if [ -n "$(git status --porcelain)" ]; then
echo ". is not clean." >&2
exit 1
fi
if [ -d vendor ]; then
rm -fr vendor
fi
php composer.phar self-update
php composer.phar update --no-dev
if [ ! -f box.phar ]; then
wget -O box.phar "https://github.com/box-project/box2/releases/download/2.5.0/box-2.5.0.phar"
fi
php box.phar build
PHAR_TEST=$(./dev-bin/phar-test.php)
if [[ -n $PHAR_TEST ]]; then
echo "Phar test outputed non-empty string: $PHAR_TEST"
exit 1
fi
# Download test deps
php composer.phar update
./vendor/bin/phpunit
if [ ! -d .gh-pages ]; then
echo "Checking out gh-pages in .gh-pages"
git clone -b gh-pages git@git.maxmind.com:GeoIP2-php .gh-pages
pushd .gh-pages
else
echo "Updating .gh-pages"
pushd .gh-pages
git pull
fi
if [ -n "$(git status --porcelain)" ]; then
echo ".gh-pages is not clean" >&2
exit 1
fi
# We no longer have apigen as a dependency in Composer as releases are
# sporadically deleted upstream and compatibility is often broken on patch
# releases.
if [ ! -f apigen.phar ]; then
wget -O apigen.phar "https://github.com/apigen/apigen/releases/download/v4.0.0-RC3/apigen-4.0.0-RC3.phar"
fi
cat <<EOF > apigen.neon
destination: doc/$TAG
source:
- ../src
title: "GeoIP2 PHP API $TAG"
EOF
php apigen.phar generate
PAGE=index.md
cat <<EOF > $PAGE
---
layout: default
title: MaxMind GeoIP2 PHP API
language: php
version: $TAG
---
EOF
cat ../README.md >> $PAGE
git add doc/
git commit -m "Updated for $TAG" -a
read -e -p "Push to origin? " SHOULD_PUSH
if [ "$SHOULD_PUSH" != "y" ]; then
echo "Aborting"
exit 1
fi
# If we don't push directly to github, the page doesn't get built for some
# reason.
git push git@github.com:maxmind/GeoIP2-php.git
git push
popd
git tag -a $TAG
git push
git push --tags

123
doc/v0.1.0/404.html Normal file
View File

@ -0,0 +1,123 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>Page not found</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Model.City.html">GeoIP2\Model\City</a></li>
<li><a href="class-GeoIP2.Model.CityIspOrg.html">GeoIP2\Model\CityIspOrg</a></li>
<li><a href="class-GeoIP2.Model.Country.html">GeoIP2\Model\Country</a></li>
<li><a href="class-GeoIP2.Model.Omni.html">GeoIP2\Model\Omni</a></li>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">GeoIP2\Record\AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">GeoIP2\Record\AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">GeoIP2\Record\City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">GeoIP2\Record\Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">GeoIP2\Record\Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">GeoIP2\Record\Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">GeoIP2\Record\MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">GeoIP2\Record\Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">GeoIP2\Record\RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">GeoIP2\Record\Traits</a></li>
<li><a href="class-GeoIP2.WebService.Client.html">GeoIP2\WebService\Client</a></li>
</ul>
<h3>Exceptions</h3>
<ul>
<li><a href="class-Exception.html">Exception</a></li>
<li><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2\Exception\GeoIP2Exception</a></li>
<li><a href="class-GeoIP2.Exception.HttpException.html">GeoIP2\Exception\HttpException</a></li>
<li><a href="class-GeoIP2.Exception.WebServiceException.html">GeoIP2\Exception\WebServiceException</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<span>Namespace</span> </li>
<li>
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content">
<h1>Page not found</h1>
<p>The requested page could not be found.</p>
<p>You have probably clicked on a link that is outdated and points to a page that does not exist any more or you have made an typing error in the address.</p>
<p>To continue please try to find requested page in the menu, take a look at <a href="tree.html">the tree view</a> of the whole project or use search field on the top.</p>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,506 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class Exception</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li class="active"><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Exceptions</h3>
<ul>
<li class="active"><a href="class-Exception.html">Exception</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-PHP.html" title="Summary of PHP"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class Exception</h1>
<div>
<h4>Direct known subclasses</h4>
<a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2\Exception\GeoIP2Exception</a>
</div>
<div>
<h4>Indirect known subclasses</h4>
<a href="class-GeoIP2.Exception.HttpException.html">GeoIP2\Exception\HttpException</a>,
<a href="class-GeoIP2.Exception.WebServiceException.html">GeoIP2\Exception\WebServiceException</a>
</div>
<div class="info">
<b>PHP Extension:</b> <a href="http://php.net/manual" title="Go to PHP documentation">Core</a><br />
<b>Documented at</b> <a href="http://php.net/manual/class.exception.php" title="Go to PHP documentation">php.net</a><br />
</div>
<table class="summary" id="methods">
<caption>Methods summary</caption>
<tr data-order="__construct" id="___construct">
<td class="attributes"><code>
public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#___construct">#</a>
<code><a href="http://php.net/manual/exception.construct.php" title="Go to PHP documentation">__construct</a>( <span>mixed <var>$message</var></span>, <span>mixed <var>$code</var></span>, <span>mixed <var>$previous</var></span> )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
<tr data-order="getMessage" id="_getMessage">
<td class="attributes"><code>
final public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_getMessage">#</a>
<code><a href="http://php.net/manual/exception.getmessage.php" title="Go to PHP documentation">getMessage</a>( )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
<tr data-order="getCode" id="_getCode">
<td class="attributes"><code>
final public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_getCode">#</a>
<code><a href="http://php.net/manual/exception.getcode.php" title="Go to PHP documentation">getCode</a>( )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
<tr data-order="getFile" id="_getFile">
<td class="attributes"><code>
final public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_getFile">#</a>
<code><a href="http://php.net/manual/exception.getfile.php" title="Go to PHP documentation">getFile</a>( )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
<tr data-order="getLine" id="_getLine">
<td class="attributes"><code>
final public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_getLine">#</a>
<code><a href="http://php.net/manual/exception.getline.php" title="Go to PHP documentation">getLine</a>( )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
<tr data-order="getTrace" id="_getTrace">
<td class="attributes"><code>
final public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_getTrace">#</a>
<code><a href="http://php.net/manual/exception.gettrace.php" title="Go to PHP documentation">getTrace</a>( )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
<tr data-order="getPrevious" id="_getPrevious">
<td class="attributes"><code>
final public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_getPrevious">#</a>
<code><a href="http://php.net/manual/exception.getprevious.php" title="Go to PHP documentation">getPrevious</a>( )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
<tr data-order="getTraceAsString" id="_getTraceAsString">
<td class="attributes"><code>
final public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_getTraceAsString">#</a>
<code><a href="http://php.net/manual/exception.gettraceasstring.php" title="Go to PHP documentation">getTraceAsString</a>( )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
<tr data-order="__toString" id="___toString">
<td class="attributes"><code>
public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#___toString">#</a>
<code><a href="http://php.net/manual/exception.tostring.php" title="Go to PHP documentation">__toString</a>( )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
</table>
<table class="summary" id="properties">
<caption>Properties summary</caption>
<tr data-order="message" id="$message">
<td class="attributes"><code>
protected
string
</code></td>
<td class="name">
<a href="http://php.net/manual/class.exception.php#exception.props.message" title="Go to PHP documentation"><var>$message</var></a>
</td>
<td class="value"><code><span class="php-quote">''</span></code></td>
<td class="description"><div>
<a href="#$message" class="anchor">#</a>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
<tr data-order="code" id="$code">
<td class="attributes"><code>
protected
integer
</code></td>
<td class="name">
<a href="http://php.net/manual/class.exception.php#exception.props.code" title="Go to PHP documentation"><var>$code</var></a>
</td>
<td class="value"><code><span class="php-num">0</span></code></td>
<td class="description"><div>
<a href="#$code" class="anchor">#</a>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
<tr data-order="file" id="$file">
<td class="attributes"><code>
protected
mixed
</code></td>
<td class="name">
<a href="http://php.net/manual/class.exception.php#exception.props.file" title="Go to PHP documentation"><var>$file</var></a>
</td>
<td class="value"><code></code></td>
<td class="description"><div>
<a href="#$file" class="anchor">#</a>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
<tr data-order="line" id="$line">
<td class="attributes"><code>
protected
mixed
</code></td>
<td class="name">
<a href="http://php.net/manual/class.exception.php#exception.props.line" title="Go to PHP documentation"><var>$line</var></a>
</td>
<td class="value"><code></code></td>
<td class="description"><div>
<a href="#$line" class="anchor">#</a>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,194 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Exception\GeoIP2Exception</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li class="active"><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Exceptions</h3>
<ul>
<li class="active"><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2Exception</a></li>
<li><a href="class-GeoIP2.Exception.HttpException.html">HttpException</a></li>
<li><a href="class-GeoIP2.Exception.WebServiceException.html">WebServiceException</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Exception.html" title="Summary of GeoIP2\Exception"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class GeoIP2Exception</h1>
<div class="description">
<p>This class represents a generic error.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-Exception.html"><span>Exception</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Exception\GeoIP2Exception</span></b>
</dd>
</dl>
<div>
<h4>Direct known subclasses</h4>
<a href="class-GeoIP2.Exception.HttpException.html">GeoIP2\Exception\HttpException</a>
</div>
<div>
<h4>Indirect known subclasses</h4>
<a href="class-GeoIP2.Exception.WebServiceException.html">GeoIP2\Exception\WebServiceException</a>
</div>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Exception.html">Exception</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Exception.GeoIP2Exception.html#5-10" title="Go to source code">GeoIP2/Exception/GeoIP2Exception.php</a><br />
</div>
<table class="summary inherited">
<caption>Methods inherited from <a href="class-Exception.html#methods">Exception</a></caption>
<tr>
<td><code>
<a href="class-Exception.html#___construct">__construct()</a>,
<a href="class-Exception.html#___toString">__toString()</a>,
<a href="class-Exception.html#_getCode">getCode()</a>,
<a href="class-Exception.html#_getFile">getFile()</a>,
<a href="class-Exception.html#_getLine">getLine()</a>,
<a href="class-Exception.html#_getMessage">getMessage()</a>,
<a href="class-Exception.html#_getPrevious">getPrevious()</a>,
<a href="class-Exception.html#_getTrace">getTrace()</a>,
<a href="class-Exception.html#_getTraceAsString">getTraceAsString()</a>
</code></td>
</tr>
</table>
<table class="summary inherited">
<caption>Properties inherited from <a href="class-Exception.html#properties">Exception</a></caption>
<tr>
<td><code>
<a href="class-Exception.html#$code"><var>$code</var></a>,
<a href="class-Exception.html#$file"><var>$file</var></a>,
<a href="class-Exception.html#$line"><var>$line</var></a>,
<a href="class-Exception.html#$message"><var>$message</var></a>
</code></td>
</tr>
</table>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,260 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Exception\HttpException</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li class="active"><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Exceptions</h3>
<ul>
<li><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2Exception</a></li>
<li class="active"><a href="class-GeoIP2.Exception.HttpException.html">HttpException</a></li>
<li><a href="class-GeoIP2.Exception.WebServiceException.html">WebServiceException</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Exception.html" title="Summary of GeoIP2\Exception"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class HttpException</h1>
<div class="description">
<p>This class represents an HTTP transport error.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-Exception.html"><span>Exception</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<a href="class-GeoIP2.Exception.GeoIP2Exception.html"><span>GeoIP2\Exception\GeoIP2Exception</span></a>
</dd>
<dd style="padding-left:60px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Exception\HttpException</span></b>
</dd>
</dl>
<div>
<h4>Direct known subclasses</h4>
<a href="class-GeoIP2.Exception.WebServiceException.html">GeoIP2\Exception\WebServiceException</a>
</div>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Exception.html">Exception</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Exception.HttpException.html#6-25" title="Go to source code">GeoIP2/Exception/HttpException.php</a><br />
</div>
<table class="summary" id="methods">
<caption>Methods summary</caption>
<tr data-order="__construct" id="___construct">
<td class="attributes"><code>
public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#___construct">#</a>
<code><a href="source-class-GeoIP2.Exception.HttpException.html#16-24" title="Go to source code">__construct</a>( <span>mixed <var>$message</var></span>, <span>mixed <var>$httpStatus</var></span>, <span>mixed <var>$uri</var></span>, <span>GeoIP2\Exception\Exception <var>$previous</var> = <span class="php-keyword1">null</span> </span> )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
<h4>Overrides</h4>
<div class="list"><code><a href="class-Exception.html#___construct">Exception::__construct()</a></code></div>
</div>
</div></td>
</tr>
</table>
<table class="summary inherited">
<caption>Methods inherited from <a href="class-Exception.html#methods">Exception</a></caption>
<tr>
<td><code>
<a href="class-Exception.html#___toString">__toString()</a>,
<a href="class-Exception.html#_getCode">getCode()</a>,
<a href="class-Exception.html#_getFile">getFile()</a>,
<a href="class-Exception.html#_getLine">getLine()</a>,
<a href="class-Exception.html#_getMessage">getMessage()</a>,
<a href="class-Exception.html#_getPrevious">getPrevious()</a>,
<a href="class-Exception.html#_getTrace">getTrace()</a>,
<a href="class-Exception.html#_getTraceAsString">getTraceAsString()</a>
</code></td>
</tr>
</table>
<table class="summary" id="properties">
<caption>Properties summary</caption>
<tr data-order="uri" id="$uri">
<td class="attributes"><code>
public
mixed
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Exception.HttpException.html#11-14" title="Go to source code"><var>$uri</var></a>
</td>
<td class="value"><code></code></td>
<td class="description"><div>
<a href="#$uri" class="anchor">#</a>
<div class="description short">
<p>The URI queried</p>
</div>
<div class="description detailed hidden">
<p>The URI queried</p>
</div>
</div></td>
</tr>
</table>
<table class="summary inherited">
<caption>Properties inherited from <a href="class-Exception.html#properties">Exception</a></caption>
<tr>
<td><code>
<a href="class-Exception.html#$code"><var>$code</var></a>,
<a href="class-Exception.html#$file"><var>$file</var></a>,
<a href="class-Exception.html#$line"><var>$line</var></a>,
<a href="class-Exception.html#$message"><var>$message</var></a>
</code></td>
</tr>
</table>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,271 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Exception\WebServiceException</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li class="active"><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Exceptions</h3>
<ul>
<li><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2Exception</a></li>
<li><a href="class-GeoIP2.Exception.HttpException.html">HttpException</a></li>
<li class="active"><a href="class-GeoIP2.Exception.WebServiceException.html">WebServiceException</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Exception.html" title="Summary of GeoIP2\Exception"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class WebServiceException</h1>
<div class="description">
<p>This class represents an error returned by MaxMind's GeoIP2 web service.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-Exception.html"><span>Exception</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<a href="class-GeoIP2.Exception.GeoIP2Exception.html"><span>GeoIP2\Exception\GeoIP2Exception</span></a>
</dd>
<dd style="padding-left:60px">
<img src="resources/inherit.png" alt="Extended by" />
<a href="class-GeoIP2.Exception.HttpException.html"><span>GeoIP2\Exception\HttpException</span></a>
</dd>
<dd style="padding-left:90px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Exception\WebServiceException</span></b>
</dd>
</dl>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Exception.html">Exception</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Exception.WebServiceException.html#5-26" title="Go to source code">GeoIP2/Exception/WebServiceException.php</a><br />
</div>
<table class="summary" id="methods">
<caption>Methods summary</caption>
<tr data-order="__construct" id="___construct">
<td class="attributes"><code>
public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#___construct">#</a>
<code><a href="source-class-GeoIP2.Exception.WebServiceException.html#16-25" title="Go to source code">__construct</a>( <span>mixed <var>$message</var></span>, <span>mixed <var>$error</var></span>, <span>mixed <var>$httpStatus</var></span>, <span>mixed <var>$uri</var></span>, <span>GeoIP2\Exception\Exception <var>$previous</var> = <span class="php-keyword1">null</span> </span> )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
<h4>Overrides</h4>
<div class="list"><code><a href="class-GeoIP2.Exception.HttpException.html#___construct">GeoIP2\Exception\HttpException::__construct()</a></code></div>
</div>
</div></td>
</tr>
</table>
<table class="summary inherited">
<caption>Methods inherited from <a href="class-Exception.html#methods">Exception</a></caption>
<tr>
<td><code>
<a href="class-Exception.html#___toString">__toString()</a>,
<a href="class-Exception.html#_getCode">getCode()</a>,
<a href="class-Exception.html#_getFile">getFile()</a>,
<a href="class-Exception.html#_getLine">getLine()</a>,
<a href="class-Exception.html#_getMessage">getMessage()</a>,
<a href="class-Exception.html#_getPrevious">getPrevious()</a>,
<a href="class-Exception.html#_getTrace">getTrace()</a>,
<a href="class-Exception.html#_getTraceAsString">getTraceAsString()</a>
</code></td>
</tr>
</table>
<table class="summary" id="properties">
<caption>Properties summary</caption>
<tr data-order="error" id="$error">
<td class="attributes"><code>
public
mixed
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Exception.WebServiceException.html#11-14" title="Go to source code"><var>$error</var></a>
</td>
<td class="value"><code></code></td>
<td class="description"><div>
<a href="#$error" class="anchor">#</a>
<div class="description short">
<p>The code returned by the MaxMind web service</p>
</div>
<div class="description detailed hidden">
<p>The code returned by the MaxMind web service</p>
</div>
</div></td>
</tr>
</table>
<table class="summary inherited">
<caption>Properties inherited from <a href="class-GeoIP2.Exception.HttpException.html#properties">GeoIP2\Exception\HttpException</a></caption>
<tr>
<td><code>
<a href="class-GeoIP2.Exception.HttpException.html#$uri"><var>$uri</var></a>
</code></td>
</tr>
</table>
<table class="summary inherited">
<caption>Properties inherited from <a href="class-Exception.html#properties">Exception</a></caption>
<tr>
<td><code>
<a href="class-Exception.html#$code"><var>$code</var></a>,
<a href="class-Exception.html#$file"><var>$file</var></a>,
<a href="class-Exception.html#$line"><var>$line</var></a>,
<a href="class-Exception.html#$message"><var>$message</var></a>
</code></td>
</tr>
</table>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,459 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Model\City</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li class="active"><a href="class-GeoIP2.Model.City.html">City</a></li>
<li><a href="class-GeoIP2.Model.CityIspOrg.html">CityIspOrg</a></li>
<li><a href="class-GeoIP2.Model.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Model.Omni.html">Omni</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Model.html" title="Summary of GeoIP2\Model"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class City</h1>
<div class="description">
<p>This class provides a model for the data returned by the GeoIP2 City end
point.</p>
<p>The only difference between the City, City/ISP/Org, and Omni model classes is
which fields in each record may be populated. See <a
href="http://dev.maxmind.com/geoip/geoip2/web-services">http://dev.maxmind.com/geoip/geoip2/web-services</a>
more details.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-GeoIP2.Model.Country.html"><span>GeoIP2\Model\Country</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Model\City</span></b>
</dd>
</dl>
<div>
<h4>Direct known subclasses</h4>
<a href="class-GeoIP2.Model.CityIspOrg.html">GeoIP2\Model\CityIspOrg</a>
</div>
<div>
<h4>Indirect known subclasses</h4>
<a href="class-GeoIP2.Model.Omni.html">GeoIP2\Model\Omni</a>
</div>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Model.html">Model</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Model.City.html#5-120" title="Go to source code">GeoIP2/Model/City.php</a><br />
</div>
<table class="summary" id="magicProperties">
<caption>Magic properties summary</caption>
<tr data-order="city" id="m$city">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.City.html">GeoIP2\Record\City</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.City.html#13-14" title="Go to source code"><var>$city</var></a>
</td>
<td class="description"><div>
<a href="#m$city" class="anchor">#</a>
<div class="description short">
<p>City data for the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>City data for the requested IP address.</p>
</div>
</div></td>
</tr>
<tr data-order="continent" id="m$continent">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Continent.html">GeoIP2\Record\Continent</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.City.html#16-17" title="Go to source code"><var>$continent</var></a>
</td>
<td class="description"><div>
<a href="#m$continent" class="anchor">#</a>
<div class="description short">
<p>Continent data for the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>Continent data for the requested IP address.</p>
</div>
</div></td>
</tr>
<tr data-order="country" id="m$country">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Country.html">GeoIP2\Record\Country</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.City.html#19-21" title="Go to source code"><var>$country</var></a>
</td>
<td class="description"><div>
<a href="#m$country" class="anchor">#</a>
<div class="description short">
<p>Country data for the requested IP address. This object represents the country
where MaxMind believes the end user is located.</p>
</div>
<div class="description detailed hidden">
<p>Country data for the requested IP address. This object represents the country
where MaxMind believes the end user is located.</p>
</div>
</div></td>
</tr>
<tr data-order="location" id="m$location">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Location.html">GeoIP2\Record\Location</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.City.html#23-24" title="Go to source code"><var>$location</var></a>
</td>
<td class="description"><div>
<a href="#m$location" class="anchor">#</a>
<div class="description short">
<p>Location data for the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>Location data for the requested IP address.</p>
</div>
</div></td>
</tr>
<tr data-order="maxmind" id="m$maxmind">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.MaxMind.html">GeoIP2\Record\MaxMind</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.City.html#26-27" title="Go to source code"><var>$maxmind</var></a>
</td>
<td class="description"><div>
<a href="#m$maxmind" class="anchor">#</a>
<div class="description short">
<p>Data related to your MaxMind account.</p>
</div>
<div class="description detailed hidden">
<p>Data related to your MaxMind account.</p>
</div>
</div></td>
</tr>
<tr data-order="registeredCountry" id="m$registeredCountry">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Country.html">GeoIP2\Record\Country</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.City.html#29-32" title="Go to source code"><var>$registeredCountry</var></a>
</td>
<td class="description"><div>
<a href="#m$registeredCountry" class="anchor">#</a>
<div class="description short">
<p>Registered country data for the requested IP address. This record represents
the country where the ISP has registered a given IP block in and may differ from
the user's country.</p>
</div>
<div class="description detailed hidden">
<p>Registered country data for the requested IP address. This record represents
the country where the ISP has registered a given IP block in and may differ from
the user's country.</p>
</div>
</div></td>
</tr>
<tr data-order="representedCountry" id="m$representedCountry">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.RepresentedCountry.html">GeoIP2\Record\RepresentedCountry</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.City.html#34-37" title="Go to source code"><var>$representedCountry</var></a>
</td>
<td class="description"><div>
<a href="#m$representedCountry" class="anchor">#</a>
<div class="description short">
<p>Represented country data for the requested IP address. The represented
country is used for things like military bases or embassies. It is only present
when the represented country differs from the country.</p>
</div>
<div class="description detailed hidden">
<p>Represented country data for the requested IP address. The represented
country is used for things like military bases or embassies. It is only present
when the represented country differs from the country.</p>
</div>
</div></td>
</tr>
<tr data-order="subdivisions" id="m$subdivisions">
<td class="attributes"><code>
public
array
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.City.html#39-45" title="Go to source code"><var>$subdivisions</var></a>
</td>
<td class="description"><div>
<a href="#m$subdivisions" class="anchor">#</a>
<div class="description short">
<p>An array of <code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code> objects representing the
country subdivisions for the requested IP address. The number and type of
subdivisions varies by country, but a subdivision is typically a state,
province, county, etc. Subdivisions are ordered from most general (largest) to
most specific (smallest). If the response did not contain any subdivisions, this
method returns an empty array.</p>
</div>
<div class="description detailed hidden">
<p>An array of <code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code> objects representing the
country subdivisions for the requested IP address. The number and type of
subdivisions varies by country, but a subdivision is typically a state,
province, county, etc. Subdivisions are ordered from most general (largest) to
most specific (smallest). If the response did not contain any subdivisions, this
method returns an empty array.</p>
</div>
</div></td>
</tr>
<tr data-order="mostSpecificSubdivision" id="m$mostSpecificSubdivision">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.City.html#47-50" title="Go to source code"><var>$mostSpecificSubdivision</var></a>
</td>
<td class="description"><div>
<a href="#m$mostSpecificSubdivision" class="anchor">#</a>
<div class="description short">
<p>An object representing the most specific subdivision returned. If the
response did not contain any subdivisions, this method returns an empty <code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code> object.</p>
</div>
<div class="description detailed hidden">
<p>An object representing the most specific subdivision returned. If the
response did not contain any subdivisions, this method returns an empty <code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code> object.</p>
</div>
</div></td>
</tr>
<tr data-order="traits" id="m$traits">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Traits.html">GeoIP2\Record\Traits</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.City.html#52-53" title="Go to source code"><var>$traits</var></a>
</td>
<td class="description"><div>
<a href="#m$traits" class="anchor">#</a>
<div class="description short">
<p>Data for the traits of the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>Data for the traits of the requested IP address.</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,462 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Model\CityIspOrg</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Model.City.html">City</a></li>
<li class="active"><a href="class-GeoIP2.Model.CityIspOrg.html">CityIspOrg</a></li>
<li><a href="class-GeoIP2.Model.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Model.Omni.html">Omni</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Model.html" title="Summary of GeoIP2\Model"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class CityIspOrg</h1>
<div class="description">
<p>This class provides a model for the data returned by the GeoIP2 City/ISP/Org
end point.</p>
<p>The only difference between the City, City/ISP/Org, and Omni model classes is
which fields in each record may be populated. See <a
href="http://dev.maxmind.com/geoip/geoip2/web-services">http://dev.maxmind.com/geoip/geoip2/web-services</a>
more details.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-GeoIP2.Model.Country.html"><span>GeoIP2\Model\Country</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<a href="class-GeoIP2.Model.City.html"><span>GeoIP2\Model\City</span></a>
</dd>
<dd style="padding-left:60px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Model\CityIspOrg</span></b>
</dd>
</dl>
<div>
<h4>Direct known subclasses</h4>
<a href="class-GeoIP2.Model.Omni.html">GeoIP2\Model\Omni</a>
</div>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Model.html">Model</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Model.CityIspOrg.html#5-57" title="Go to source code">GeoIP2/Model/CityIspOrg.php</a><br />
</div>
<table class="summary" id="magicProperties">
<caption>Magic properties summary</caption>
<tr data-order="city" id="m$city">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.City.html">GeoIP2\Record\City</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.CityIspOrg.html#13-14" title="Go to source code"><var>$city</var></a>
</td>
<td class="description"><div>
<a href="#m$city" class="anchor">#</a>
<div class="description short">
<p>City data for the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>City data for the requested IP address.</p>
</div>
</div></td>
</tr>
<tr data-order="continent" id="m$continent">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Continent.html">GeoIP2\Record\Continent</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.CityIspOrg.html#16-17" title="Go to source code"><var>$continent</var></a>
</td>
<td class="description"><div>
<a href="#m$continent" class="anchor">#</a>
<div class="description short">
<p>Continent data for the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>Continent data for the requested IP address.</p>
</div>
</div></td>
</tr>
<tr data-order="country" id="m$country">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Country.html">GeoIP2\Record\Country</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.CityIspOrg.html#19-21" title="Go to source code"><var>$country</var></a>
</td>
<td class="description"><div>
<a href="#m$country" class="anchor">#</a>
<div class="description short">
<p>Country data for the requested IP address. This object represents the country
where MaxMind believes the end user is located.</p>
</div>
<div class="description detailed hidden">
<p>Country data for the requested IP address. This object represents the country
where MaxMind believes the end user is located.</p>
</div>
</div></td>
</tr>
<tr data-order="location" id="m$location">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Location.html">GeoIP2\Record\Location</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.CityIspOrg.html#23-24" title="Go to source code"><var>$location</var></a>
</td>
<td class="description"><div>
<a href="#m$location" class="anchor">#</a>
<div class="description short">
<p>Location data for the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>Location data for the requested IP address.</p>
</div>
</div></td>
</tr>
<tr data-order="maxmind" id="m$maxmind">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.MaxMind.html">GeoIP2\Record\MaxMind</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.CityIspOrg.html#26-27" title="Go to source code"><var>$maxmind</var></a>
</td>
<td class="description"><div>
<a href="#m$maxmind" class="anchor">#</a>
<div class="description short">
<p>Data related to your MaxMind account.</p>
</div>
<div class="description detailed hidden">
<p>Data related to your MaxMind account.</p>
</div>
</div></td>
</tr>
<tr data-order="registeredCountry" id="m$registeredCountry">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Country.html">GeoIP2\Record\Country</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.CityIspOrg.html#29-32" title="Go to source code"><var>$registeredCountry</var></a>
</td>
<td class="description"><div>
<a href="#m$registeredCountry" class="anchor">#</a>
<div class="description short">
<p>Registered country data for the requested IP address. This record represents
the country where the ISP has registered a given IP block in and may differ from
the user's country.</p>
</div>
<div class="description detailed hidden">
<p>Registered country data for the requested IP address. This record represents
the country where the ISP has registered a given IP block in and may differ from
the user's country.</p>
</div>
</div></td>
</tr>
<tr data-order="representedCountry" id="m$representedCountry">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.RepresentedCountry.html">GeoIP2\Record\RepresentedCountry</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.CityIspOrg.html#34-37" title="Go to source code"><var>$representedCountry</var></a>
</td>
<td class="description"><div>
<a href="#m$representedCountry" class="anchor">#</a>
<div class="description short">
<p>Represented country data for the requested IP address. The represented
country is used for things like military bases or embassies. It is only present
when the represented country differs from the country.</p>
</div>
<div class="description detailed hidden">
<p>Represented country data for the requested IP address. The represented
country is used for things like military bases or embassies. It is only present
when the represented country differs from the country.</p>
</div>
</div></td>
</tr>
<tr data-order="subdivisions" id="m$subdivisions">
<td class="attributes"><code>
public
array
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.CityIspOrg.html#39-45" title="Go to source code"><var>$subdivisions</var></a>
</td>
<td class="description"><div>
<a href="#m$subdivisions" class="anchor">#</a>
<div class="description short">
<p>An array of <code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code> objects representing the
country subdivisions for the requested IP address. The number and type of
subdivisions varies by country, but a subdivision is typically a state,
province, county, etc. Subdivisions are ordered from most general (largest) to
most specific (smallest). If the response did not contain any subdivisions, this
method returns an empty array.</p>
</div>
<div class="description detailed hidden">
<p>An array of <code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code> objects representing the
country subdivisions for the requested IP address. The number and type of
subdivisions varies by country, but a subdivision is typically a state,
province, county, etc. Subdivisions are ordered from most general (largest) to
most specific (smallest). If the response did not contain any subdivisions, this
method returns an empty array.</p>
</div>
</div></td>
</tr>
<tr data-order="mostSpecificSubdivision" id="m$mostSpecificSubdivision">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.CityIspOrg.html#47-50" title="Go to source code"><var>$mostSpecificSubdivision</var></a>
</td>
<td class="description"><div>
<a href="#m$mostSpecificSubdivision" class="anchor">#</a>
<div class="description short">
<p>An object representing the most specific subdivision returned. If the
response did not contain any subdivisions, this method returns an empty <code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code> object.</p>
</div>
<div class="description detailed hidden">
<p>An object representing the most specific subdivision returned. If the
response did not contain any subdivisions, this method returns an empty <code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code> object.</p>
</div>
</div></td>
</tr>
<tr data-order="traits" id="m$traits">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Traits.html">GeoIP2\Record\Traits</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.CityIspOrg.html#52-53" title="Go to source code"><var>$traits</var></a>
</td>
<td class="description"><div>
<a href="#m$traits" class="anchor">#</a>
<div class="description short">
<p>Data for the traits of the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>Data for the traits of the requested IP address.</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,330 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Model\Country</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Model.City.html">City</a></li>
<li><a href="class-GeoIP2.Model.CityIspOrg.html">CityIspOrg</a></li>
<li class="active"><a href="class-GeoIP2.Model.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Model.Omni.html">Omni</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Model.html" title="Summary of GeoIP2\Model"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class Country</h1>
<div class="description">
<p>This class provides a model for the data returned by the GeoIP2 Country end
point.</p>
<p>The only difference between the City, City/ISP/Org, and Omni model classes is
which fields in each record may be populated. See <a
href="http://dev.maxmind.com/geoip/geoip2/web-services">http://dev.maxmind.com/geoip/geoip2/web-services</a>
more details.</p>
</div>
<div>
<h4>Direct known subclasses</h4>
<a href="class-GeoIP2.Model.City.html">GeoIP2\Model\City</a>
</div>
<div>
<h4>Indirect known subclasses</h4>
<a href="class-GeoIP2.Model.CityIspOrg.html">GeoIP2\Model\CityIspOrg</a>,
<a href="class-GeoIP2.Model.Omni.html">GeoIP2\Model\Omni</a>
</div>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Model.html">Model</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Model.Country.html#5-95" title="Go to source code">GeoIP2/Model/Country.php</a><br />
</div>
<table class="summary" id="magicProperties">
<caption>Magic properties summary</caption>
<tr data-order="continent" id="m$continent">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Continent.html">GeoIP2\Record\Continent</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Country.html#13-14" title="Go to source code"><var>$continent</var></a>
</td>
<td class="description"><div>
<a href="#m$continent" class="anchor">#</a>
<div class="description short">
<p>Continent data for the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>Continent data for the requested IP address.</p>
</div>
</div></td>
</tr>
<tr data-order="country" id="m$country">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Country.html">GeoIP2\Record\Country</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Country.html#16-18" title="Go to source code"><var>$country</var></a>
</td>
<td class="description"><div>
<a href="#m$country" class="anchor">#</a>
<div class="description short">
<p>Country data for the requested IP address. This object represents the country
where MaxMind believes the end user is located.</p>
</div>
<div class="description detailed hidden">
<p>Country data for the requested IP address. This object represents the country
where MaxMind believes the end user is located.</p>
</div>
</div></td>
</tr>
<tr data-order="maxmind" id="m$maxmind">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.MaxMind.html">GeoIP2\Record\MaxMind</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Country.html#20-21" title="Go to source code"><var>$maxmind</var></a>
</td>
<td class="description"><div>
<a href="#m$maxmind" class="anchor">#</a>
<div class="description short">
<p>Data related to your MaxMind account.</p>
</div>
<div class="description detailed hidden">
<p>Data related to your MaxMind account.</p>
</div>
</div></td>
</tr>
<tr data-order="registeredCountry" id="m$registeredCountry">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Country.html">GeoIP2\Record\Country</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Country.html#23-26" title="Go to source code"><var>$registeredCountry</var></a>
</td>
<td class="description"><div>
<a href="#m$registeredCountry" class="anchor">#</a>
<div class="description short">
<p>Registered country data for the requested IP address. This record represents
the country where the ISP has registered a given IP block in and may differ from
the user's country.</p>
</div>
<div class="description detailed hidden">
<p>Registered country data for the requested IP address. This record represents
the country where the ISP has registered a given IP block in and may differ from
the user's country.</p>
</div>
</div></td>
</tr>
<tr data-order="representedCountry" id="m$representedCountry">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.RepresentedCountry.html">GeoIP2\Record\RepresentedCountry</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Country.html#28-31" title="Go to source code"><var>$representedCountry</var></a>
</td>
<td class="description"><div>
<a href="#m$representedCountry" class="anchor">#</a>
<div class="description short">
<p>Represented country data for the requested IP address. The represented
country is used for things like military bases or embassies. It is only present
when the represented country differs from the country.</p>
</div>
<div class="description detailed hidden">
<p>Represented country data for the requested IP address. The represented
country is used for things like military bases or embassies. It is only present
when the represented country differs from the country.</p>
</div>
</div></td>
</tr>
<tr data-order="traits" id="m$traits">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Traits.html">GeoIP2\Record\Traits</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Country.html#33-34" title="Go to source code"><var>$traits</var></a>
</td>
<td class="description"><div>
<a href="#m$traits" class="anchor">#</a>
<div class="description short">
<p>Data for the traits of the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>Data for the traits of the requested IP address.</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,465 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Model\Omni</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Model.City.html">City</a></li>
<li><a href="class-GeoIP2.Model.CityIspOrg.html">CityIspOrg</a></li>
<li><a href="class-GeoIP2.Model.Country.html">Country</a></li>
<li class="active"><a href="class-GeoIP2.Model.Omni.html">Omni</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Model.html" title="Summary of GeoIP2\Model"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class Omni</h1>
<div class="description">
<p>This class provides a model for the data returned by the GeoIP2 Omni end
point.</p>
<p>The only difference between the City, City/ISP/Org, and Omni model classes is
which fields in each record may be populated. See <a
href="http://dev.maxmind.com/geoip/geoip2/web-services">http://dev.maxmind.com/geoip/geoip2/web-services</a>
more details.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-GeoIP2.Model.Country.html"><span>GeoIP2\Model\Country</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<a href="class-GeoIP2.Model.City.html"><span>GeoIP2\Model\City</span></a>
</dd>
<dd style="padding-left:60px">
<img src="resources/inherit.png" alt="Extended by" />
<a href="class-GeoIP2.Model.CityIspOrg.html"><span>GeoIP2\Model\CityIspOrg</span></a>
</dd>
<dd style="padding-left:90px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Model\Omni</span></b>
</dd>
</dl>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Model.html">Model</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Model.Omni.html#5-57" title="Go to source code">GeoIP2/Model/Omni.php</a><br />
</div>
<table class="summary" id="magicProperties">
<caption>Magic properties summary</caption>
<tr data-order="city" id="m$city">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.City.html">GeoIP2\Record\City</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Omni.html#13-14" title="Go to source code"><var>$city</var></a>
</td>
<td class="description"><div>
<a href="#m$city" class="anchor">#</a>
<div class="description short">
<p>City data for the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>City data for the requested IP address.</p>
</div>
</div></td>
</tr>
<tr data-order="continent" id="m$continent">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Continent.html">GeoIP2\Record\Continent</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Omni.html#16-17" title="Go to source code"><var>$continent</var></a>
</td>
<td class="description"><div>
<a href="#m$continent" class="anchor">#</a>
<div class="description short">
<p>Continent data for the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>Continent data for the requested IP address.</p>
</div>
</div></td>
</tr>
<tr data-order="country" id="m$country">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Country.html">GeoIP2\Record\Country</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Omni.html#19-21" title="Go to source code"><var>$country</var></a>
</td>
<td class="description"><div>
<a href="#m$country" class="anchor">#</a>
<div class="description short">
<p>Country data for the requested IP address. This object represents the country
where MaxMind believes the end user is located.</p>
</div>
<div class="description detailed hidden">
<p>Country data for the requested IP address. This object represents the country
where MaxMind believes the end user is located.</p>
</div>
</div></td>
</tr>
<tr data-order="location" id="m$location">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Location.html">GeoIP2\Record\Location</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Omni.html#23-24" title="Go to source code"><var>$location</var></a>
</td>
<td class="description"><div>
<a href="#m$location" class="anchor">#</a>
<div class="description short">
<p>Location data for the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>Location data for the requested IP address.</p>
</div>
</div></td>
</tr>
<tr data-order="maxmind" id="m$maxmind">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.MaxMind.html">GeoIP2\Record\MaxMind</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Omni.html#26-27" title="Go to source code"><var>$maxmind</var></a>
</td>
<td class="description"><div>
<a href="#m$maxmind" class="anchor">#</a>
<div class="description short">
<p>Data related to your MaxMind account.</p>
</div>
<div class="description detailed hidden">
<p>Data related to your MaxMind account.</p>
</div>
</div></td>
</tr>
<tr data-order="registeredCountry" id="m$registeredCountry">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Country.html">GeoIP2\Record\Country</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Omni.html#29-32" title="Go to source code"><var>$registeredCountry</var></a>
</td>
<td class="description"><div>
<a href="#m$registeredCountry" class="anchor">#</a>
<div class="description short">
<p>Registered country data for the requested IP address. This record represents
the country where the ISP has registered a given IP block in and may differ from
the user's country.</p>
</div>
<div class="description detailed hidden">
<p>Registered country data for the requested IP address. This record represents
the country where the ISP has registered a given IP block in and may differ from
the user's country.</p>
</div>
</div></td>
</tr>
<tr data-order="representedCountry" id="m$representedCountry">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.RepresentedCountry.html">GeoIP2\Record\RepresentedCountry</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Omni.html#34-37" title="Go to source code"><var>$representedCountry</var></a>
</td>
<td class="description"><div>
<a href="#m$representedCountry" class="anchor">#</a>
<div class="description short">
<p>Represented country data for the requested IP address. The represented
country is used for things like military bases or embassies. It is only present
when the represented country differs from the country.</p>
</div>
<div class="description detailed hidden">
<p>Represented country data for the requested IP address. The represented
country is used for things like military bases or embassies. It is only present
when the represented country differs from the country.</p>
</div>
</div></td>
</tr>
<tr data-order="subdivisions" id="m$subdivisions">
<td class="attributes"><code>
public
array
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Omni.html#39-45" title="Go to source code"><var>$subdivisions</var></a>
</td>
<td class="description"><div>
<a href="#m$subdivisions" class="anchor">#</a>
<div class="description short">
<p>An array of <code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code> objects representing the
country subdivisions for the requested IP address. The number and type of
subdivisions varies by country, but a subdivision is typically a state,
province, county, etc. Subdivisions are ordered from most general (largest) to
most specific (smallest). If the response did not contain any subdivisions, this
method returns an empty array.</p>
</div>
<div class="description detailed hidden">
<p>An array of <code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code> objects representing the
country subdivisions for the requested IP address. The number and type of
subdivisions varies by country, but a subdivision is typically a state,
province, county, etc. Subdivisions are ordered from most general (largest) to
most specific (smallest). If the response did not contain any subdivisions, this
method returns an empty array.</p>
</div>
</div></td>
</tr>
<tr data-order="mostSpecificSubdivision" id="m$mostSpecificSubdivision">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Omni.html#47-50" title="Go to source code"><var>$mostSpecificSubdivision</var></a>
</td>
<td class="description"><div>
<a href="#m$mostSpecificSubdivision" class="anchor">#</a>
<div class="description short">
<p>An object representing the most specific subdivision returned. If the
response did not contain any subdivisions, this method returns an empty <code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code> object.</p>
</div>
<div class="description detailed hidden">
<p>An object representing the most specific subdivision returned. If the
response did not contain any subdivisions, this method returns an empty <code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code> object.</p>
</div>
</div></td>
</tr>
<tr data-order="traits" id="m$traits">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Traits.html">GeoIP2\Record\Traits</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Omni.html#52-53" title="Go to source code"><var>$traits</var></a>
</td>
<td class="description"><div>
<a href="#m$traits" class="anchor">#</a>
<div class="description short">
<p>Data for the traits of the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>Data for the traits of the requested IP address.</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,173 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Record\AbstractPlaceRecord</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li class="active"><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class AbstractPlaceRecord</h1>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-GeoIP2.Record.AbstractRecord.html"><span>GeoIP2\Record\AbstractRecord</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Record\AbstractPlaceRecord</span></b>
</dd>
</dl>
<div>
<h4>Direct known subclasses</h4>
<a href="class-GeoIP2.Record.City.html">GeoIP2\Record\City</a>,
<a href="class-GeoIP2.Record.Continent.html">GeoIP2\Record\Continent</a>,
<a href="class-GeoIP2.Record.Country.html">GeoIP2\Record\Country</a>,
<a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a>
</div>
<div>
<h4>Indirect known subclasses</h4>
<a href="class-GeoIP2.Record.RepresentedCountry.html">GeoIP2\Record\RepresentedCountry</a>
</div>
<div class="info">
<b>Abstract</b><br />
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Record.html">Record</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Record.AbstractPlaceRecord.html#5-38" title="Go to source code">GeoIP2/Record/AbstractPlaceRecord.php</a><br />
</div>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,164 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Record\AbstractRecord</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li class="active"><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class AbstractRecord</h1>
<div>
<h4>Direct known subclasses</h4>
<a href="class-GeoIP2.Record.AbstractPlaceRecord.html">GeoIP2\Record\AbstractPlaceRecord</a>,
<a href="class-GeoIP2.Record.Location.html">GeoIP2\Record\Location</a>,
<a href="class-GeoIP2.Record.MaxMind.html">GeoIP2\Record\MaxMind</a>,
<a href="class-GeoIP2.Record.Postal.html">GeoIP2\Record\Postal</a>,
<a href="class-GeoIP2.Record.Traits.html">GeoIP2\Record\Traits</a>
</div>
<div>
<h4>Indirect known subclasses</h4>
<a href="class-GeoIP2.Record.City.html">GeoIP2\Record\City</a>,
<a href="class-GeoIP2.Record.Continent.html">GeoIP2\Record\Continent</a>,
<a href="class-GeoIP2.Record.Country.html">GeoIP2\Record\Country</a>,
<a href="class-GeoIP2.Record.RepresentedCountry.html">GeoIP2\Record\RepresentedCountry</a>,
<a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a>
</div>
<div class="info">
<b>Abstract</b><br />
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Record.html">Record</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Record.AbstractRecord.html#5-34" title="Go to source code">GeoIP2/Record/AbstractRecord.php</a><br />
</div>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,292 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Record\City</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li class="active"><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class City</h1>
<div class="description">
<p>City-level data associated with an IP address.</p>
<p>This record is returned by all the end points except the Country end
point.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-GeoIP2.Record.AbstractRecord.html"><span>GeoIP2\Record\AbstractRecord</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<a href="class-GeoIP2.Record.AbstractPlaceRecord.html"><span>GeoIP2\Record\AbstractPlaceRecord</span></a>
</dd>
<dd style="padding-left:60px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Record\City</span></b>
</dd>
</dl>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Record.html">Record</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Record.City.html#5-29" title="Go to source code">GeoIP2/Record/City.php</a><br />
</div>
<table class="summary" id="magicProperties">
<caption>Magic properties summary</caption>
<tr data-order="confidence" id="m$confidence">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.City.html#10-12" title="Go to source code"><var>$confidence</var></a>
</td>
<td class="description"><div>
<a href="#m$confidence" class="anchor">#</a>
<div class="description short">
<p>A value from 0-100 indicating MaxMind's confidence that the city is correct.
This attribute is only available from the Omni end point.</p>
</div>
<div class="description detailed hidden">
<p>A value from 0-100 indicating MaxMind's confidence that the city is correct.
This attribute is only available from the Omni end point.</p>
</div>
</div></td>
</tr>
<tr data-order="geonameId" id="m$geonameId">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.City.html#14-15" title="Go to source code"><var>$geonameId</var></a>
</td>
<td class="description"><div>
<a href="#m$geonameId" class="anchor">#</a>
<div class="description short">
<p>The GeoName ID for the city. This attribute is returned by all end
points.</p>
</div>
<div class="description detailed hidden">
<p>The GeoName ID for the city. This attribute is returned by all end
points.</p>
</div>
</div></td>
</tr>
<tr data-order="name" id="m$name">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.City.html#17-18" title="Go to source code"><var>$name</var></a>
</td>
<td class="description"><div>
<a href="#m$name" class="anchor">#</a>
<div class="description short">
<p>The name of the city based on the languages list passed to the constructor.
This attribute is returned by all end points.</p>
</div>
<div class="description detailed hidden">
<p>The name of the city based on the languages list passed to the constructor.
This attribute is returned by all end points.</p>
</div>
</div></td>
</tr>
<tr data-order="names" id="m$names">
<td class="attributes"><code>
public
array
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.City.html#20-21" title="Go to source code"><var>$names</var></a>
</td>
<td class="description"><div>
<a href="#m$names" class="anchor">#</a>
<div class="description short">
<p>A array map where the keys are language codes and the values are names. This
attribute is returned by all end points.</p>
</div>
<div class="description detailed hidden">
<p>A array map where the keys are language codes and the values are names. This
attribute is returned by all end points.</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,291 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Record\Continent</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li class="active"><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class Continent</h1>
<div class="description">
<p>Contains data for the continent record associated with an IP address</p>
<p>This record is returned by all the end points.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-GeoIP2.Record.AbstractRecord.html"><span>GeoIP2\Record\AbstractRecord</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<a href="class-GeoIP2.Record.AbstractPlaceRecord.html"><span>GeoIP2\Record\AbstractPlaceRecord</span></a>
</dd>
<dd style="padding-left:60px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Record\Continent</span></b>
</dd>
</dl>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Record.html">Record</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Record.Continent.html#5-33" title="Go to source code">GeoIP2/Record/Continent.php</a><br />
</div>
<table class="summary" id="magicProperties">
<caption>Magic properties summary</caption>
<tr data-order="code" id="m$code">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Continent.html#10-11" title="Go to source code"><var>$code</var></a>
</td>
<td class="description"><div>
<a href="#m$code" class="anchor">#</a>
<div class="description short">
<p>A two character continent code like "NA" (North America) or "OC" (Oceania).
This attribute is returned by all end points.</p>
</div>
<div class="description detailed hidden">
<p>A two character continent code like "NA" (North America) or "OC" (Oceania).
This attribute is returned by all end points.</p>
</div>
</div></td>
</tr>
<tr data-order="geonameId" id="m$geonameId">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Continent.html#13-14" title="Go to source code"><var>$geonameId</var></a>
</td>
<td class="description"><div>
<a href="#m$geonameId" class="anchor">#</a>
<div class="description short">
<p>The GeoName ID for the continent. This attribute is returned by all end
points.</p>
</div>
<div class="description detailed hidden">
<p>The GeoName ID for the continent. This attribute is returned by all end
points.</p>
</div>
</div></td>
</tr>
<tr data-order="name" id="m$name">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Continent.html#16-18" title="Go to source code"><var>$name</var></a>
</td>
<td class="description"><div>
<a href="#m$name" class="anchor">#</a>
<div class="description short">
<p>Returns the name of the continent based on the languages list passed to the
constructor. This attribute is returned by all end points.</p>
</div>
<div class="description detailed hidden">
<p>Returns the name of the continent based on the languages list passed to the
constructor. This attribute is returned by all end points.</p>
</div>
</div></td>
</tr>
<tr data-order="names" id="m$names">
<td class="attributes"><code>
public
array
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Continent.html#20-21" title="Go to source code"><var>$names</var></a>
</td>
<td class="description"><div>
<a href="#m$names" class="anchor">#</a>
<div class="description short">
<p>An array map where the keys are language codes and the values are names. This
attribute is returned by all end points.</p>
</div>
<div class="description detailed hidden">
<p>An array map where the keys are language codes and the values are names. This
attribute is returned by all end points.</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,323 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Record\Country</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li class="active"><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class Country</h1>
<div class="description">
<p>Contains data for the country record associated with an IP address</p>
<p>This record is returned by all the end points.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-GeoIP2.Record.AbstractRecord.html"><span>GeoIP2\Record\AbstractRecord</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<a href="class-GeoIP2.Record.AbstractPlaceRecord.html"><span>GeoIP2\Record\AbstractPlaceRecord</span></a>
</dd>
<dd style="padding-left:60px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Record\Country</span></b>
</dd>
</dl>
<div>
<h4>Direct known subclasses</h4>
<a href="class-GeoIP2.Record.RepresentedCountry.html">GeoIP2\Record\RepresentedCountry</a>
</div>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Record.html">Record</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Record.Country.html#5-38" title="Go to source code">GeoIP2/Record/Country.php</a><br />
</div>
<table class="summary" id="magicProperties">
<caption>Magic properties summary</caption>
<tr data-order="confidence" id="m$confidence">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Country.html#10-12" title="Go to source code"><var>$confidence</var></a>
</td>
<td class="description"><div>
<a href="#m$confidence" class="anchor">#</a>
<div class="description short">
<p>A value from 0-100 indicating MaxMind's confidence that the country is
correct. This attribute is only available from the Omni end point.</p>
</div>
<div class="description detailed hidden">
<p>A value from 0-100 indicating MaxMind's confidence that the country is
correct. This attribute is only available from the Omni end point.</p>
</div>
</div></td>
</tr>
<tr data-order="geonameId" id="m$geonameId">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Country.html#14-15" title="Go to source code"><var>$geonameId</var></a>
</td>
<td class="description"><div>
<a href="#m$geonameId" class="anchor">#</a>
<div class="description short">
<p>The GeoName ID for the country. This attribute is returned by all end
points.</p>
</div>
<div class="description detailed hidden">
<p>The GeoName ID for the country. This attribute is returned by all end
points.</p>
</div>
</div></td>
</tr>
<tr data-order="isoCode" id="m$isoCode">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Country.html#17-19" title="Go to source code"><var>$isoCode</var></a>
</td>
<td class="description"><div>
<a href="#m$isoCode" class="anchor">#</a>
<div class="description short">
<p>The <a href="http://en.wikipedia.org/wiki/ISO_3166-1">two-character ISO 3166-1 alpha code</a> for the country. This attribute is returned
by all end points.</p>
</div>
<div class="description detailed hidden">
<p>The <a href="http://en.wikipedia.org/wiki/ISO_3166-1">two-character ISO 3166-1 alpha code</a> for the country. This attribute is returned
by all end points.</p>
</div>
</div></td>
</tr>
<tr data-order="name" id="m$name">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Country.html#21-22" title="Go to source code"><var>$name</var></a>
</td>
<td class="description"><div>
<a href="#m$name" class="anchor">#</a>
<div class="description short">
<p>The name of the country based on the languages list passed to the
constructor. This attribute is returned by all end points.</p>
</div>
<div class="description detailed hidden">
<p>The name of the country based on the languages list passed to the
constructor. This attribute is returned by all end points.</p>
</div>
</div></td>
</tr>
<tr data-order="names" id="m$names">
<td class="attributes"><code>
public
array
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Country.html#24-25" title="Go to source code"><var>$names</var></a>
</td>
<td class="description"><div>
<a href="#m$names" class="anchor">#</a>
<div class="description short">
<p>An array map where the keys are language codes and the values are names. This
attribute is returned by all end points.</p>
</div>
<div class="description detailed hidden">
<p>An array map where the keys are language codes and the values are names. This
attribute is returned by all end points.</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,317 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Record\Location</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li class="active"><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class Location</h1>
<div class="description">
<p>Contains data for the location record associated with an IP address</p>
<p>This record is returned by all the end points except the Country end
point.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-GeoIP2.Record.AbstractRecord.html"><span>GeoIP2\Record\AbstractRecord</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Record\Location</span></b>
</dd>
</dl>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Record.html">Record</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Record.Location.html#5-48" title="Go to source code">GeoIP2/Record/Location.php</a><br />
</div>
<table class="summary" id="magicProperties">
<caption>Magic properties summary</caption>
<tr data-order="accuracyRadius" id="m$accuracyRadius">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Location.html#10-12" title="Go to source code"><var>$accuracyRadius</var></a>
</td>
<td class="description"><div>
<a href="#m$accuracyRadius" class="anchor">#</a>
<div class="description short">
<p>The radius in kilometers around the specified location where the IP address
is likely to be. This attribute is only available from the Omni end point.</p>
</div>
<div class="description detailed hidden">
<p>The radius in kilometers around the specified location where the IP address
is likely to be. This attribute is only available from the Omni end point.</p>
</div>
</div></td>
</tr>
<tr data-order="latitude" id="m$latitude">
<td class="attributes"><code>
public
float
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Location.html#14-16" title="Go to source code"><var>$latitude</var></a>
</td>
<td class="description"><div>
<a href="#m$latitude" class="anchor">#</a>
<div class="description short">
<p>The latitude of the location as a floating point number. This attribute is
returned by all end points except the Country end point.</p>
</div>
<div class="description detailed hidden">
<p>The latitude of the location as a floating point number. This attribute is
returned by all end points except the Country end point.</p>
</div>
</div></td>
</tr>
<tr data-order="longitude" id="m$longitude">
<td class="attributes"><code>
public
float
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Location.html#18-20" title="Go to source code"><var>$longitude</var></a>
</td>
<td class="description"><div>
<a href="#m$longitude" class="anchor">#</a>
<div class="description short">
<p>The longitude of the location as a floating point number. This attribute is
returned by all end points except the Country end point.</p>
</div>
<div class="description detailed hidden">
<p>The longitude of the location as a floating point number. This attribute is
returned by all end points except the Country end point.</p>
</div>
</div></td>
</tr>
<tr data-order="metroCode" id="m$metroCode">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Location.html#22-27" title="Go to source code"><var>$metroCode</var></a>
</td>
<td class="description"><div>
<a href="#m$metroCode" class="anchor">#</a>
<div class="description short">
<p>The metro code of the location if the location is in the US. MaxMind returns
the same metro codes as the <a href="https://developers.google.com/adwords/api/docs/appendix/cities-DMAregions">Google AdWords API</a>. This attribute is returned by all end points except the
Country end point.</p>
</div>
<div class="description detailed hidden">
<p>The metro code of the location if the location is in the US. MaxMind returns
the same metro codes as the <a href="https://developers.google.com/adwords/api/docs/appendix/cities-DMAregions">Google AdWords API</a>. This attribute is returned by all end points except the
Country end point.</p>
</div>
</div></td>
</tr>
<tr data-order="timeZone" id="m$timeZone">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Location.html#29-32" title="Go to source code"><var>$timeZone</var></a>
</td>
<td class="description"><div>
<a href="#m$timeZone" class="anchor">#</a>
<div class="description short">
<p>The time zone associated with location, as specified by the <a href="http://www.iana.org/time-zones">IANA
Time Zone Database</a>, e.g., "America/New_York". This attribute is returned by all
end points except the Country end point.</p>
</div>
<div class="description detailed hidden">
<p>The time zone associated with location, as specified by the <a href="http://www.iana.org/time-zones">IANA
Time Zone Database</a>, e.g., "America/New_York". This attribute is returned by all
end points except the Country end point.</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,200 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Record\MaxMind</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li class="active"><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class MaxMind</h1>
<div class="description">
<p>Contains data about your account.</p>
<p>This record is returned by all the end points.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-GeoIP2.Record.AbstractRecord.html"><span>GeoIP2\Record\AbstractRecord</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Record\MaxMind</span></b>
</dd>
</dl>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Record.html">Record</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Record.MaxMind.html#5-19" title="Go to source code">GeoIP2/Record/MaxMind.php</a><br />
</div>
<table class="summary" id="magicProperties">
<caption>Magic properties summary</caption>
<tr data-order="queriesRemaining" id="m$queriesRemaining">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.MaxMind.html#10-11" title="Go to source code"><var>$queriesRemaining</var></a>
</td>
<td class="description"><div>
<a href="#m$queriesRemaining" class="anchor">#</a>
<div class="description short">
<p>The number of remaining queries you have for the end point you are
calling.</p>
</div>
<div class="description detailed hidden">
<p>The number of remaining queries you have for the end point you are
calling.</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,231 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Record\Postal</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li class="active"><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class Postal</h1>
<div class="description">
<p>Contains data for the postal record associated with an IP address</p>
<p>This record is returned by all the end points except the Country end
point.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-GeoIP2.Record.AbstractRecord.html"><span>GeoIP2\Record\AbstractRecord</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Record\Postal</span></b>
</dd>
</dl>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Record.html">Record</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Record.Postal.html#5-25" title="Go to source code">GeoIP2/Record/Postal.php</a><br />
</div>
<table class="summary" id="magicProperties">
<caption>Magic properties summary</caption>
<tr data-order="code" id="m$code">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Postal.html#10-13" title="Go to source code"><var>$code</var></a>
</td>
<td class="description"><div>
<a href="#m$code" class="anchor">#</a>
<div class="description short">
<p>The postal code of the location. Postal codes are not available for all
countries. In some countries, this will only contain part of the postal code.
This attribute is returned by all end points except the Country end point.</p>
</div>
<div class="description detailed hidden">
<p>The postal code of the location. Postal codes are not available for all
countries. In some countries, this will only contain part of the postal code.
This attribute is returned by all end points except the Country end point.</p>
</div>
</div></td>
</tr>
<tr data-order="confidence" id="m$confidence">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Postal.html#15-17" title="Go to source code"><var>$confidence</var></a>
</td>
<td class="description"><div>
<a href="#m$confidence" class="anchor">#</a>
<div class="description short">
<p>A value from 0-100 indicating MaxMind's confidence that the postal code is
correct. This attribute is only available from the Omni end point.</p>
</div>
<div class="description detailed hidden">
<p>A value from 0-100 indicating MaxMind's confidence that the postal code is
correct. This attribute is only available from the Omni end point.</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,362 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Record\RepresentedCountry</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li class="active"><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class RepresentedCountry</h1>
<div class="description">
<p>Contains data for the represented country associated with an IP address</p>
<p>This class contains the country-level data associated with an IP address for
the IP's represented country. The represented country is the country represented
by something like a military base or embassy.</p>
<p>This record is returned by all the end points.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-GeoIP2.Record.AbstractRecord.html"><span>GeoIP2\Record\AbstractRecord</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<a href="class-GeoIP2.Record.AbstractPlaceRecord.html"><span>GeoIP2\Record\AbstractPlaceRecord</span></a>
</dd>
<dd style="padding-left:60px">
<img src="resources/inherit.png" alt="Extended by" />
<a href="class-GeoIP2.Record.Country.html"><span>GeoIP2\Record\Country</span></a>
</dd>
<dd style="padding-left:90px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Record\RepresentedCountry</span></b>
</dd>
</dl>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Record.html">Record</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Record.RepresentedCountry.html#5-45" title="Go to source code">GeoIP2/Record/RepresentedCountry.php</a><br />
</div>
<table class="summary" id="magicProperties">
<caption>Magic properties summary</caption>
<tr data-order="confidence" id="m$confidence">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.RepresentedCountry.html#14-16" title="Go to source code"><var>$confidence</var></a>
</td>
<td class="description"><div>
<a href="#m$confidence" class="anchor">#</a>
<div class="description short">
<p>A value from 0-100 indicating MaxMind's confidence that the country is
correct. This attribute is only available from the Omni end point.</p>
</div>
<div class="description detailed hidden">
<p>A value from 0-100 indicating MaxMind's confidence that the country is
correct. This attribute is only available from the Omni end point.</p>
</div>
</div></td>
</tr>
<tr data-order="geonameId" id="m$geonameId">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.RepresentedCountry.html#18-19" title="Go to source code"><var>$geonameId</var></a>
</td>
<td class="description"><div>
<a href="#m$geonameId" class="anchor">#</a>
<div class="description short">
<p>The GeoName ID for the country. This attribute is returned by all end
points.</p>
</div>
<div class="description detailed hidden">
<p>The GeoName ID for the country. This attribute is returned by all end
points.</p>
</div>
</div></td>
</tr>
<tr data-order="isoCode" id="m$isoCode">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.RepresentedCountry.html#21-23" title="Go to source code"><var>$isoCode</var></a>
</td>
<td class="description"><div>
<a href="#m$isoCode" class="anchor">#</a>
<div class="description short">
<p>The <a href="http://en.wikipedia.org/wiki/ISO_3166-1">two-character ISO 3166-1 alpha code</a> for the country. This attribute is returned
by all end points.</p>
</div>
<div class="description detailed hidden">
<p>The <a href="http://en.wikipedia.org/wiki/ISO_3166-1">two-character ISO 3166-1 alpha code</a> for the country. This attribute is returned
by all end points.</p>
</div>
</div></td>
</tr>
<tr data-order="name" id="m$name">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.RepresentedCountry.html#25-26" title="Go to source code"><var>$name</var></a>
</td>
<td class="description"><div>
<a href="#m$name" class="anchor">#</a>
<div class="description short">
<p>The name of the country based on the languages list passed to the
constructor. This attribute is returned by all end points.</p>
</div>
<div class="description detailed hidden">
<p>The name of the country based on the languages list passed to the
constructor. This attribute is returned by all end points.</p>
</div>
</div></td>
</tr>
<tr data-order="names" id="m$names">
<td class="attributes"><code>
public
array
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.RepresentedCountry.html#28-29" title="Go to source code"><var>$names</var></a>
</td>
<td class="description"><div>
<a href="#m$names" class="anchor">#</a>
<div class="description short">
<p>An array map where the keys are language codes and the values are names. This
attribute is returned by all end points.</p>
</div>
<div class="description detailed hidden">
<p>An array map where the keys are language codes and the values are names. This
attribute is returned by all end points.</p>
</div>
</div></td>
</tr>
<tr data-order="type" id="m$type">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.RepresentedCountry.html#31-34" title="Go to source code"><var>$type</var></a>
</td>
<td class="description"><div>
<a href="#m$type" class="anchor">#</a>
<div class="description short">
<p>A string indicating the type of entity that is representing the country.
Currently we only return <code>military</code> but this could expand to include
other types such as <code>embassy</code> in the future. Returned by all
endpoints.</p>
</div>
<div class="description detailed hidden">
<p>A string indicating the type of entity that is representing the country.
Currently we only return <code>military</code> but this could expand to include
other types such as <code>embassy</code> in the future. Returned by all
endpoints.</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,324 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Record\Subdivision</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li class="active"><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class Subdivision</h1>
<div class="description">
<p>Contains data for the subdivisions associated with an IP address</p>
<p>This record is returned by all the end points except the Country end
point.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-GeoIP2.Record.AbstractRecord.html"><span>GeoIP2\Record\AbstractRecord</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<a href="class-GeoIP2.Record.AbstractPlaceRecord.html"><span>GeoIP2\Record\AbstractPlaceRecord</span></a>
</dd>
<dd style="padding-left:60px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Record\Subdivision</span></b>
</dd>
</dl>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Record.html">Record</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Record.Subdivision.html#5-42" title="Go to source code">GeoIP2/Record/Subdivision.php</a><br />
</div>
<table class="summary" id="magicProperties">
<caption>Magic properties summary</caption>
<tr data-order="confidence" id="m$confidence">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Subdivision.html#11-13" title="Go to source code"><var>$confidence</var></a>
</td>
<td class="description"><div>
<a href="#m$confidence" class="anchor">#</a>
<div class="description short">
<p>This is a value from 0-100 indicating MaxMind's confidence that the
subdivision is correct. This attribute is only available from the Omni end
point.</p>
</div>
<div class="description detailed hidden">
<p>This is a value from 0-100 indicating MaxMind's confidence that the
subdivision is correct. This attribute is only available from the Omni end
point.</p>
</div>
</div></td>
</tr>
<tr data-order="geonameId" id="m$geonameId">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Subdivision.html#15-16" title="Go to source code"><var>$geonameId</var></a>
</td>
<td class="description"><div>
<a href="#m$geonameId" class="anchor">#</a>
<div class="description short">
<p>This is a GeoName ID for the subdivision. This attribute is returned by all
end points except Country.</p>
</div>
<div class="description detailed hidden">
<p>This is a GeoName ID for the subdivision. This attribute is returned by all
end points except Country.</p>
</div>
</div></td>
</tr>
<tr data-order="isoCode" id="m$isoCode">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Subdivision.html#18-21" title="Go to source code"><var>$isoCode</var></a>
</td>
<td class="description"><div>
<a href="#m$isoCode" class="anchor">#</a>
<div class="description short">
<p>This is a string up to three characters long contain the subdivision portion
of the <a href="http://en.wikipedia.org/wiki/ISO_3166-2">ISO 3166-2 code</a>. This attribute is returned by all end points except
Country.</p>
</div>
<div class="description detailed hidden">
<p>This is a string up to three characters long contain the subdivision portion
of the <a href="http://en.wikipedia.org/wiki/ISO_3166-2">ISO 3166-2 code</a>. This attribute is returned by all end points except
Country.</p>
</div>
</div></td>
</tr>
<tr data-order="name" id="m$name">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Subdivision.html#23-25" title="Go to source code"><var>$name</var></a>
</td>
<td class="description"><div>
<a href="#m$name" class="anchor">#</a>
<div class="description short">
<p>The name of the subdivision based on the languages list passed to the
constructor. This attribute is returned by all end points except Country.</p>
</div>
<div class="description detailed hidden">
<p>The name of the subdivision based on the languages list passed to the
constructor. This attribute is returned by all end points except Country.</p>
</div>
</div></td>
</tr>
<tr data-order="names" id="m$names">
<td class="attributes"><code>
public
array
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Subdivision.html#27-29" title="Go to source code"><var>$names</var></a>
</td>
<td class="description"><div>
<a href="#m$names" class="anchor">#</a>
<div class="description short">
<p>An array map where the keys are language codes and the values are names. This
attribute is returned by all end points except Country.</p>
</div>
<div class="description detailed hidden">
<p>An array map where the keys are language codes and the values are names. This
attribute is returned by all end points except Country.</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,500 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Record\Traits</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li class="active"><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class Traits</h1>
<div class="description">
<p>Contains data for the traits record associated with an IP address</p>
<p>This record is returned by all the end points.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-GeoIP2.Record.AbstractRecord.html"><span>GeoIP2\Record\AbstractRecord</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Record\Traits</span></b>
</dd>
</dl>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Record.html">Record</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Record.Traits.html#5-87" title="Go to source code">GeoIP2/Record/Traits.php</a><br />
</div>
<table class="summary" id="magicProperties">
<caption>Magic properties summary</caption>
<tr data-order="autonomousSystemNumber" id="m$autonomousSystemNumber">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Traits.html#11-14" title="Go to source code"><var>$autonomousSystemNumber</var></a>
</td>
<td class="description"><div>
<a href="#m$autonomousSystemNumber" class="anchor">#</a>
<div class="description short">
<p>The <a href="http://en.wikipedia.org/wiki/Autonomous_system_(Internet)">autonomous system number</a> associated with the IP address. This attribute is only
available from the City/ISP/Org and Omni end points.</p>
</div>
<div class="description detailed hidden">
<p>The <a href="http://en.wikipedia.org/wiki/Autonomous_system_(Internet)">autonomous system number</a> associated with the IP address. This attribute is only
available from the City/ISP/Org and Omni end points.</p>
</div>
</div></td>
</tr>
<tr data-order="autonomousSystemOrganization" id="m$autonomousSystemOrganization">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Traits.html#16-20" title="Go to source code"><var>$autonomousSystemOrganization</var></a>
</td>
<td class="description"><div>
<a href="#m$autonomousSystemOrganization" class="anchor">#</a>
<div class="description short">
<p>The organization associated with the registered <a href="http://en.wikipedia.org/wiki/Autonomous_system_(Internet)">autonomous system number</a> for the IP address. This attribute is only available
from the City/ISP/Org and Omni end points.</p>
</div>
<div class="description detailed hidden">
<p>The organization associated with the registered <a href="http://en.wikipedia.org/wiki/Autonomous_system_(Internet)">autonomous system number</a> for the IP address. This attribute is only available
from the City/ISP/Org and Omni end points.</p>
</div>
</div></td>
</tr>
<tr data-order="domain" id="m$domain">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Traits.html#22-25" title="Go to source code"><var>$domain</var></a>
</td>
<td class="description"><div>
<a href="#m$domain" class="anchor">#</a>
<div class="description short">
<p>The second level domain associated with the IP address. This will be
something like "example.com" or "example.co.uk", not "foo.example.com". This
attribute is only available from the City/ISP/Org and Omni end points.</p>
</div>
<div class="description detailed hidden">
<p>The second level domain associated with the IP address. This will be
something like "example.com" or "example.co.uk", not "foo.example.com". This
attribute is only available from the City/ISP/Org and Omni end points.</p>
</div>
</div></td>
</tr>
<tr data-order="ipAddress" id="m$ipAddress">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Traits.html#27-32" title="Go to source code"><var>$ipAddress</var></a>
</td>
<td class="description"><div>
<a href="#m$ipAddress" class="anchor">#</a>
<div class="description short">
<p>The IP address that the data in the model is for. If you performed a "me"
lookup against the web service, this will be the externally routable IP address
for the system the code is running on. If the system is behind a NAT, this may
differ from the IP address locally assigned to it. This attribute is returned by
all end points.</p>
</div>
<div class="description detailed hidden">
<p>The IP address that the data in the model is for. If you performed a "me"
lookup against the web service, this will be the externally routable IP address
for the system the code is running on. If the system is behind a NAT, this may
differ from the IP address locally assigned to it. This attribute is returned by
all end points.</p>
</div>
</div></td>
</tr>
<tr data-order="isAnonymousProxy" id="m$isAnonymousProxy">
<td class="attributes"><code>
public
boolean
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Traits.html#34-36" title="Go to source code"><var>$isAnonymousProxy</var></a>
</td>
<td class="description"><div>
<a href="#m$isAnonymousProxy" class="anchor">#</a>
<div class="description short">
<p>This is true if the IP is an anonymous proxy. See <a href="http://dev.maxmind.com/faq/geoip#anonproxy">http://dev.maxmind.com/faq/geoip#anonproxy</a>
for further details. This attribute is returned by all end points.</p>
</div>
<div class="description detailed hidden">
<p>This is true if the IP is an anonymous proxy. See <a href="http://dev.maxmind.com/faq/geoip#anonproxy">http://dev.maxmind.com/faq/geoip#anonproxy</a>
for further details. This attribute is returned by all end points.</p>
</div>
</div></td>
</tr>
<tr data-order="isSatelliteProvider" id="m$isSatelliteProvider">
<td class="attributes"><code>
public
boolean
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Traits.html#38-40" title="Go to source code"><var>$isSatelliteProvider</var></a>
</td>
<td class="description"><div>
<a href="#m$isSatelliteProvider" class="anchor">#</a>
<div class="description short">
<p>This is true if the IP belongs to a satellite Internet provider. This
attribute is returned by all end points.</p>
</div>
<div class="description detailed hidden">
<p>This is true if the IP belongs to a satellite Internet provider. This
attribute is returned by all end points.</p>
</div>
</div></td>
</tr>
<tr data-order="isp" id="m$isp">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Traits.html#42-44" title="Go to source code"><var>$isp</var></a>
</td>
<td class="description"><div>
<a href="#m$isp" class="anchor">#</a>
<div class="description short">
<p>The name of the ISP associated the IP address. This attribute is only
available from the City/ISP/Org and Omni end points.</p>
</div>
<div class="description detailed hidden">
<p>The name of the ISP associated the IP address. This attribute is only
available from the City/ISP/Org and Omni end points.</p>
</div>
</div></td>
</tr>
<tr data-order="organization" id="m$organization">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Traits.html#46-48" title="Go to source code"><var>$organization</var></a>
</td>
<td class="description"><div>
<a href="#m$organization" class="anchor">#</a>
<div class="description short">
<p>The name of the organization associated the IP address. This attribute is
only available from the City/ISP/Org and Omni end points.</p>
</div>
<div class="description detailed hidden">
<p>The name of the organization associated the IP address. This attribute is
only available from the City/ISP/Org and Omni end points.</p>
</div>
</div></td>
</tr>
<tr data-order="userType" id="m$userType">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Traits.html#50-69" title="Go to source code"><var>$userType</var></a>
</td>
<td class="description"><div>
<a href="#m$userType" class="anchor">#</a>
<div class="description short">
<p>The user type associated with the IP address. This can be one of the
following values:</p>
<ul>
<li>business</li>
<li>cafe</li>
<li>cellular</li>
<li>college</li>
<li>content_delivery_network</li>
<li>dialup</li>
<li>government</li>
<li>hosting</li>
<li>library</li>
<li>military</li>
<li>residential</li>
<li>router</li>
<li>school</li>
<li>search_engine_spider</li>
<li>traveler</li>
</ul>
<p>This attribute is only available from the Omni end point.</p>
</div>
<div class="description detailed hidden">
<p>The user type associated with the IP address. This can be one of the
following values:</p>
<ul>
<li>business</li>
<li>cafe</li>
<li>cellular</li>
<li>college</li>
<li>content_delivery_network</li>
<li>dialup</li>
<li>government</li>
<li>hosting</li>
<li>library</li>
<li>military</li>
<li>residential</li>
<li>router</li>
<li>school</li>
<li>search_engine_spider</li>
<li>traveler</li>
</ul>
<p>This attribute is only available from the Omni end point.</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,436 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\WebService\Client</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li class="active"><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li class="active"><a href="class-GeoIP2.WebService.Client.html">Client</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.WebService.html" title="Summary of GeoIP2\WebService"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="class">
<h1>Class Client</h1>
<div class="description">
<p>This class provides a client API for all the GeoIP2 web service's end points.
The end points are Country, City, City/ISP/Org, and Omni. Each end point returns
a different set of data about an IP address, with Country returning the least
data and Omni the most.</p>
<p>Each web service end point is represented by a different model class, and
these model classes in turn contain multiple Record classes. The record classes
have attributes which contain data about the IP address.</p>
<p>If the web service does not return a particular piece of data for an IP
address, the associated attribute is not populated.</p>
<p>The web service may not return any information for an entire record, in which
case all of the attributes for that record class will be empty.</p>
<p><strong>Usage</strong></p>
<p>The basic API for this class is the same for all of the web service end
points. First you create a web service object with your MaxMind <code>&lt;span
class="php-var"&gt;$userId&lt;/span&gt;</code> and <code>&lt;span
class="php-var"&gt;$licenseKey&lt;/span&gt;</code>, then you call the method
corresponding to a specific end point, passing it the IP address you want to
look up.</p>
<p>If the request succeeds, the method call will return a model class for the
end point you called. This model in turn contains multiple record classes, each
of which represents part of the data returned by the web service.</p>
<p>If the request fails, the client class throws an exception.</p>
<p><strong>Exceptions</strong></p>
<p>For details on the possible errors returned by the web service itself, see
<a href="http://dev.maxmind.com/geoip2/geoip/web-services">the GeoIP2 web service docs</a>.</p>
<p>If the web service returns an explicit error document, this is thrown as a
<code><a href="class-GeoIP2.Exception.WebServiceException.html">GeoIP2\Exception\WebServiceException</a></code>. If some other sort of transport
error occurs, this is thrown as a <code><a href="class-GeoIP2.Exception.HttpException.html">GeoIP2\Exception\HttpException</a></code>. The
difference is that the web service error includes an error message and error
code delivered by the web service. The latter is thrown when some sort of
unanticipated error occurs, such as the web service returning a 500 or an
invalid error document.</p>
<p>If the web service returns any status code besides 200, 4xx, or 5xx, this
also becomes a <code><a href="class-GeoIP2.Exception.HttpException.html">GeoIP2\Exception\HttpException</a></code>.</p>
<p>Finally, if the web service returns a 200 but the body is invalid, the client
throws a <code><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2\Exception\GeoIP2Exception</a></code>.</p>
</div>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.WebService.html">WebService</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.WebService.Client.html#17-312" title="Go to source code">GeoIP2/WebService/Client.php</a><br />
</div>
<table class="summary" id="methods">
<caption>Methods summary</caption>
<tr data-order="__construct" id="___construct">
<td class="attributes"><code>
public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#___construct">#</a>
<code><a href="source-class-GeoIP2.WebService.Client.html#76-100" title="Go to source code">__construct</a>( <span>integer <var>$userId</var></span>, <span>string <var>$licenseKey</var></span>, <span>array <var>$languages</var> = <span class="php-keyword1">array</span>(<span class="php-quote">'en'</span>)</span>, <span>string <var>$host</var> = <span class="php-quote">'geoip.maxmind.com'</span></span>, <span>object <var>$guzzleClient</var> = <span class="php-keyword1">null</span> </span> )</code>
<div class="description short">
<p>Constructor.</p>
</div>
<div class="description detailed hidden">
<p>Constructor.</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$userId</var></dt>
<dd><code>integer</code><br>$userId Your MaxMind user ID</dd>
<dt><var>$licenseKey</var></dt>
<dd><code>string</code><br>$licenseKey Your MaxMind license key</dd>
<dt><var>$languages</var></dt>
<dd><code>array</code><br>$languages List of language codes to use in name property from most preferred to
least preferred.</dd>
<dt><var>$host</var></dt>
<dd><code>string</code><br>$host Optional host parameter</dd>
<dt><var>$guzzleClient</var></dt>
<dd><code>object</code><br>$guzzleClient Optional Guzzle client to use (to facilitate unit testing).</dd>
</dl></div>
</div>
</div></td>
</tr>
<tr data-order="city" id="_city">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Model.City.html">GeoIP2\Model\City</a></code>
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_city">#</a>
<code><a href="source-class-GeoIP2.WebService.Client.html#102-121" title="Go to source code">city</a>( <span>string <var>$ipAddress</var> = <span class="php-quote">'me'</span></span> )</code>
<div class="description short">
<p>This method calls the GeoIP2 City endpoint.</p>
</div>
<div class="description detailed hidden">
<p>This method calls the GeoIP2 City endpoint.</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$ipAddress</var></dt>
<dd><code>string</code><br>$ipAddress IPv4 or IPv6 address as a string. If no address is provided, the
address that the web service is called from will be used.</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code><code><a href="class-GeoIP2.Model.City.html">GeoIP2\Model\City</a></code></code><br />
</div>
<h4>Throws</h4>
<div class="list">
<code><code><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2\Exception\GeoIP2Exception</a></code></code><br>if there was a generic error processing your request.<br />
<code><code><a href="class-GeoIP2.Exception.HttpException.html">GeoIP2\Exception\HttpException</a></code></code><br>if there was an HTTP transport error.<br />
<code><code><a href="class-GeoIP2.Exception.WebServiceException.html">GeoIP2\Exception\WebServiceException</a></code></code><br>if an error was returned by MaxMind's GeoIP2 web service.<br />
</div>
</div>
</div></td>
</tr>
<tr data-order="country" id="_country">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Model.Country.html">GeoIP2\Model\Country</a></code>
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_country">#</a>
<code><a href="source-class-GeoIP2.WebService.Client.html#123-142" title="Go to source code">country</a>( <span>string <var>$ipAddress</var> = <span class="php-quote">'me'</span></span> )</code>
<div class="description short">
<p>This method calls the GeoIP2 Country endpoint.</p>
</div>
<div class="description detailed hidden">
<p>This method calls the GeoIP2 Country endpoint.</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$ipAddress</var></dt>
<dd><code>string</code><br>$ipAddress IPv4 or IPv6 address as a string. If no address is provided, the
address that the web service is called from will be used.</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code><code><a href="class-GeoIP2.Model.Country.html">GeoIP2\Model\Country</a></code></code><br />
</div>
<h4>Throws</h4>
<div class="list">
<code><code><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2\Exception\GeoIP2Exception</a></code></code><br>if there was a generic error processing your request.<br />
<code><code><a href="class-GeoIP2.Exception.HttpException.html">GeoIP2\Exception\HttpException</a></code></code><br>if there was an HTTP transport error.<br />
<code><code><a href="class-GeoIP2.Exception.WebServiceException.html">GeoIP2\Exception\WebServiceException</a></code></code><br>if an error was returned by MaxMind's GeoIP2 web service.<br />
</div>
</div>
</div></td>
</tr>
<tr data-order="cityIspOrg" id="_cityIspOrg">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Model.CityIspOrg.html">GeoIP2\Model\CityIspOrg</a></code>
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_cityIspOrg">#</a>
<code><a href="source-class-GeoIP2.WebService.Client.html#144-163" title="Go to source code">cityIspOrg</a>( <span>string <var>$ipAddress</var> = <span class="php-quote">'me'</span></span> )</code>
<div class="description short">
<p>This method calls the GeoIP2 City/ISP/Org endpoint.</p>
</div>
<div class="description detailed hidden">
<p>This method calls the GeoIP2 City/ISP/Org endpoint.</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$ipAddress</var></dt>
<dd><code>string</code><br>$ipAddress IPv4 or IPv6 address as a string. If no address is provided, the
address that the web service is called from will be used.</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code><code><a href="class-GeoIP2.Model.CityIspOrg.html">GeoIP2\Model\CityIspOrg</a></code></code><br />
</div>
<h4>Throws</h4>
<div class="list">
<code><code><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2\Exception\GeoIP2Exception</a></code></code><br>if there was a generic error processing your request.<br />
<code><code><a href="class-GeoIP2.Exception.HttpException.html">GeoIP2\Exception\HttpException</a></code></code><br>if there was an HTTP transport error.<br />
<code><code><a href="class-GeoIP2.Exception.WebServiceException.html">GeoIP2\Exception\WebServiceException</a></code></code><br>if an error was returned by MaxMind's GeoIP2 web service.<br />
</div>
</div>
</div></td>
</tr>
<tr data-order="omni" id="_omni">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Model.Omni.html">GeoIP2\Model\Omni</a></code>
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_omni">#</a>
<code><a href="source-class-GeoIP2.WebService.Client.html#165-184" title="Go to source code">omni</a>( <span>string <var>$ipAddress</var> = <span class="php-quote">'me'</span></span> )</code>
<div class="description short">
<p>This method calls the GeoIP2 Omni endpoint.</p>
</div>
<div class="description detailed hidden">
<p>This method calls the GeoIP2 Omni endpoint.</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$ipAddress</var></dt>
<dd><code>string</code><br>$ipAddress IPv4 or IPv6 address as a string. If no address is provided, the
address that the web service is called from will be used.</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code><code><a href="class-GeoIP2.Model.Omni.html">GeoIP2\Model\Omni</a></code></code><br />
</div>
<h4>Throws</h4>
<div class="list">
<code><code><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2\Exception\GeoIP2Exception</a></code></code><br>if there was a generic error processing your request.<br />
<code><code><a href="class-GeoIP2.Exception.HttpException.html">GeoIP2\Exception\HttpException</a></code></code><br>if there was an HTTP transport error.<br />
<code><code><a href="class-GeoIP2.Exception.WebServiceException.html">GeoIP2\Exception\WebServiceException</a></code></code><br>if an error was returned by MaxMind's GeoIP2 web service.<br />
</div>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,3 @@
var ApiGen = ApiGen || {};
ApiGen.elements = [["c","Exception"],["c","GeoIP2\\Exception\\GeoIP2Exception"],["c","GeoIP2\\Exception\\HttpException"],["c","GeoIP2\\Exception\\WebServiceException"],["c","GeoIP2\\Model\\City"],["c","GeoIP2\\Model\\CityIspOrg"],["c","GeoIP2\\Model\\Country"],["c","GeoIP2\\Model\\Omni"],["c","GeoIP2\\Record\\AbstractPlaceRecord"],["c","GeoIP2\\Record\\AbstractRecord"],["c","GeoIP2\\Record\\City"],["c","GeoIP2\\Record\\Continent"],["c","GeoIP2\\Record\\Country"],["c","GeoIP2\\Record\\Location"],["c","GeoIP2\\Record\\MaxMind"],["c","GeoIP2\\Record\\Postal"],["c","GeoIP2\\Record\\RepresentedCountry"],["c","GeoIP2\\Record\\Subdivision"],["c","GeoIP2\\Record\\Traits"],["c","GeoIP2\\WebService\\Client"]];

142
doc/v0.1.0/index.html Normal file
View File

@ -0,0 +1,142 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Overview</title>
<script type="text/javascript" src="resources/combined.js"></script>
<script type="text/javascript" src="elementlist.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<span>Overview</span>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Model.City.html">GeoIP2\Model\City</a></li>
<li><a href="class-GeoIP2.Model.CityIspOrg.html">GeoIP2\Model\CityIspOrg</a></li>
<li><a href="class-GeoIP2.Model.Country.html">GeoIP2\Model\Country</a></li>
<li><a href="class-GeoIP2.Model.Omni.html">GeoIP2\Model\Omni</a></li>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">GeoIP2\Record\AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">GeoIP2\Record\AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">GeoIP2\Record\City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">GeoIP2\Record\Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">GeoIP2\Record\Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">GeoIP2\Record\Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">GeoIP2\Record\MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">GeoIP2\Record\Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">GeoIP2\Record\RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">GeoIP2\Record\Traits</a></li>
<li><a href="class-GeoIP2.WebService.Client.html">GeoIP2\WebService\Client</a></li>
</ul>
<h3>Exceptions</h3>
<ul>
<li><a href="class-Exception.html">Exception</a></li>
<li><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2\Exception\GeoIP2Exception</a></li>
<li><a href="class-GeoIP2.Exception.HttpException.html">GeoIP2\Exception\HttpException</a></li>
<li><a href="class-GeoIP2.Exception.WebServiceException.html">GeoIP2\Exception\WebServiceException</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" autofocus />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li class="active">
<span>Overview</span> </li>
<li>
<span>Namespace</span> </li>
<li>
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content">
<h1>Overview</h1>
<table class="summary" id="namespaces">
<caption>Namespaces summary</caption>
<tr>
<td class="name"><a href="namespace-GeoIP2.html">GeoIP2</a></td>
</tr>
<tr>
<td class="name"><a href="namespace-GeoIP2.Exception.html">GeoIP2\Exception</a></td>
</tr>
<tr>
<td class="name"><a href="namespace-GeoIP2.Model.html">GeoIP2\Model</a></td>
</tr>
<tr>
<td class="name"><a href="namespace-GeoIP2.Record.html">GeoIP2\Record</a></td>
</tr>
<tr>
<td class="name"><a href="namespace-GeoIP2.WebService.html">GeoIP2\WebService</a></td>
</tr>
<tr>
<td class="name"><a href="namespace-PHP.html">PHP</a></td>
</tr>
</table>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,123 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Namespace GeoIP2\Exception</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li class="active"><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Exceptions</h3>
<ul>
<li><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2Exception</a></li>
<li><a href="class-GeoIP2.Exception.HttpException.html">HttpException</a></li>
<li><a href="class-GeoIP2.Exception.WebServiceException.html">WebServiceException</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li class="active">
<span>Namespace</span> </li>
<li>
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="namespace">
<h1>Namespace <a href="namespace-GeoIP2.html">GeoIP2</a>\Exception</h1>
<table class="summary" id="exceptions">
<caption>Exceptions summary</caption>
<tr>
<td class="name"><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2Exception</a></td>
<td>This class represents a generic error.
<!-- by Texy2! --></td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Exception.HttpException.html">HttpException</a></td>
<td>This class represents an HTTP transport error.</td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Exception.WebServiceException.html">WebServiceException</a></td>
<td>This class represents an error returned by MaxMind's GeoIP2 web service.</td>
</tr>
</table>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,129 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Namespace GeoIP2\Model</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Model.City.html">City</a></li>
<li><a href="class-GeoIP2.Model.CityIspOrg.html">CityIspOrg</a></li>
<li><a href="class-GeoIP2.Model.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Model.Omni.html">Omni</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li class="active">
<span>Namespace</span> </li>
<li>
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="namespace">
<h1>Namespace <a href="namespace-GeoIP2.html">GeoIP2</a>\Model</h1>
<table class="summary" id="classes">
<caption>Classes summary</caption>
<tr>
<td class="name"><a href="class-GeoIP2.Model.City.html">City</a></td>
<td>This class provides a model for the data returned by the GeoIP2 City end point.</td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Model.CityIspOrg.html">CityIspOrg</a></td>
<td>This class provides a model for the data returned by the GeoIP2 City/ISP/Org end
point.</td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Model.Country.html">Country</a></td>
<td>This class provides a model for the data returned by the GeoIP2 Country end
point.</td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Model.Omni.html">Omni</a></td>
<td>This class provides a model for the data returned by the GeoIP2 Omni end point.</td>
</tr>
</table>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,162 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Namespace GeoIP2\Record</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li class="active">
<span>Namespace</span> </li>
<li>
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="namespace">
<h1>Namespace <a href="namespace-GeoIP2.html">GeoIP2</a>\Record</h1>
<table class="summary" id="classes">
<caption>Classes summary</caption>
<tr>
<td class="name"><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></td>
<td></td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></td>
<td></td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Record.City.html">City</a></td>
<td>City-level data associated with an IP address.</td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Record.Continent.html">Continent</a></td>
<td>Contains data for the continent record associated with an IP address</td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Record.Country.html">Country</a></td>
<td>Contains data for the country record associated with an IP address</td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Record.Location.html">Location</a></td>
<td>Contains data for the location record associated with an IP address</td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></td>
<td>Contains data about your account.</td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Record.Postal.html">Postal</a></td>
<td>Contains data for the postal record associated with an IP address</td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></td>
<td>Contains data for the represented country associated with an IP address</td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></td>
<td></td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Record.Traits.html">Traits</a></td>
<td></td>
</tr>
</table>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,115 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Namespace GeoIP2\WebService</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li class="active"><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.WebService.Client.html">Client</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li class="active">
<span>Namespace</span> </li>
<li>
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="namespace">
<h1>Namespace <a href="namespace-GeoIP2.html">GeoIP2</a>\WebService</h1>
<table class="summary" id="classes">
<caption>Classes summary</caption>
<tr>
<td class="name"><a href="class-GeoIP2.WebService.Client.html">Client</a></td>
<td>This class provides a client API for all the GeoIP2 web service's end points.
The end points are Country, City, City/ISP/Org, and Omni. Each end point returns
a different set of data about an IP address, with Country returning the least
data and Omni the most.</td>
</tr>
</table>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,115 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Namespace GeoIP2</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<div id="elements">
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li class="active">
<span>Namespace</span> </li>
<li>
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="namespace">
<h1>Namespace GeoIP2</h1>
<table class="summary" id="namespaces">
<caption>Namespaces summary</caption>
<tr>
<td class="name"><a href="namespace-GeoIP2.Exception.html">GeoIP2\Exception</a></td>
</tr>
<tr>
<td class="name"><a href="namespace-GeoIP2.Model.html">GeoIP2\Model</a></td>
</tr>
<tr>
<td class="name"><a href="namespace-GeoIP2.Record.html">GeoIP2\Record</a></td>
</tr>
<tr>
<td class="name"><a href="namespace-GeoIP2.WebService.html">GeoIP2\WebService</a></td>
</tr>
</table>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,112 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Namespace PHP</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li class="active"><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Exceptions</h3>
<ul>
<li><a href="class-Exception.html">Exception</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li class="active">
<span>Namespace</span> </li>
<li>
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<div id="content" class="namespace">
<h1>Namespace PHP</h1>
<table class="summary" id="exceptions">
<caption>Exceptions summary</caption>
<tr>
<td class="name"><a href="class-Exception.html">Exception</a></td>
<td></td>
</tr>
</table>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

View File

@ -0,0 +1,608 @@
/*!
* ApiGen 2.8.0 - API documentation generator for PHP 5.3+
*
* Copyright (c) 2010-2011 David Grudl (http://davidgrudl.com)
* Copyright (c) 2011-2012 Jaroslav Hanslík (https://github.com/kukulich)
* Copyright (c) 2011-2012 Ondřej Nešpor (https://github.com/Andrewsville)
*
* For the full copyright and license information, please view
* the file LICENSE.md that was distributed with this source code.
*/
body {
font: 13px/1.5 Verdana, 'Geneva CE', lucida, sans-serif;
margin: 0;
padding: 0;
background: #ffffff;
color: #333333;
}
h1, h2, h3, h4, caption {
font-family: 'Trebuchet MS', 'Geneva CE', lucida, sans-serif;
color: #053368;
}
h1 {
color: #1e5eb6;
font-size: 230%;
font-weight: normal;
margin: .3em 0;
}
h2 {
color: #1e5eb6;
font-size: 150%;
font-weight: normal;
margin: -.3em 0 .3em 0;
}
h3 {
font-size: 1.6em;
font-weight: normal;
margin-bottom: 2px;
}
h4 {
font-size: 100%;
font-weight: bold;
padding: 0;
margin: 0;
}
caption {
border: 1px solid #cccccc;
background: #ecede5;
font-weight: bold;
font-size: 1.2em;
padding: 3px 5px;
text-align: left;
margin-bottom: 0;
}
p {
margin: .7em 0 1em;
padding: 0;
}
hr {
margin: 2em 0 1em;
border: none;
border-top: 1px solid #cccccc;
height: 0;
}
a {
color: #006aeb;
padding: 3px 1px;
text-decoration: none;
}
h1 a {
color: #1e5eb6;
}
a:hover, a:active, a:focus, a:hover b, a:hover var {
background-color: #006aeb;
color: #ffffff !important;
}
code, var, pre {
font-family: monospace;
}
var {
font-weight: bold;
font-style: normal;
color: #ca8a04;
}
pre {
margin: 0;
}
code a b {
color: #000000;
}
.deprecated {
text-decoration: line-through;
}
.invalid {
color: #e71818;
}
.hidden {
display: none;
}
/* Left side */
#left {
overflow: auto;
width: 270px;
height: 100%;
position: fixed;
}
/* Menu */
#menu {
padding: 10px;
}
#menu ul {
list-style: none;
padding: 0;
margin: 0;
}
#menu ul ul {
padding-left: 10px;
}
#menu li {
white-space: nowrap;
position: relative;
}
#menu a {
display: block;
padding: 0 2px;
}
#menu .active > a, #menu > span {
color: #333333;
background: none;
font-weight: bold;
}
#menu .active > a.invalid {
color: #e71818;
}
#menu .active > a:hover, #menu .active > a:active, #menu .active > a:focus {
background-color: #006aeb;
}
#menu #groups span {
position: absolute;
top: 4px;
right: 2px;
cursor: pointer;
display: block;
width: 12px;
height: 12px;
background: url('collapsed.png') transparent 0 0 no-repeat;
}
#menu #groups span:hover {
background-position: -12px 0;
}
#menu #groups span.collapsed {
background-position: 0 -12px;
}
#menu #groups span.collapsed:hover {
background-position: -12px -12px;
}
#menu #groups ul.collapsed {
display: none;
}
/* Right side */
#right {
overflow: auto;
margin-left: 275px;
height: 100%;
position: fixed;
left: 0;
right: 0;
}
#rightInner {
max-width: 1000px;
min-width: 350px;
}
/* Search */
#search {
float: right;
margin: 3px 8px;
}
#search input.text {
padding: 3px 5px;
width: 250px;
}
/* Autocomplete */
.ac_results {
padding: 0;
border: 1px solid #cccccc;
background-color: #ffffff;
overflow: hidden;
z-index: 99999;
}
.ac_results ul {
width: 100%;
list-style-position: outside;
list-style: none;
padding: 0;
margin: 0;
}
.ac_results li {
margin: 0;
padding: 2px 5px;
cursor: default;
display: block;
font: 12px 'Trebuchet MS', 'Geneva CE', lucida, sans-serif;
line-height: 16px;
overflow: hidden;
white-space: nowrap;
}
.ac_results li strong {
color: #000000;
}
.ac_odd {
background-color: #eeeeee;
}
.ac_over {
background-color: #006aeb;
color: #ffffff;
}
.ac_results li.ac_over strong {
color: #ffffff;
}
/* Navigation */
#navigation {
padding: 3px 8px;
background-color: #f6f6f4;
height: 26px;
}
#navigation ul {
list-style: none;
margin: 0 8px 4px 0;
padding: 0;
overflow: hidden;
float: left;
}
#navigation ul + ul {
border-left: 1px solid #000000;
padding-left: 8px;
}
#navigation ul li {
float: left;
margin: 2px;
padding: 0 3px;
font-family: Verdana, 'Geneva CE', lucida, sans-serif;
color: #808080;
}
#navigation ul li.active {
background-color: #053368;
color: #ffffff;
font-weight: bold;
}
#navigation ul li a {
color: #000000;
font-weight: bold;
padding: 0;
}
#navigation ul li span {
float: left;
padding: 0 3px;
}
#navigation ul li a:hover span, #navigation ul li a:active span, #navigation ul li a:focus span {
background-color: #006aeb;
}
/* Content */
#content {
clear: both;
padding: 5px 15px;
}
.description pre {
padding: .6em;
background: #fcfcf7;
}
#content > .description {
background: #ecede5;
padding: 1px 8px;
margin: 1.2em 0;
}
#content > .description pre {
margin: .5em 0;
}
dl.tree {
margin: 1.2em 0;
}
dl.tree dd {
margin: 0;
padding: 0;
}
.info {
margin: 1.2em 0;
}
.summary {
border: 1px solid #cccccc;
border-collapse: collapse;
font-size: 1em;
width: 100%;
margin: 1.2em 0 2.4em;
}
.summary caption {
border-width: 1px 1px 0;
}
.summary caption.switchable {
background: #ecede5 url('sort.png') no-repeat center right;
cursor: pointer;
}
.summary td {
border: 1px solid #cccccc;
margin: 0;
padding: 3px 10px;
font-size: 1em;
vertical-align: top;
}
.summary td:first-child {
text-align: right;
}
#packages.summary td:first-child, #namespaces.summary td:first-child, .inherited.summary td:first-child, .used.summary td:first-child {
text-align: left;
}
.summary tr:hover td {
background: #f6f6f4;
}
.summary .description pre {
border: .5em solid #ecede5;
}
.summary .description p {
margin: 0;
}
.summary .description p + p, .summary .description ul {
margin: 3px 0 0 0;
}
.summary .description.detailed h4 {
margin-top: 3px;
}
.summary dl {
margin: 0;
}
.summary dd {
margin: 0 0 0 25px;
}
.name, .attributes {
white-space: nowrap;
}
.value {
white-space: pre-wrap;
}
td.name, td.attributes {
width: 1%;
}
.class #methods .name {
width: auto;
white-space: normal;
}
.class #methods .name > div > code {
white-space: pre-wrap;
}
.class #methods .name > div > code span, .function .value > code {
white-space: nowrap;
}
.class #methods td.name > div, .class td.description > div {
position: relative;
padding-right: 1em;
}
.anchor {
position: absolute;
top: 0;
right: 0;
line-height: 1;
font-size: 85%;
margin: 0;
color: #006aeb !important;
}
.list {
margin: 0 0 5px 25px;
}
div.invalid {
background-color: #fae4e0;
padding: 10px;
}
/* Splitter */
#splitter {
position: fixed;
height: 100%;
width: 5px;
left: 270px;
background: #1e5eb6 url('resize.png') left center no-repeat;
cursor: e-resize;
}
#splitter.active {
opacity: .5;
}
/* Footer */
#footer {
border-top: 1px solid #e9eeef;
clear: both;
color: #a7a7a7;
font-size: 8pt;
text-align: center;
padding: 20px 0 0;
margin: 3em 0 0;
height: 90px;
background: #ffffff url('footer.png') no-repeat center top;
}
/* Tree */
div.tree ul {
list-style: none;
background: url('tree-vertical.png') left repeat-y;
padding: 0;
margin-left: 20px;
}
div.tree li {
margin: 0;
padding: 0;
}
div.tree div {
padding-left: 30px;
}
div.tree div.notlast {
background: url('tree-hasnext.png') left 10px no-repeat;
}
div.tree div.last {
background: url('tree-last.png') left -240px no-repeat;
}
div.tree li.last {
background: url('tree-cleaner.png') left center repeat-y;
}
div.tree span.padding {
padding-left: 15px;
}
/* Source code */
.php-keyword1 {
color: #e71818;
font-weight: bold;
}
.php-keyword2 {
font-weight: bold;
}
.php-var {
color: #d59401;
font-weight: bold;
}
.php-num {
color: #cd0673;
}
.php-quote {
color: #008000;
}
.php-comment {
color: #929292;
}
.xlang {
color: #ff0000;
font-weight: bold;
}
span.l {
display: block;
}
span.l.selected {
background: #f6f6f4;
}
span.l a {
color: #333333;
}
span.l a:hover, div.l a:active, div.l a:focus {
background: transparent;
color: #333333 !important;
}
span.l .php-var a {
color: #d59401;
}
span.l .php-var a:hover, span.l .php-var a:active, span.l .php-var a:focus {
color: #d59401 !important;
}
span.l a.l {
padding-left: 2px;
color: #c0c0c0;
}
span.l a.l:hover, span.l a.l:active, span.l a.l:focus {
background: transparent;
color: #c0c0c0 !important;
}
#rightInner.medium #navigation {
height: 52px;
}
#rightInner.medium #navigation ul:first-child + ul {
clear: left;
border: none;
padding: 0;
}
#rightInner.medium .name, #rightInner.medium .attributes {
white-space: normal;
}
#rightInner.small #search {
float: left;
}
#rightInner.small #navigation {
height: 78px;
}
#rightInner.small #navigation ul:first-child {
clear: both;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 B

View File

@ -0,0 +1,110 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File GeoIP2/Exception/GeoIP2Exception.php</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li class="active"><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Exceptions</h3>
<ul>
<li class="active"><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2Exception</a></li>
<li><a href="class-GeoIP2.Exception.HttpException.html">HttpException</a></li>
<li><a href="class-GeoIP2.Exception.WebServiceException.html">WebServiceException</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Exception.html" title="Summary of GeoIP2\Exception"><span>Namespace</span></a>
</li>
<li>
<a href="class-GeoIP2.Exception.GeoIP2Exception.html" title="Summary of GeoIP2\Exception\GeoIP2Exception"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> GeoIP2\Exception;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-comment">/**
</span></span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-comment"> * This class represents a generic error.
</span></span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-comment"> */</span>
</span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-keyword1">class</span> <a id="GeoIP2Exception" href="#GeoIP2Exception">GeoIP2Exception</a> <span class="php-keyword1">extends</span> \Exception
</span><span id="9" class="l"><a class="l" href="#9"> 9: </a>{
</span><span id="10" class="l"><a class="l" href="#10">10: </a>}
</span><span id="11" class="l"><a class="l" href="#11">11: </a></span></code></pre>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,125 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File GeoIP2/Exception/HttpException.php</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li class="active"><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Exceptions</h3>
<ul>
<li><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2Exception</a></li>
<li class="active"><a href="class-GeoIP2.Exception.HttpException.html">HttpException</a></li>
<li><a href="class-GeoIP2.Exception.WebServiceException.html">WebServiceException</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Exception.html" title="Summary of GeoIP2\Exception"><span>Namespace</span></a>
</li>
<li>
<a href="class-GeoIP2.Exception.HttpException.html" title="Summary of GeoIP2\Exception\HttpException"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> GeoIP2\Exception;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-comment">/**
</span></span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-comment"> * This class represents an HTTP transport error.
</span></span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-comment"> */</span>
</span><span id="8" class="l"><a class="l" href="#8"> 8: </a>
</span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-keyword1">class</span> <a id="HttpException" href="#HttpException">HttpException</a> <span class="php-keyword1">extends</span> GeoIP2Exception
</span><span id="10" class="l"><a class="l" href="#10">10: </a>{
</span><span id="11" class="l"><a class="l" href="#11">11: </a> <span class="php-comment">/**
</span></span><span id="12" class="l"><a class="l" href="#12">12: </a><span class="php-comment"> * The URI queried
</span></span><span id="13" class="l"><a class="l" href="#13">13: </a><span class="php-comment"> */</span>
</span><span id="14" class="l"><a class="l" href="#14">14: </a> <span class="php-keyword1">public</span> <span class="php-var"><a id="$uri" href="#$uri">$uri</a></span>;
</span><span id="15" class="l"><a class="l" href="#15">15: </a>
</span><span id="16" class="l"><a class="l" href="#16">16: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___construct" href="#___construct">__construct</a>(
</span><span id="17" class="l"><a class="l" href="#17">17: </a> <span class="php-var">$message</span>,
</span><span id="18" class="l"><a class="l" href="#18">18: </a> <span class="php-var">$httpStatus</span>,
</span><span id="19" class="l"><a class="l" href="#19">19: </a> <span class="php-var">$uri</span>,
</span><span id="20" class="l"><a class="l" href="#20">20: </a> Exception <span class="php-var">$previous</span> = <span class="php-keyword1">null</span>
</span><span id="21" class="l"><a class="l" href="#21">21: </a> ) {
</span><span id="22" class="l"><a class="l" href="#22">22: </a> <span class="php-var">$this</span>-&gt;uri = <span class="php-var">$uri</span>;
</span><span id="23" class="l"><a class="l" href="#23">23: </a> parent::__construct(<span class="php-var">$message</span>, <span class="php-var">$httpStatus</span>, <span class="php-var">$previous</span>);
</span><span id="24" class="l"><a class="l" href="#24">24: </a> }
</span><span id="25" class="l"><a class="l" href="#25">25: </a>}
</span><span id="26" class="l"><a class="l" href="#26">26: </a></span></code></pre>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,126 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File GeoIP2/Exception/WebServiceException.php</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li class="active"><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Exceptions</h3>
<ul>
<li><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2Exception</a></li>
<li><a href="class-GeoIP2.Exception.HttpException.html">HttpException</a></li>
<li class="active"><a href="class-GeoIP2.Exception.WebServiceException.html">WebServiceException</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Exception.html" title="Summary of GeoIP2\Exception"><span>Namespace</span></a>
</li>
<li>
<a href="class-GeoIP2.Exception.WebServiceException.html" title="Summary of GeoIP2\Exception\WebServiceException"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> GeoIP2\Exception;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-comment">/**
</span></span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-comment"> * This class represents an error returned by MaxMind's GeoIP2
</span></span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-comment"> * web service.
</span></span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-comment"> */</span>
</span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-keyword1">class</span> <a id="WebServiceException" href="#WebServiceException">WebServiceException</a> <span class="php-keyword1">extends</span> HttpException
</span><span id="10" class="l"><a class="l" href="#10">10: </a>{
</span><span id="11" class="l"><a class="l" href="#11">11: </a> <span class="php-comment">/**
</span></span><span id="12" class="l"><a class="l" href="#12">12: </a><span class="php-comment"> * The code returned by the MaxMind web service
</span></span><span id="13" class="l"><a class="l" href="#13">13: </a><span class="php-comment"> */</span>
</span><span id="14" class="l"><a class="l" href="#14">14: </a> <span class="php-keyword1">public</span> <span class="php-var"><a id="$error" href="#$error">$error</a></span>;
</span><span id="15" class="l"><a class="l" href="#15">15: </a>
</span><span id="16" class="l"><a class="l" href="#16">16: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___construct" href="#___construct">__construct</a>(
</span><span id="17" class="l"><a class="l" href="#17">17: </a> <span class="php-var">$message</span>,
</span><span id="18" class="l"><a class="l" href="#18">18: </a> <span class="php-var">$error</span>,
</span><span id="19" class="l"><a class="l" href="#19">19: </a> <span class="php-var">$httpStatus</span>,
</span><span id="20" class="l"><a class="l" href="#20">20: </a> <span class="php-var">$uri</span>,
</span><span id="21" class="l"><a class="l" href="#21">21: </a> Exception <span class="php-var">$previous</span> = <span class="php-keyword1">null</span>
</span><span id="22" class="l"><a class="l" href="#22">22: </a> ) {
</span><span id="23" class="l"><a class="l" href="#23">23: </a> <span class="php-var">$this</span>-&gt;error = <span class="php-var">$error</span>;
</span><span id="24" class="l"><a class="l" href="#24">24: </a> parent::__construct(<span class="php-var">$message</span>, <span class="php-var">$httpStatus</span>, <span class="php-var">$uri</span>, <span class="php-var">$previous</span>);
</span><span id="25" class="l"><a class="l" href="#25">25: </a> }
</span><span id="26" class="l"><a class="l" href="#26">26: </a>}
</span><span id="27" class="l"><a class="l" href="#27">27: </a></span></code></pre>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,221 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File GeoIP2/Model/City.php</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li class="active"><a href="class-GeoIP2.Model.City.html">City</a></li>
<li><a href="class-GeoIP2.Model.CityIspOrg.html">CityIspOrg</a></li>
<li><a href="class-GeoIP2.Model.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Model.Omni.html">Omni</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Model.html" title="Summary of GeoIP2\Model"><span>Namespace</span></a>
</li>
<li>
<a href="class-GeoIP2.Model.City.html" title="Summary of GeoIP2\Model\City"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> GeoIP2\Model;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-comment">/**
</span></span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-comment"> * This class provides a model for the data returned by the GeoIP2
</span></span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-comment"> * City end point.
</span></span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-comment"> *
</span></span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-comment"> * The only difference between the City, City/ISP/Org, and Omni model
</span></span><span id="10" class="l"><a class="l" href="#10"> 10: </a><span class="php-comment"> * classes is which fields in each record may be populated. See
</span></span><span id="11" class="l"><a class="l" href="#11"> 11: </a><span class="php-comment"> * http://dev.maxmind.com/geoip/geoip2/web-services more details.
</span></span><span id="12" class="l"><a class="l" href="#12"> 12: </a><span class="php-comment"> *
</span></span><span id="13" class="l"><a class="l" href="#13"> 13: </a><span class="php-comment"> * @property \GeoIP2\Record\City $city City data for the requested IP
</span></span><span id="14" class="l"><a class="l" href="#14"> 14: </a><span class="php-comment"> * address.
</span></span><span id="15" class="l"><a class="l" href="#15"> 15: </a><span class="php-comment"> *
</span></span><span id="16" class="l"><a class="l" href="#16"> 16: </a><span class="php-comment"> * @property \GeoIP2\Record\Continent $continent Continent data for the
</span></span><span id="17" class="l"><a class="l" href="#17"> 17: </a><span class="php-comment"> * requested IP address.
</span></span><span id="18" class="l"><a class="l" href="#18"> 18: </a><span class="php-comment"> *
</span></span><span id="19" class="l"><a class="l" href="#19"> 19: </a><span class="php-comment"> * @property \GeoIP2\Record\Country $country Country data for the requested
</span></span><span id="20" class="l"><a class="l" href="#20"> 20: </a><span class="php-comment"> * IP address. This object represents the country where MaxMind believes the
</span></span><span id="21" class="l"><a class="l" href="#21"> 21: </a><span class="php-comment"> * end user is located.
</span></span><span id="22" class="l"><a class="l" href="#22"> 22: </a><span class="php-comment"> *
</span></span><span id="23" class="l"><a class="l" href="#23"> 23: </a><span class="php-comment"> * @property \GeoIP2\Record\Location $location Location data for the
</span></span><span id="24" class="l"><a class="l" href="#24"> 24: </a><span class="php-comment"> * requested IP address.
</span></span><span id="25" class="l"><a class="l" href="#25"> 25: </a><span class="php-comment"> *
</span></span><span id="26" class="l"><a class="l" href="#26"> 26: </a><span class="php-comment"> * @property \GeoIP2\Record\MaxMind $maxmind Data related to your MaxMind
</span></span><span id="27" class="l"><a class="l" href="#27"> 27: </a><span class="php-comment"> * account.
</span></span><span id="28" class="l"><a class="l" href="#28"> 28: </a><span class="php-comment"> *
</span></span><span id="29" class="l"><a class="l" href="#29"> 29: </a><span class="php-comment"> * @property \GeoIP2\Record\Country $registeredCountry Registered country
</span></span><span id="30" class="l"><a class="l" href="#30"> 30: </a><span class="php-comment"> * data for the requested IP address. This record represents the country
</span></span><span id="31" class="l"><a class="l" href="#31"> 31: </a><span class="php-comment"> * where the ISP has registered a given IP block in and may differ from the
</span></span><span id="32" class="l"><a class="l" href="#32"> 32: </a><span class="php-comment"> * user's country.
</span></span><span id="33" class="l"><a class="l" href="#33"> 33: </a><span class="php-comment"> *
</span></span><span id="34" class="l"><a class="l" href="#34"> 34: </a><span class="php-comment"> * @property \GeoIP2\Record\RepresentedCountry $representedCountry
</span></span><span id="35" class="l"><a class="l" href="#35"> 35: </a><span class="php-comment"> * Represented country data for the requested IP address. The represented
</span></span><span id="36" class="l"><a class="l" href="#36"> 36: </a><span class="php-comment"> * country is used for things like military bases or embassies. It is only
</span></span><span id="37" class="l"><a class="l" href="#37"> 37: </a><span class="php-comment"> * present when the represented country differs from the country.
</span></span><span id="38" class="l"><a class="l" href="#38"> 38: </a><span class="php-comment"> *
</span></span><span id="39" class="l"><a class="l" href="#39"> 39: </a><span class="php-comment"> * @property array $subdivisions An array of {@link \GeoIP2\Record\Subdivision}
</span></span><span id="40" class="l"><a class="l" href="#40"> 40: </a><span class="php-comment"> * objects representing the country subdivisions for the requested IP
</span></span><span id="41" class="l"><a class="l" href="#41"> 41: </a><span class="php-comment"> * address. The number and type of subdivisions varies by country, but a
</span></span><span id="42" class="l"><a class="l" href="#42"> 42: </a><span class="php-comment"> * subdivision is typically a state, province, county, etc. Subdivisions
</span></span><span id="43" class="l"><a class="l" href="#43"> 43: </a><span class="php-comment"> * are ordered from most general (largest) to most specific (smallest).
</span></span><span id="44" class="l"><a class="l" href="#44"> 44: </a><span class="php-comment"> * If the response did not contain any subdivisions, this method returns
</span></span><span id="45" class="l"><a class="l" href="#45"> 45: </a><span class="php-comment"> * an empty array.
</span></span><span id="46" class="l"><a class="l" href="#46"> 46: </a><span class="php-comment"> *
</span></span><span id="47" class="l"><a class="l" href="#47"> 47: </a><span class="php-comment"> * @property \GeoIP2\Record\Subdivision $mostSpecificSubdivision An object
</span></span><span id="48" class="l"><a class="l" href="#48"> 48: </a><span class="php-comment"> * representing the most specific subdivision returned. If the response
</span></span><span id="49" class="l"><a class="l" href="#49"> 49: </a><span class="php-comment"> * did not contain any subdivisions, this method returns an empty
</span></span><span id="50" class="l"><a class="l" href="#50"> 50: </a><span class="php-comment"> * {@link \GeoIP2\Record\Subdivision} object.
</span></span><span id="51" class="l"><a class="l" href="#51"> 51: </a><span class="php-comment"> *
</span></span><span id="52" class="l"><a class="l" href="#52"> 52: </a><span class="php-comment"> * @property \GeoIP2\Record\Traits $traits Data for the traits of the
</span></span><span id="53" class="l"><a class="l" href="#53"> 53: </a><span class="php-comment"> * requested IP address.
</span></span><span id="54" class="l"><a class="l" href="#54"> 54: </a><span class="php-comment"> */</span>
</span><span id="55" class="l"><a class="l" href="#55"> 55: </a><span class="php-keyword1">class</span> <a id="City" href="#City">City</a> <span class="php-keyword1">extends</span> Country
</span><span id="56" class="l"><a class="l" href="#56"> 56: </a>{
</span><span id="57" class="l"><a class="l" href="#57"> 57: </a> <span class="php-comment">/**
</span></span><span id="58" class="l"><a class="l" href="#58"> 58: </a><span class="php-comment"> * @ignore
</span></span><span id="59" class="l"><a class="l" href="#59"> 59: </a><span class="php-comment"> */</span>
</span><span id="60" class="l"><a class="l" href="#60"> 60: </a> <span class="php-keyword1">protected</span> <span class="php-var"><a id="$city" href="#$city">$city</a></span>;
</span><span id="61" class="l"><a class="l" href="#61"> 61: </a> <span class="php-comment">/**
</span></span><span id="62" class="l"><a class="l" href="#62"> 62: </a><span class="php-comment"> * @ignore
</span></span><span id="63" class="l"><a class="l" href="#63"> 63: </a><span class="php-comment"> */</span>
</span><span id="64" class="l"><a class="l" href="#64"> 64: </a> <span class="php-keyword1">protected</span> <span class="php-var"><a id="$location" href="#$location">$location</a></span>;
</span><span id="65" class="l"><a class="l" href="#65"> 65: </a> <span class="php-comment">/**
</span></span><span id="66" class="l"><a class="l" href="#66"> 66: </a><span class="php-comment"> * @ignore
</span></span><span id="67" class="l"><a class="l" href="#67"> 67: </a><span class="php-comment"> */</span>
</span><span id="68" class="l"><a class="l" href="#68"> 68: </a> <span class="php-keyword1">protected</span> <span class="php-var"><a id="$postal" href="#$postal">$postal</a></span>;
</span><span id="69" class="l"><a class="l" href="#69"> 69: </a> <span class="php-comment">/**
</span></span><span id="70" class="l"><a class="l" href="#70"> 70: </a><span class="php-comment"> * @ignore
</span></span><span id="71" class="l"><a class="l" href="#71"> 71: </a><span class="php-comment"> */</span>
</span><span id="72" class="l"><a class="l" href="#72"> 72: </a> <span class="php-keyword1">protected</span> <span class="php-var"><a id="$subdivisions" href="#$subdivisions">$subdivisions</a></span> = <span class="php-keyword1">array</span>();
</span><span id="73" class="l"><a class="l" href="#73"> 73: </a>
</span><span id="74" class="l"><a class="l" href="#74"> 74: </a> <span class="php-comment">/**
</span></span><span id="75" class="l"><a class="l" href="#75"> 75: </a><span class="php-comment"> * @ignore
</span></span><span id="76" class="l"><a class="l" href="#76"> 76: </a><span class="php-comment"> */</span>
</span><span id="77" class="l"><a class="l" href="#77"> 77: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___construct" href="#___construct">__construct</a>(<span class="php-var">$raw</span>, <span class="php-var">$languages</span>)
</span><span id="78" class="l"><a class="l" href="#78"> 78: </a> {
</span><span id="79" class="l"><a class="l" href="#79"> 79: </a> parent::__construct(<span class="php-var">$raw</span>, <span class="php-var">$languages</span>);
</span><span id="80" class="l"><a class="l" href="#80"> 80: </a>
</span><span id="81" class="l"><a class="l" href="#81"> 81: </a> <span class="php-var">$this</span>-&gt;city = <span class="php-keyword1">new</span> \GeoIP2\Record\City(<span class="php-var">$this</span>-&gt;get(<span class="php-quote">'city'</span>), <span class="php-var">$languages</span>);
</span><span id="82" class="l"><a class="l" href="#82"> 82: </a> <span class="php-var">$this</span>-&gt;location = <span class="php-keyword1">new</span> \GeoIP2\Record\Location(<span class="php-var">$this</span>-&gt;get(<span class="php-quote">'location'</span>));
</span><span id="83" class="l"><a class="l" href="#83"> 83: </a> <span class="php-var">$this</span>-&gt;postal = <span class="php-keyword1">new</span> \GeoIP2\Record\Postal(<span class="php-var">$this</span>-&gt;get(<span class="php-quote">'postal'</span>));
</span><span id="84" class="l"><a class="l" href="#84"> 84: </a>
</span><span id="85" class="l"><a class="l" href="#85"> 85: </a> <span class="php-var">$this</span>-&gt;createSubdivisions(<span class="php-var">$raw</span>, <span class="php-var">$languages</span>);
</span><span id="86" class="l"><a class="l" href="#86"> 86: </a> }
</span><span id="87" class="l"><a class="l" href="#87"> 87: </a>
</span><span id="88" class="l"><a class="l" href="#88"> 88: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">function</span> <a id="_createSubdivisions" href="#_createSubdivisions">createSubdivisions</a>(<span class="php-var">$raw</span>, <span class="php-var">$languages</span>)
</span><span id="89" class="l"><a class="l" href="#89"> 89: </a> {
</span><span id="90" class="l"><a class="l" href="#90"> 90: </a> <span class="php-keyword1">if</span> (!<span class="php-keyword1">isset</span>(<span class="php-var">$raw</span>[<span class="php-quote">'subdivisions'</span>])) {
</span><span id="91" class="l"><a class="l" href="#91"> 91: </a> <span class="php-keyword1">return</span>;
</span><span id="92" class="l"><a class="l" href="#92"> 92: </a> }
</span><span id="93" class="l"><a class="l" href="#93"> 93: </a>
</span><span id="94" class="l"><a class="l" href="#94"> 94: </a> <span class="php-keyword1">foreach</span> (<span class="php-var">$raw</span>[<span class="php-quote">'subdivisions'</span>] <span class="php-keyword1">as</span> <span class="php-var">$sub</span>) {
</span><span id="95" class="l"><a class="l" href="#95"> 95: </a> <span class="php-keyword2">array_push</span>(
</span><span id="96" class="l"><a class="l" href="#96"> 96: </a> <span class="php-var">$this</span>-&gt;subdivisions,
</span><span id="97" class="l"><a class="l" href="#97"> 97: </a> <span class="php-keyword1">new</span> \GeoIP2\Record\Subdivision(<span class="php-var">$sub</span>, <span class="php-var">$languages</span>)
</span><span id="98" class="l"><a class="l" href="#98"> 98: </a> );
</span><span id="99" class="l"><a class="l" href="#99"> 99: </a> }
</span><span id="100" class="l"><a class="l" href="#100">100: </a> }
</span><span id="101" class="l"><a class="l" href="#101">101: </a>
</span><span id="102" class="l"><a class="l" href="#102">102: </a> <span class="php-comment">/**
</span></span><span id="103" class="l"><a class="l" href="#103">103: </a><span class="php-comment"> * @ignore
</span></span><span id="104" class="l"><a class="l" href="#104">104: </a><span class="php-comment"> */</span>
</span><span id="105" class="l"><a class="l" href="#105">105: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___get" href="#___get">__get</a>(<span class="php-var">$attr</span>)
</span><span id="106" class="l"><a class="l" href="#106">106: </a> {
</span><span id="107" class="l"><a class="l" href="#107">107: </a> <span class="php-keyword1">if</span> (<span class="php-var">$attr</span> == <span class="php-quote">'mostSpecificSubdivision'</span>) {
</span><span id="108" class="l"><a class="l" href="#108">108: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;<span class="php-var">$attr</span>();
</span><span id="109" class="l"><a class="l" href="#109">109: </a> } <span class="php-keyword1">else</span> {
</span><span id="110" class="l"><a class="l" href="#110">110: </a> <span class="php-keyword1">return</span> parent::__get(<span class="php-var">$attr</span>);
</span><span id="111" class="l"><a class="l" href="#111">111: </a> }
</span><span id="112" class="l"><a class="l" href="#112">112: </a> }
</span><span id="113" class="l"><a class="l" href="#113">113: </a>
</span><span id="114" class="l"><a class="l" href="#114">114: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">function</span> <a id="_mostSpecificSubdivision" href="#_mostSpecificSubdivision">mostSpecificSubdivision</a>()
</span><span id="115" class="l"><a class="l" href="#115">115: </a> {
</span><span id="116" class="l"><a class="l" href="#116">116: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">empty</span>(<span class="php-var">$this</span>-&gt;subdivisions)?
</span><span id="117" class="l"><a class="l" href="#117">117: </a> <span class="php-keyword1">new</span> \GeoIP2\Record\Subdivision(<span class="php-keyword1">array</span>(), <span class="php-var">$this</span>-&gt;languages):
</span><span id="118" class="l"><a class="l" href="#118">118: </a> <span class="php-keyword2">end</span>(<span class="php-var">$this</span>-&gt;subdivisions);
</span><span id="119" class="l"><a class="l" href="#119">119: </a> }
</span><span id="120" class="l"><a class="l" href="#120">120: </a>}
</span><span id="121" class="l"><a class="l" href="#121">121: </a></span></code></pre>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,158 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File GeoIP2/Model/CityIspOrg.php</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Model.City.html">City</a></li>
<li class="active"><a href="class-GeoIP2.Model.CityIspOrg.html">CityIspOrg</a></li>
<li><a href="class-GeoIP2.Model.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Model.Omni.html">Omni</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Model.html" title="Summary of GeoIP2\Model"><span>Namespace</span></a>
</li>
<li>
<a href="class-GeoIP2.Model.CityIspOrg.html" title="Summary of GeoIP2\Model\CityIspOrg"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> GeoIP2\Model;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-comment">/**
</span></span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-comment"> * This class provides a model for the data returned by the GeoIP2
</span></span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-comment"> * City/ISP/Org end point.
</span></span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-comment"> *
</span></span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-comment"> * The only difference between the City, City/ISP/Org, and Omni model
</span></span><span id="10" class="l"><a class="l" href="#10">10: </a><span class="php-comment"> * classes is which fields in each record may be populated. See
</span></span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-comment"> * http://dev.maxmind.com/geoip/geoip2/web-services more details.
</span></span><span id="12" class="l"><a class="l" href="#12">12: </a><span class="php-comment"> *
</span></span><span id="13" class="l"><a class="l" href="#13">13: </a><span class="php-comment"> * @property \GeoIP2\Record\City $city City data for the requested IP
</span></span><span id="14" class="l"><a class="l" href="#14">14: </a><span class="php-comment"> * address.
</span></span><span id="15" class="l"><a class="l" href="#15">15: </a><span class="php-comment"> *
</span></span><span id="16" class="l"><a class="l" href="#16">16: </a><span class="php-comment"> * @property \GeoIP2\Record\Continent $continent Continent data for the
</span></span><span id="17" class="l"><a class="l" href="#17">17: </a><span class="php-comment"> * requested IP address.
</span></span><span id="18" class="l"><a class="l" href="#18">18: </a><span class="php-comment"> *
</span></span><span id="19" class="l"><a class="l" href="#19">19: </a><span class="php-comment"> * @property \GeoIP2\Record\Country $country Country data for the requested
</span></span><span id="20" class="l"><a class="l" href="#20">20: </a><span class="php-comment"> * IP address. This object represents the country where MaxMind believes the
</span></span><span id="21" class="l"><a class="l" href="#21">21: </a><span class="php-comment"> * end user is located.
</span></span><span id="22" class="l"><a class="l" href="#22">22: </a><span class="php-comment"> *
</span></span><span id="23" class="l"><a class="l" href="#23">23: </a><span class="php-comment"> * @property \GeoIP2\Record\Location $location Location data for the
</span></span><span id="24" class="l"><a class="l" href="#24">24: </a><span class="php-comment"> * requested IP address.
</span></span><span id="25" class="l"><a class="l" href="#25">25: </a><span class="php-comment"> *
</span></span><span id="26" class="l"><a class="l" href="#26">26: </a><span class="php-comment"> * @property \GeoIP2\Record\MaxMind $maxmind Data related to your MaxMind
</span></span><span id="27" class="l"><a class="l" href="#27">27: </a><span class="php-comment"> * account.
</span></span><span id="28" class="l"><a class="l" href="#28">28: </a><span class="php-comment"> *
</span></span><span id="29" class="l"><a class="l" href="#29">29: </a><span class="php-comment"> * @property \GeoIP2\Record\Country $registeredCountry Registered country
</span></span><span id="30" class="l"><a class="l" href="#30">30: </a><span class="php-comment"> * data for the requested IP address. This record represents the country
</span></span><span id="31" class="l"><a class="l" href="#31">31: </a><span class="php-comment"> * where the ISP has registered a given IP block in and may differ from the
</span></span><span id="32" class="l"><a class="l" href="#32">32: </a><span class="php-comment"> * user's country.
</span></span><span id="33" class="l"><a class="l" href="#33">33: </a><span class="php-comment"> *
</span></span><span id="34" class="l"><a class="l" href="#34">34: </a><span class="php-comment"> * @property \GeoIP2\Record\RepresentedCountry $representedCountry
</span></span><span id="35" class="l"><a class="l" href="#35">35: </a><span class="php-comment"> * Represented country data for the requested IP address. The represented
</span></span><span id="36" class="l"><a class="l" href="#36">36: </a><span class="php-comment"> * country is used for things like military bases or embassies. It is only
</span></span><span id="37" class="l"><a class="l" href="#37">37: </a><span class="php-comment"> * present when the represented country differs from the country.
</span></span><span id="38" class="l"><a class="l" href="#38">38: </a><span class="php-comment"> *
</span></span><span id="39" class="l"><a class="l" href="#39">39: </a><span class="php-comment"> * @property array $subdivisions An array of {@link \GeoIP2\Record\Subdivision}
</span></span><span id="40" class="l"><a class="l" href="#40">40: </a><span class="php-comment"> * objects representing the country subdivisions for the requested IP
</span></span><span id="41" class="l"><a class="l" href="#41">41: </a><span class="php-comment"> * address. The number and type of subdivisions varies by country, but a
</span></span><span id="42" class="l"><a class="l" href="#42">42: </a><span class="php-comment"> * subdivision is typically a state, province, county, etc. Subdivisions
</span></span><span id="43" class="l"><a class="l" href="#43">43: </a><span class="php-comment"> * are ordered from most general (largest) to most specific (smallest).
</span></span><span id="44" class="l"><a class="l" href="#44">44: </a><span class="php-comment"> * If the response did not contain any subdivisions, this method returns
</span></span><span id="45" class="l"><a class="l" href="#45">45: </a><span class="php-comment"> * an empty array.
</span></span><span id="46" class="l"><a class="l" href="#46">46: </a><span class="php-comment"> *
</span></span><span id="47" class="l"><a class="l" href="#47">47: </a><span class="php-comment"> * @property \GeoIP2\Record\Subdivision $mostSpecificSubdivision An object
</span></span><span id="48" class="l"><a class="l" href="#48">48: </a><span class="php-comment"> * representing the most specific subdivision returned. If the response
</span></span><span id="49" class="l"><a class="l" href="#49">49: </a><span class="php-comment"> * did not contain any subdivisions, this method returns an empty
</span></span><span id="50" class="l"><a class="l" href="#50">50: </a><span class="php-comment"> * {@link \GeoIP2\Record\Subdivision} object.
</span></span><span id="51" class="l"><a class="l" href="#51">51: </a><span class="php-comment"> *
</span></span><span id="52" class="l"><a class="l" href="#52">52: </a><span class="php-comment"> * @property \GeoIP2\Record\Traits $traits Data for the traits of the
</span></span><span id="53" class="l"><a class="l" href="#53">53: </a><span class="php-comment"> * requested IP address.
</span></span><span id="54" class="l"><a class="l" href="#54">54: </a><span class="php-comment"> */</span>
</span><span id="55" class="l"><a class="l" href="#55">55: </a><span class="php-keyword1">class</span> <a id="CityIspOrg" href="#CityIspOrg">CityIspOrg</a> <span class="php-keyword1">extends</span> City
</span><span id="56" class="l"><a class="l" href="#56">56: </a>{
</span><span id="57" class="l"><a class="l" href="#57">57: </a>}
</span><span id="58" class="l"><a class="l" href="#58">58: </a></span></code></pre>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,196 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File GeoIP2/Model/Country.php</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Model.City.html">City</a></li>
<li><a href="class-GeoIP2.Model.CityIspOrg.html">CityIspOrg</a></li>
<li class="active"><a href="class-GeoIP2.Model.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Model.Omni.html">Omni</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Model.html" title="Summary of GeoIP2\Model"><span>Namespace</span></a>
</li>
<li>
<a href="class-GeoIP2.Model.Country.html" title="Summary of GeoIP2\Model\Country"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> GeoIP2\Model;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-comment">/**
</span></span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-comment"> * This class provides a model for the data returned by the GeoIP2 Country
</span></span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-comment"> * end point.
</span></span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-comment"> *
</span></span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-comment"> * The only difference between the City, City/ISP/Org, and Omni model
</span></span><span id="10" class="l"><a class="l" href="#10">10: </a><span class="php-comment"> * classes is which fields in each record may be populated. See
</span></span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-comment"> * http://dev.maxmind.com/geoip/geoip2/web-services more details.
</span></span><span id="12" class="l"><a class="l" href="#12">12: </a><span class="php-comment"> *
</span></span><span id="13" class="l"><a class="l" href="#13">13: </a><span class="php-comment"> * @property \GeoIP2\Record\Continent $continent Continent data for the
</span></span><span id="14" class="l"><a class="l" href="#14">14: </a><span class="php-comment"> * requested IP address.
</span></span><span id="15" class="l"><a class="l" href="#15">15: </a><span class="php-comment"> *
</span></span><span id="16" class="l"><a class="l" href="#16">16: </a><span class="php-comment"> * @property \GeoIP2\Record\Country $country Country data for the requested
</span></span><span id="17" class="l"><a class="l" href="#17">17: </a><span class="php-comment"> * IP address. This object represents the country where MaxMind believes the
</span></span><span id="18" class="l"><a class="l" href="#18">18: </a><span class="php-comment"> * end user is located.
</span></span><span id="19" class="l"><a class="l" href="#19">19: </a><span class="php-comment"> *
</span></span><span id="20" class="l"><a class="l" href="#20">20: </a><span class="php-comment"> * @property \GeoIP2\Record\MaxMind $maxmind Data related to your MaxMind
</span></span><span id="21" class="l"><a class="l" href="#21">21: </a><span class="php-comment"> * account.
</span></span><span id="22" class="l"><a class="l" href="#22">22: </a><span class="php-comment"> *
</span></span><span id="23" class="l"><a class="l" href="#23">23: </a><span class="php-comment"> * @property \GeoIP2\Record\Country $registeredCountry Registered country
</span></span><span id="24" class="l"><a class="l" href="#24">24: </a><span class="php-comment"> * data for the requested IP address. This record represents the country
</span></span><span id="25" class="l"><a class="l" href="#25">25: </a><span class="php-comment"> * where the ISP has registered a given IP block in and may differ from the
</span></span><span id="26" class="l"><a class="l" href="#26">26: </a><span class="php-comment"> * user's country.
</span></span><span id="27" class="l"><a class="l" href="#27">27: </a><span class="php-comment"> *
</span></span><span id="28" class="l"><a class="l" href="#28">28: </a><span class="php-comment"> * @property \GeoIP2\Record\RepresentedCountry $representedCountry
</span></span><span id="29" class="l"><a class="l" href="#29">29: </a><span class="php-comment"> * Represented country data for the requested IP address. The represented
</span></span><span id="30" class="l"><a class="l" href="#30">30: </a><span class="php-comment"> * country is used for things like military bases or embassies. It is only
</span></span><span id="31" class="l"><a class="l" href="#31">31: </a><span class="php-comment"> * present when the represented country differs from the country.
</span></span><span id="32" class="l"><a class="l" href="#32">32: </a><span class="php-comment"> *
</span></span><span id="33" class="l"><a class="l" href="#33">33: </a><span class="php-comment"> * @property \GeoIP2\Record\Traits $traits Data for the traits of the
</span></span><span id="34" class="l"><a class="l" href="#34">34: </a><span class="php-comment"> * requested IP address.
</span></span><span id="35" class="l"><a class="l" href="#35">35: </a><span class="php-comment"> */</span>
</span><span id="36" class="l"><a class="l" href="#36">36: </a><span class="php-keyword1">class</span> <a id="Country" href="#Country">Country</a>
</span><span id="37" class="l"><a class="l" href="#37">37: </a>{
</span><span id="38" class="l"><a class="l" href="#38">38: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$continent" href="#$continent">$continent</a></span>;
</span><span id="39" class="l"><a class="l" href="#39">39: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$country" href="#$country">$country</a></span>;
</span><span id="40" class="l"><a class="l" href="#40">40: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$languages" href="#$languages">$languages</a></span>;
</span><span id="41" class="l"><a class="l" href="#41">41: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$maxmind" href="#$maxmind">$maxmind</a></span>;
</span><span id="42" class="l"><a class="l" href="#42">42: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$registeredCountry" href="#$registeredCountry">$registeredCountry</a></span>;
</span><span id="43" class="l"><a class="l" href="#43">43: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$representedCountry" href="#$representedCountry">$representedCountry</a></span>;
</span><span id="44" class="l"><a class="l" href="#44">44: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$traits" href="#$traits">$traits</a></span>;
</span><span id="45" class="l"><a class="l" href="#45">45: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$raw" href="#$raw">$raw</a></span>;
</span><span id="46" class="l"><a class="l" href="#46">46: </a>
</span><span id="47" class="l"><a class="l" href="#47">47: </a> <span class="php-comment">/**
</span></span><span id="48" class="l"><a class="l" href="#48">48: </a><span class="php-comment"> * @ignore
</span></span><span id="49" class="l"><a class="l" href="#49">49: </a><span class="php-comment"> */</span>
</span><span id="50" class="l"><a class="l" href="#50">50: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___construct" href="#___construct">__construct</a>(<span class="php-var">$raw</span>, <span class="php-var">$languages</span>)
</span><span id="51" class="l"><a class="l" href="#51">51: </a> {
</span><span id="52" class="l"><a class="l" href="#52">52: </a> <span class="php-var">$this</span>-&gt;raw = <span class="php-var">$raw</span>;
</span><span id="53" class="l"><a class="l" href="#53">53: </a>
</span><span id="54" class="l"><a class="l" href="#54">54: </a> <span class="php-var">$this</span>-&gt;continent = <span class="php-keyword1">new</span> \GeoIP2\Record\Continent(
</span><span id="55" class="l"><a class="l" href="#55">55: </a> <span class="php-var">$this</span>-&gt;get(<span class="php-quote">'continent'</span>),
</span><span id="56" class="l"><a class="l" href="#56">56: </a> <span class="php-var">$languages</span>
</span><span id="57" class="l"><a class="l" href="#57">57: </a> );
</span><span id="58" class="l"><a class="l" href="#58">58: </a> <span class="php-var">$this</span>-&gt;country = <span class="php-keyword1">new</span> \GeoIP2\Record\Country(
</span><span id="59" class="l"><a class="l" href="#59">59: </a> <span class="php-var">$this</span>-&gt;get(<span class="php-quote">'country'</span>),
</span><span id="60" class="l"><a class="l" href="#60">60: </a> <span class="php-var">$languages</span>
</span><span id="61" class="l"><a class="l" href="#61">61: </a> );
</span><span id="62" class="l"><a class="l" href="#62">62: </a> <span class="php-var">$this</span>-&gt;maxmind = <span class="php-keyword1">new</span> \GeoIP2\Record\MaxMind(<span class="php-var">$this</span>-&gt;get(<span class="php-quote">'maxmind'</span>));
</span><span id="63" class="l"><a class="l" href="#63">63: </a> <span class="php-var">$this</span>-&gt;registeredCountry = <span class="php-keyword1">new</span> \GeoIP2\Record\Country(
</span><span id="64" class="l"><a class="l" href="#64">64: </a> <span class="php-var">$this</span>-&gt;get(<span class="php-quote">'registered_country'</span>),
</span><span id="65" class="l"><a class="l" href="#65">65: </a> <span class="php-var">$languages</span>
</span><span id="66" class="l"><a class="l" href="#66">66: </a> );
</span><span id="67" class="l"><a class="l" href="#67">67: </a> <span class="php-var">$this</span>-&gt;representedCountry = <span class="php-keyword1">new</span> \GeoIP2\Record\RepresentedCountry(
</span><span id="68" class="l"><a class="l" href="#68">68: </a> <span class="php-var">$this</span>-&gt;get(<span class="php-quote">'represented_country'</span>),
</span><span id="69" class="l"><a class="l" href="#69">69: </a> <span class="php-var">$languages</span>
</span><span id="70" class="l"><a class="l" href="#70">70: </a> );
</span><span id="71" class="l"><a class="l" href="#71">71: </a> <span class="php-var">$this</span>-&gt;traits = <span class="php-keyword1">new</span> \GeoIP2\Record\Traits(<span class="php-var">$this</span>-&gt;get(<span class="php-quote">'traits'</span>));
</span><span id="72" class="l"><a class="l" href="#72">72: </a>
</span><span id="73" class="l"><a class="l" href="#73">73: </a> <span class="php-var">$this</span>-&gt;languages = <span class="php-var">$languages</span>;
</span><span id="74" class="l"><a class="l" href="#74">74: </a> }
</span><span id="75" class="l"><a class="l" href="#75">75: </a>
</span><span id="76" class="l"><a class="l" href="#76">76: </a> <span class="php-comment">/**
</span></span><span id="77" class="l"><a class="l" href="#77">77: </a><span class="php-comment"> * @ignore
</span></span><span id="78" class="l"><a class="l" href="#78">78: </a><span class="php-comment"> */</span>
</span><span id="79" class="l"><a class="l" href="#79">79: </a> <span class="php-keyword1">protected</span> <span class="php-keyword1">function</span> <a id="_get" href="#_get">get</a>(<span class="php-var">$field</span>)
</span><span id="80" class="l"><a class="l" href="#80">80: </a> {
</span><span id="81" class="l"><a class="l" href="#81">81: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">isset</span>(<span class="php-var">$this</span>-&gt;raw[<span class="php-var">$field</span>]) ? <span class="php-var">$this</span>-&gt;raw[<span class="php-var">$field</span>] : <span class="php-keyword1">array</span>();
</span><span id="82" class="l"><a class="l" href="#82">82: </a> }
</span><span id="83" class="l"><a class="l" href="#83">83: </a>
</span><span id="84" class="l"><a class="l" href="#84">84: </a> <span class="php-comment">/**
</span></span><span id="85" class="l"><a class="l" href="#85">85: </a><span class="php-comment"> * @ignore
</span></span><span id="86" class="l"><a class="l" href="#86">86: </a><span class="php-comment"> */</span>
</span><span id="87" class="l"><a class="l" href="#87">87: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___get" href="#___get">__get</a> (<span class="php-var">$attr</span>)
</span><span id="88" class="l"><a class="l" href="#88">88: </a> {
</span><span id="89" class="l"><a class="l" href="#89">89: </a> <span class="php-keyword1">if</span> (<span class="php-var">$attr</span> != <span class="php-quote">&quot;instance&quot;</span> &amp;&amp; <span class="php-keyword1">isset</span>(<span class="php-var">$this</span>-&gt;<span class="php-var">$attr</span>)) {
</span><span id="90" class="l"><a class="l" href="#90">90: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;<span class="php-var">$attr</span>;
</span><span id="91" class="l"><a class="l" href="#91">91: </a> }
</span><span id="92" class="l"><a class="l" href="#92">92: </a>
</span><span id="93" class="l"><a class="l" href="#93">93: </a> <span class="php-keyword1">throw</span> <span class="php-keyword1">new</span> \RuntimeException(<span class="php-quote">&quot;Unknown attribute: </span><span class="php-var">$attr</span><span class="php-quote">&quot;</span>);
</span><span id="94" class="l"><a class="l" href="#94">94: </a> }
</span><span id="95" class="l"><a class="l" href="#95">95: </a>}
</span><span id="96" class="l"><a class="l" href="#96">96: </a></span></code></pre>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,158 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File GeoIP2/Model/Omni.php</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Model.City.html">City</a></li>
<li><a href="class-GeoIP2.Model.CityIspOrg.html">CityIspOrg</a></li>
<li><a href="class-GeoIP2.Model.Country.html">Country</a></li>
<li class="active"><a href="class-GeoIP2.Model.Omni.html">Omni</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Model.html" title="Summary of GeoIP2\Model"><span>Namespace</span></a>
</li>
<li>
<a href="class-GeoIP2.Model.Omni.html" title="Summary of GeoIP2\Model\Omni"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> GeoIP2\Model;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-comment">/**
</span></span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-comment"> * This class provides a model for the data returned by the GeoIP2
</span></span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-comment"> * Omni end point.
</span></span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-comment"> *
</span></span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-comment"> * The only difference between the City, City/ISP/Org, and Omni model
</span></span><span id="10" class="l"><a class="l" href="#10">10: </a><span class="php-comment"> * classes is which fields in each record may be populated. See
</span></span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-comment"> * http://dev.maxmind.com/geoip/geoip2/web-services more details.
</span></span><span id="12" class="l"><a class="l" href="#12">12: </a><span class="php-comment"> *
</span></span><span id="13" class="l"><a class="l" href="#13">13: </a><span class="php-comment"> * @property \GeoIP2\Record\City $city City data for the requested IP
</span></span><span id="14" class="l"><a class="l" href="#14">14: </a><span class="php-comment"> * address.
</span></span><span id="15" class="l"><a class="l" href="#15">15: </a><span class="php-comment"> *
</span></span><span id="16" class="l"><a class="l" href="#16">16: </a><span class="php-comment"> * @property \GeoIP2\Record\Continent $continent Continent data for the
</span></span><span id="17" class="l"><a class="l" href="#17">17: </a><span class="php-comment"> * requested IP address.
</span></span><span id="18" class="l"><a class="l" href="#18">18: </a><span class="php-comment"> *
</span></span><span id="19" class="l"><a class="l" href="#19">19: </a><span class="php-comment"> * @property \GeoIP2\Record\Country $country Country data for the requested
</span></span><span id="20" class="l"><a class="l" href="#20">20: </a><span class="php-comment"> * IP address. This object represents the country where MaxMind believes the
</span></span><span id="21" class="l"><a class="l" href="#21">21: </a><span class="php-comment"> * end user is located.
</span></span><span id="22" class="l"><a class="l" href="#22">22: </a><span class="php-comment"> *
</span></span><span id="23" class="l"><a class="l" href="#23">23: </a><span class="php-comment"> * @property \GeoIP2\Record\Location $location Location data for the
</span></span><span id="24" class="l"><a class="l" href="#24">24: </a><span class="php-comment"> * requested IP address.
</span></span><span id="25" class="l"><a class="l" href="#25">25: </a><span class="php-comment"> *
</span></span><span id="26" class="l"><a class="l" href="#26">26: </a><span class="php-comment"> * @property \GeoIP2\Record\MaxMind $maxmind Data related to your MaxMind
</span></span><span id="27" class="l"><a class="l" href="#27">27: </a><span class="php-comment"> * account.
</span></span><span id="28" class="l"><a class="l" href="#28">28: </a><span class="php-comment"> *
</span></span><span id="29" class="l"><a class="l" href="#29">29: </a><span class="php-comment"> * @property \GeoIP2\Record\Country $registeredCountry Registered country
</span></span><span id="30" class="l"><a class="l" href="#30">30: </a><span class="php-comment"> * data for the requested IP address. This record represents the country
</span></span><span id="31" class="l"><a class="l" href="#31">31: </a><span class="php-comment"> * where the ISP has registered a given IP block in and may differ from the
</span></span><span id="32" class="l"><a class="l" href="#32">32: </a><span class="php-comment"> * user's country.
</span></span><span id="33" class="l"><a class="l" href="#33">33: </a><span class="php-comment"> *
</span></span><span id="34" class="l"><a class="l" href="#34">34: </a><span class="php-comment"> * @property \GeoIP2\Record\RepresentedCountry $representedCountry
</span></span><span id="35" class="l"><a class="l" href="#35">35: </a><span class="php-comment"> * Represented country data for the requested IP address. The represented
</span></span><span id="36" class="l"><a class="l" href="#36">36: </a><span class="php-comment"> * country is used for things like military bases or embassies. It is only
</span></span><span id="37" class="l"><a class="l" href="#37">37: </a><span class="php-comment"> * present when the represented country differs from the country.
</span></span><span id="38" class="l"><a class="l" href="#38">38: </a><span class="php-comment"> *
</span></span><span id="39" class="l"><a class="l" href="#39">39: </a><span class="php-comment"> * @property array $subdivisions An array of {@link \GeoIP2\Record\Subdivision}
</span></span><span id="40" class="l"><a class="l" href="#40">40: </a><span class="php-comment"> * objects representing the country subdivisions for the requested IP
</span></span><span id="41" class="l"><a class="l" href="#41">41: </a><span class="php-comment"> * address. The number and type of subdivisions varies by country, but a
</span></span><span id="42" class="l"><a class="l" href="#42">42: </a><span class="php-comment"> * subdivision is typically a state, province, county, etc. Subdivisions
</span></span><span id="43" class="l"><a class="l" href="#43">43: </a><span class="php-comment"> * are ordered from most general (largest) to most specific (smallest).
</span></span><span id="44" class="l"><a class="l" href="#44">44: </a><span class="php-comment"> * If the response did not contain any subdivisions, this method returns
</span></span><span id="45" class="l"><a class="l" href="#45">45: </a><span class="php-comment"> * an empty array.
</span></span><span id="46" class="l"><a class="l" href="#46">46: </a><span class="php-comment"> *
</span></span><span id="47" class="l"><a class="l" href="#47">47: </a><span class="php-comment"> * @property \GeoIP2\Record\Subdivision $mostSpecificSubdivision An object
</span></span><span id="48" class="l"><a class="l" href="#48">48: </a><span class="php-comment"> * representing the most specific subdivision returned. If the response
</span></span><span id="49" class="l"><a class="l" href="#49">49: </a><span class="php-comment"> * did not contain any subdivisions, this method returns an empty
</span></span><span id="50" class="l"><a class="l" href="#50">50: </a><span class="php-comment"> * {@link \GeoIP2\Record\Subdivision} object.
</span></span><span id="51" class="l"><a class="l" href="#51">51: </a><span class="php-comment"> *
</span></span><span id="52" class="l"><a class="l" href="#52">52: </a><span class="php-comment"> * @property \GeoIP2\Record\Traits $traits Data for the traits of the
</span></span><span id="53" class="l"><a class="l" href="#53">53: </a><span class="php-comment"> * requested IP address.
</span></span><span id="54" class="l"><a class="l" href="#54">54: </a><span class="php-comment"> */</span>
</span><span id="55" class="l"><a class="l" href="#55">55: </a><span class="php-keyword1">class</span> <a id="Omni" href="#Omni">Omni</a> <span class="php-keyword1">extends</span> CityIspOrg
</span><span id="56" class="l"><a class="l" href="#56">56: </a>{
</span><span id="57" class="l"><a class="l" href="#57">57: </a>}
</span><span id="58" class="l"><a class="l" href="#58">58: </a></span></code></pre>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,146 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File GeoIP2/Record/AbstractPlaceRecord.php</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li class="active"><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li>
<a href="class-GeoIP2.Record.AbstractPlaceRecord.html" title="Summary of GeoIP2\Record\AbstractPlaceRecord"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> GeoIP2\Record;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-keyword1">abstract</span> <span class="php-keyword1">class</span> <a id="AbstractPlaceRecord" href="#AbstractPlaceRecord">AbstractPlaceRecord</a> <span class="php-keyword1">extends</span> AbstractRecord
</span><span id="6" class="l"><a class="l" href="#6"> 6: </a>{
</span><span id="7" class="l"><a class="l" href="#7"> 7: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$languages" href="#$languages">$languages</a></span>;
</span><span id="8" class="l"><a class="l" href="#8"> 8: </a>
</span><span id="9" class="l"><a class="l" href="#9"> 9: </a> <span class="php-comment">/**
</span></span><span id="10" class="l"><a class="l" href="#10">10: </a><span class="php-comment"> * @ignore
</span></span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-comment"> */</span>
</span><span id="12" class="l"><a class="l" href="#12">12: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___construct" href="#___construct">__construct</a>(<span class="php-var">$record</span>, <span class="php-var">$languages</span>)
</span><span id="13" class="l"><a class="l" href="#13">13: </a> {
</span><span id="14" class="l"><a class="l" href="#14">14: </a> <span class="php-var">$this</span>-&gt;languages = <span class="php-var">$languages</span>;
</span><span id="15" class="l"><a class="l" href="#15">15: </a> parent::__construct(<span class="php-var">$record</span>);
</span><span id="16" class="l"><a class="l" href="#16">16: </a> }
</span><span id="17" class="l"><a class="l" href="#17">17: </a>
</span><span id="18" class="l"><a class="l" href="#18">18: </a> <span class="php-comment">/**
</span></span><span id="19" class="l"><a class="l" href="#19">19: </a><span class="php-comment"> * @ignore
</span></span><span id="20" class="l"><a class="l" href="#20">20: </a><span class="php-comment"> */</span>
</span><span id="21" class="l"><a class="l" href="#21">21: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___get" href="#___get">__get</a>(<span class="php-var">$attr</span>)
</span><span id="22" class="l"><a class="l" href="#22">22: </a> {
</span><span id="23" class="l"><a class="l" href="#23">23: </a> <span class="php-keyword1">if</span> (<span class="php-var">$attr</span> == <span class="php-quote">'name'</span>) {
</span><span id="24" class="l"><a class="l" href="#24">24: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;name();
</span><span id="25" class="l"><a class="l" href="#25">25: </a> } <span class="php-keyword1">else</span> {
</span><span id="26" class="l"><a class="l" href="#26">26: </a> <span class="php-keyword1">return</span> parent::__get(<span class="php-var">$attr</span>);
</span><span id="27" class="l"><a class="l" href="#27">27: </a> }
</span><span id="28" class="l"><a class="l" href="#28">28: </a> }
</span><span id="29" class="l"><a class="l" href="#29">29: </a>
</span><span id="30" class="l"><a class="l" href="#30">30: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">function</span> <a id="_name" href="#_name">name</a>()
</span><span id="31" class="l"><a class="l" href="#31">31: </a> {
</span><span id="32" class="l"><a class="l" href="#32">32: </a> <span class="php-keyword1">foreach</span> (<span class="php-var">$this</span>-&gt;languages <span class="php-keyword1">as</span> <span class="php-var">$language</span>) {
</span><span id="33" class="l"><a class="l" href="#33">33: </a> <span class="php-keyword1">if</span> (<span class="php-keyword1">isset</span>(<span class="php-var">$this</span>-&gt;names[<span class="php-var">$language</span>])) {
</span><span id="34" class="l"><a class="l" href="#34">34: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;names[<span class="php-var">$language</span>];
</span><span id="35" class="l"><a class="l" href="#35">35: </a> }
</span><span id="36" class="l"><a class="l" href="#36">36: </a> }
</span><span id="37" class="l"><a class="l" href="#37">37: </a> }
</span><span id="38" class="l"><a class="l" href="#38">38: </a>}
</span><span id="39" class="l"><a class="l" href="#39">39: </a></span></code></pre>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,142 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File GeoIP2/Record/AbstractRecord.php</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li class="active"><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li>
<a href="class-GeoIP2.Record.AbstractRecord.html" title="Summary of GeoIP2\Record\AbstractRecord"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> GeoIP2\Record;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-keyword1">abstract</span> <span class="php-keyword1">class</span> <a id="AbstractRecord" href="#AbstractRecord">AbstractRecord</a>
</span><span id="6" class="l"><a class="l" href="#6"> 6: </a>{
</span><span id="7" class="l"><a class="l" href="#7"> 7: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$record" href="#$record">$record</a></span>;
</span><span id="8" class="l"><a class="l" href="#8"> 8: </a>
</span><span id="9" class="l"><a class="l" href="#9"> 9: </a> <span class="php-comment">/**
</span></span><span id="10" class="l"><a class="l" href="#10">10: </a><span class="php-comment"> * @ignore
</span></span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-comment"> */</span>
</span><span id="12" class="l"><a class="l" href="#12">12: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___construct" href="#___construct">__construct</a>(<span class="php-var">$record</span>)
</span><span id="13" class="l"><a class="l" href="#13">13: </a> {
</span><span id="14" class="l"><a class="l" href="#14">14: </a> <span class="php-var">$this</span>-&gt;record = <span class="php-var">$record</span>;
</span><span id="15" class="l"><a class="l" href="#15">15: </a> }
</span><span id="16" class="l"><a class="l" href="#16">16: </a>
</span><span id="17" class="l"><a class="l" href="#17">17: </a> <span class="php-comment">/**
</span></span><span id="18" class="l"><a class="l" href="#18">18: </a><span class="php-comment"> * @ignore
</span></span><span id="19" class="l"><a class="l" href="#19">19: </a><span class="php-comment"> */</span>
</span><span id="20" class="l"><a class="l" href="#20">20: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___get" href="#___get">__get</a>(<span class="php-var">$attr</span>)
</span><span id="21" class="l"><a class="l" href="#21">21: </a> {
</span><span id="22" class="l"><a class="l" href="#22">22: </a> <span class="php-var">$valid</span> = <span class="php-keyword2">in_array</span>(<span class="php-var">$attr</span>, <span class="php-var">$this</span>-&gt;validAttributes);
</span><span id="23" class="l"><a class="l" href="#23">23: </a> <span class="php-comment">// XXX - kind of ugly but greatly reduces boilerplate code</span>
</span><span id="24" class="l"><a class="l" href="#24">24: </a> <span class="php-var">$key</span> = <span class="php-keyword2">strtolower</span>(<span class="php-keyword2">preg_replace</span>(<span class="php-quote">'/([A-Z])/'</span>, <span class="php-quote">'_\1'</span>, <span class="php-var">$attr</span>));
</span><span id="25" class="l"><a class="l" href="#25">25: </a>
</span><span id="26" class="l"><a class="l" href="#26">26: </a> <span class="php-keyword1">if</span> (<span class="php-var">$valid</span> &amp;&amp; <span class="php-keyword1">isset</span>(<span class="php-var">$this</span>-&gt;record[<span class="php-var">$key</span>])) {
</span><span id="27" class="l"><a class="l" href="#27">27: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;record[<span class="php-var">$key</span>];
</span><span id="28" class="l"><a class="l" href="#28">28: </a> } <span class="php-keyword1">elseif</span> (<span class="php-var">$valid</span>) {
</span><span id="29" class="l"><a class="l" href="#29">29: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">null</span>;
</span><span id="30" class="l"><a class="l" href="#30">30: </a> } <span class="php-keyword1">else</span> {
</span><span id="31" class="l"><a class="l" href="#31">31: </a> <span class="php-keyword1">throw</span> <span class="php-keyword1">new</span> \RuntimeException(<span class="php-quote">&quot;Unknown attribute: </span><span class="php-var">$attr</span><span class="php-quote">&quot;</span>);
</span><span id="32" class="l"><a class="l" href="#32">32: </a> }
</span><span id="33" class="l"><a class="l" href="#33">33: </a> }
</span><span id="34" class="l"><a class="l" href="#34">34: </a>}
</span><span id="35" class="l"><a class="l" href="#35">35: </a></span></code></pre>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,137 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File GeoIP2/Record/City.php</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li class="active"><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li>
<a href="class-GeoIP2.Record.City.html" title="Summary of GeoIP2\Record\City"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> GeoIP2\Record;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-comment">/**
</span></span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-comment"> * City-level data associated with an IP address.
</span></span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-comment"> *
</span></span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-comment"> * This record is returned by all the end points except the Country end point.
</span></span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-comment"> *
</span></span><span id="10" class="l"><a class="l" href="#10">10: </a><span class="php-comment"> * @property int $confidence A value from 0-100 indicating MaxMind's
</span></span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-comment"> * confidence that the city is correct. This attribute is only available
</span></span><span id="12" class="l"><a class="l" href="#12">12: </a><span class="php-comment"> * from the Omni end point.
</span></span><span id="13" class="l"><a class="l" href="#13">13: </a><span class="php-comment"> *
</span></span><span id="14" class="l"><a class="l" href="#14">14: </a><span class="php-comment"> * @property int $geonameId The GeoName ID for the city. This attribute
</span></span><span id="15" class="l"><a class="l" href="#15">15: </a><span class="php-comment"> * is returned by all end points.
</span></span><span id="16" class="l"><a class="l" href="#16">16: </a><span class="php-comment"> *
</span></span><span id="17" class="l"><a class="l" href="#17">17: </a><span class="php-comment"> * @property string $name The name of the city based on the languages list
</span></span><span id="18" class="l"><a class="l" href="#18">18: </a><span class="php-comment"> * passed to the constructor. This attribute is returned by all end points.
</span></span><span id="19" class="l"><a class="l" href="#19">19: </a><span class="php-comment"> *
</span></span><span id="20" class="l"><a class="l" href="#20">20: </a><span class="php-comment"> * @property array $names A array map where the keys are language codes
</span></span><span id="21" class="l"><a class="l" href="#21">21: </a><span class="php-comment"> * and the values are names. This attribute is returned by all end points.
</span></span><span id="22" class="l"><a class="l" href="#22">22: </a><span class="php-comment"> */</span>
</span><span id="23" class="l"><a class="l" href="#23">23: </a><span class="php-keyword1">class</span> <a id="City" href="#City">City</a> <span class="php-keyword1">extends</span> AbstractPlaceRecord
</span><span id="24" class="l"><a class="l" href="#24">24: </a>{
</span><span id="25" class="l"><a class="l" href="#25">25: </a> <span class="php-comment">/**
</span></span><span id="26" class="l"><a class="l" href="#26">26: </a><span class="php-comment"> * @ignore
</span></span><span id="27" class="l"><a class="l" href="#27">27: </a><span class="php-comment"> */</span>
</span><span id="28" class="l"><a class="l" href="#28">28: </a> <span class="php-keyword1">protected</span> <span class="php-var"><a id="$validAttributes" href="#$validAttributes">$validAttributes</a></span> = <span class="php-keyword1">array</span>(<span class="php-quote">'confidence'</span>, <span class="php-quote">'geonameId'</span>, <span class="php-quote">'names'</span>);
</span><span id="29" class="l"><a class="l" href="#29">29: </a>}
</span><span id="30" class="l"><a class="l" href="#30">30: </a></span></code></pre>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,141 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File GeoIP2/Record/Continent.php</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li class="active"><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li>
<a href="class-GeoIP2.Record.Continent.html" title="Summary of GeoIP2\Record\Continent"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> GeoIP2\Record;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-comment">/**
</span></span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-comment"> * Contains data for the continent record associated with an IP address
</span></span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-comment"> *
</span></span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-comment"> * This record is returned by all the end points.
</span></span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-comment"> *
</span></span><span id="10" class="l"><a class="l" href="#10">10: </a><span class="php-comment"> * @property string $code A two character continent code like &quot;NA&quot; (North
</span></span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-comment"> * America) or &quot;OC&quot; (Oceania). This attribute is returned by all end points.
</span></span><span id="12" class="l"><a class="l" href="#12">12: </a><span class="php-comment"> *
</span></span><span id="13" class="l"><a class="l" href="#13">13: </a><span class="php-comment"> * @property int $geonameId The GeoName ID for the continent. This attribute
</span></span><span id="14" class="l"><a class="l" href="#14">14: </a><span class="php-comment"> * is returned by all end points.
</span></span><span id="15" class="l"><a class="l" href="#15">15: </a><span class="php-comment"> *
</span></span><span id="16" class="l"><a class="l" href="#16">16: </a><span class="php-comment"> * @property string $name Returns the name of the continent based on the
</span></span><span id="17" class="l"><a class="l" href="#17">17: </a><span class="php-comment"> * languages list passed to the constructor. This attribute is returned by
</span></span><span id="18" class="l"><a class="l" href="#18">18: </a><span class="php-comment"> * all end points.
</span></span><span id="19" class="l"><a class="l" href="#19">19: </a><span class="php-comment"> *
</span></span><span id="20" class="l"><a class="l" href="#20">20: </a><span class="php-comment"> * @property array $names An array map where the keys are language codes
</span></span><span id="21" class="l"><a class="l" href="#21">21: </a><span class="php-comment"> * and the values are names. This attribute is returned by all end points.
</span></span><span id="22" class="l"><a class="l" href="#22">22: </a><span class="php-comment"> */</span>
</span><span id="23" class="l"><a class="l" href="#23">23: </a><span class="php-keyword1">class</span> <a id="Continent" href="#Continent">Continent</a> <span class="php-keyword1">extends</span> AbstractPlaceRecord
</span><span id="24" class="l"><a class="l" href="#24">24: </a>{
</span><span id="25" class="l"><a class="l" href="#25">25: </a> <span class="php-comment">/**
</span></span><span id="26" class="l"><a class="l" href="#26">26: </a><span class="php-comment"> * @ignore
</span></span><span id="27" class="l"><a class="l" href="#27">27: </a><span class="php-comment"> */</span>
</span><span id="28" class="l"><a class="l" href="#28">28: </a> <span class="php-keyword1">protected</span> <span class="php-var"><a id="$validAttributes" href="#$validAttributes">$validAttributes</a></span> = <span class="php-keyword1">array</span>(
</span><span id="29" class="l"><a class="l" href="#29">29: </a> <span class="php-quote">'code'</span>,
</span><span id="30" class="l"><a class="l" href="#30">30: </a> <span class="php-quote">'geonameId'</span>,
</span><span id="31" class="l"><a class="l" href="#31">31: </a> <span class="php-quote">'names'</span>
</span><span id="32" class="l"><a class="l" href="#32">32: </a> );
</span><span id="33" class="l"><a class="l" href="#33">33: </a>}
</span><span id="34" class="l"><a class="l" href="#34">34: </a></span></code></pre>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,146 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File GeoIP2/Record/Country.php</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li class="active"><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li>
<a href="class-GeoIP2.Record.Country.html" title="Summary of GeoIP2\Record\Country"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> GeoIP2\Record;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-comment">/**
</span></span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-comment"> * Contains data for the country record associated with an IP address
</span></span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-comment"> *
</span></span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-comment"> * This record is returned by all the end points.
</span></span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-comment"> *
</span></span><span id="10" class="l"><a class="l" href="#10">10: </a><span class="php-comment"> * @property int $confidence A value from 0-100 indicating MaxMind's
</span></span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-comment"> * confidence that the country is correct. This attribute is only available
</span></span><span id="12" class="l"><a class="l" href="#12">12: </a><span class="php-comment"> * from the Omni end point.
</span></span><span id="13" class="l"><a class="l" href="#13">13: </a><span class="php-comment"> *
</span></span><span id="14" class="l"><a class="l" href="#14">14: </a><span class="php-comment"> * @property int $geonameId The GeoName ID for the country. This attribute is
</span></span><span id="15" class="l"><a class="l" href="#15">15: </a><span class="php-comment"> * returned by all end points.
</span></span><span id="16" class="l"><a class="l" href="#16">16: </a><span class="php-comment"> *
</span></span><span id="17" class="l"><a class="l" href="#17">17: </a><span class="php-comment"> * @property string $isoCode The {@link http://en.wikipedia.org/wiki/ISO_3166-1
</span></span><span id="18" class="l"><a class="l" href="#18">18: </a><span class="php-comment"> * two-character ISO 3166-1 alpha code} for the country. This attribute is
</span></span><span id="19" class="l"><a class="l" href="#19">19: </a><span class="php-comment"> * returned by all end points.
</span></span><span id="20" class="l"><a class="l" href="#20">20: </a><span class="php-comment"> *
</span></span><span id="21" class="l"><a class="l" href="#21">21: </a><span class="php-comment"> * @property string $name The name of the country based on the languages list
</span></span><span id="22" class="l"><a class="l" href="#22">22: </a><span class="php-comment"> * passed to the constructor. This attribute is returned by all end points.
</span></span><span id="23" class="l"><a class="l" href="#23">23: </a><span class="php-comment"> *
</span></span><span id="24" class="l"><a class="l" href="#24">24: </a><span class="php-comment"> * @property array $names An array map where the keys are language codes and
</span></span><span id="25" class="l"><a class="l" href="#25">25: </a><span class="php-comment"> * the values are names. This attribute is returned by all end points.
</span></span><span id="26" class="l"><a class="l" href="#26">26: </a><span class="php-comment"> */</span>
</span><span id="27" class="l"><a class="l" href="#27">27: </a><span class="php-keyword1">class</span> <a id="Country" href="#Country">Country</a> <span class="php-keyword1">extends</span> AbstractPlaceRecord
</span><span id="28" class="l"><a class="l" href="#28">28: </a>{
</span><span id="29" class="l"><a class="l" href="#29">29: </a> <span class="php-comment">/**
</span></span><span id="30" class="l"><a class="l" href="#30">30: </a><span class="php-comment"> * @ignore
</span></span><span id="31" class="l"><a class="l" href="#31">31: </a><span class="php-comment"> */</span>
</span><span id="32" class="l"><a class="l" href="#32">32: </a> <span class="php-keyword1">protected</span> <span class="php-var"><a id="$validAttributes" href="#$validAttributes">$validAttributes</a></span> = <span class="php-keyword1">array</span>(
</span><span id="33" class="l"><a class="l" href="#33">33: </a> <span class="php-quote">'confidence'</span>,
</span><span id="34" class="l"><a class="l" href="#34">34: </a> <span class="php-quote">'geonameId'</span>,
</span><span id="35" class="l"><a class="l" href="#35">35: </a> <span class="php-quote">'isoCode'</span>,
</span><span id="36" class="l"><a class="l" href="#36">36: </a> <span class="php-quote">'names'</span>
</span><span id="37" class="l"><a class="l" href="#37">37: </a> );
</span><span id="38" class="l"><a class="l" href="#38">38: </a>}
</span><span id="39" class="l"><a class="l" href="#39">39: </a></span></code></pre>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,156 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File GeoIP2/Record/Location.php</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li class="active"><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li>
<a href="class-GeoIP2.Record.Location.html" title="Summary of GeoIP2\Record\Location"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> GeoIP2\Record;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-comment">/**
</span></span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-comment"> * Contains data for the location record associated with an IP address
</span></span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-comment"> *
</span></span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-comment"> * This record is returned by all the end points except the Country end point.
</span></span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-comment"> *
</span></span><span id="10" class="l"><a class="l" href="#10">10: </a><span class="php-comment"> * @property int $accuracyRadius The radius in kilometers around the
</span></span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-comment"> * specified location where the IP address is likely to be. This attribute
</span></span><span id="12" class="l"><a class="l" href="#12">12: </a><span class="php-comment"> * is only available from the Omni end point.
</span></span><span id="13" class="l"><a class="l" href="#13">13: </a><span class="php-comment"> *
</span></span><span id="14" class="l"><a class="l" href="#14">14: </a><span class="php-comment"> * @property float $latitude The latitude of the location as a floating
</span></span><span id="15" class="l"><a class="l" href="#15">15: </a><span class="php-comment"> * point number. This attribute is returned by all end points except the
</span></span><span id="16" class="l"><a class="l" href="#16">16: </a><span class="php-comment"> * Country end point.
</span></span><span id="17" class="l"><a class="l" href="#17">17: </a><span class="php-comment"> *
</span></span><span id="18" class="l"><a class="l" href="#18">18: </a><span class="php-comment"> * @property float $longitude The longitude of the location as a
</span></span><span id="19" class="l"><a class="l" href="#19">19: </a><span class="php-comment"> * floating point number. This attribute is returned by all end points
</span></span><span id="20" class="l"><a class="l" href="#20">20: </a><span class="php-comment"> * except the Country end point.
</span></span><span id="21" class="l"><a class="l" href="#21">21: </a><span class="php-comment"> *
</span></span><span id="22" class="l"><a class="l" href="#22">22: </a><span class="php-comment"> * @property int $metroCode The metro code of the location if the location
</span></span><span id="23" class="l"><a class="l" href="#23">23: </a><span class="php-comment"> * is in the US. MaxMind returns the same metro codes as the
</span></span><span id="24" class="l"><a class="l" href="#24">24: </a><span class="php-comment"> * {@link
</span></span><span id="25" class="l"><a class="l" href="#25">25: </a><span class="php-comment"> * https://developers.google.com/adwords/api/docs/appendix/cities-DMAregions
</span></span><span id="26" class="l"><a class="l" href="#26">26: </a><span class="php-comment"> * Google AdWords API}. This attribute is returned by all end points except
</span></span><span id="27" class="l"><a class="l" href="#27">27: </a><span class="php-comment"> * the Country end point.
</span></span><span id="28" class="l"><a class="l" href="#28">28: </a><span class="php-comment"> *
</span></span><span id="29" class="l"><a class="l" href="#29">29: </a><span class="php-comment"> * @property string $timeZone The time zone associated with location, as
</span></span><span id="30" class="l"><a class="l" href="#30">30: </a><span class="php-comment"> * specified by the {@link http://www.iana.org/time-zones IANA Time Zone
</span></span><span id="31" class="l"><a class="l" href="#31">31: </a><span class="php-comment"> * Database}, e.g., &quot;America/New_York&quot;. This attribute is returned by all
</span></span><span id="32" class="l"><a class="l" href="#32">32: </a><span class="php-comment"> * end points except the Country end point.
</span></span><span id="33" class="l"><a class="l" href="#33">33: </a><span class="php-comment"> */</span>
</span><span id="34" class="l"><a class="l" href="#34">34: </a><span class="php-keyword1">class</span> <a id="Location" href="#Location">Location</a> <span class="php-keyword1">extends</span> AbstractRecord
</span><span id="35" class="l"><a class="l" href="#35">35: </a>{
</span><span id="36" class="l"><a class="l" href="#36">36: </a> <span class="php-comment">/**
</span></span><span id="37" class="l"><a class="l" href="#37">37: </a><span class="php-comment"> * @ignore
</span></span><span id="38" class="l"><a class="l" href="#38">38: </a><span class="php-comment"> */</span>
</span><span id="39" class="l"><a class="l" href="#39">39: </a> <span class="php-keyword1">protected</span> <span class="php-var"><a id="$validAttributes" href="#$validAttributes">$validAttributes</a></span> = <span class="php-keyword1">array</span>(
</span><span id="40" class="l"><a class="l" href="#40">40: </a> <span class="php-quote">'accuracyRadius'</span>,
</span><span id="41" class="l"><a class="l" href="#41">41: </a> <span class="php-quote">'latitude'</span>,
</span><span id="42" class="l"><a class="l" href="#42">42: </a> <span class="php-quote">'longitude'</span>,
</span><span id="43" class="l"><a class="l" href="#43">43: </a> <span class="php-quote">'metroCode'</span>,
</span><span id="44" class="l"><a class="l" href="#44">44: </a> <span class="php-quote">'postalCode'</span>,
</span><span id="45" class="l"><a class="l" href="#45">45: </a> <span class="php-quote">'postalConfidence'</span>,
</span><span id="46" class="l"><a class="l" href="#46">46: </a> <span class="php-quote">'timeZone'</span>
</span><span id="47" class="l"><a class="l" href="#47">47: </a> );
</span><span id="48" class="l"><a class="l" href="#48">48: </a>}
</span><span id="49" class="l"><a class="l" href="#49">49: </a></span></code></pre>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,127 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File GeoIP2/Record/MaxMind.php</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li class="active"><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li>
<a href="class-GeoIP2.Record.MaxMind.html" title="Summary of GeoIP2\Record\MaxMind"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> GeoIP2\Record;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-comment">/**
</span></span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-comment"> * Contains data about your account.
</span></span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-comment"> *
</span></span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-comment"> * This record is returned by all the end points.
</span></span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-comment"> *
</span></span><span id="10" class="l"><a class="l" href="#10">10: </a><span class="php-comment"> * @property int $queriesRemaining The number of remaining queries you have
</span></span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-comment"> * for the end point you are calling.
</span></span><span id="12" class="l"><a class="l" href="#12">12: </a><span class="php-comment"> */</span>
</span><span id="13" class="l"><a class="l" href="#13">13: </a><span class="php-keyword1">class</span> <a id="MaxMind" href="#MaxMind">MaxMind</a> <span class="php-keyword1">extends</span> AbstractRecord
</span><span id="14" class="l"><a class="l" href="#14">14: </a>{
</span><span id="15" class="l"><a class="l" href="#15">15: </a> <span class="php-comment">/**
</span></span><span id="16" class="l"><a class="l" href="#16">16: </a><span class="php-comment"> * @ignore
</span></span><span id="17" class="l"><a class="l" href="#17">17: </a><span class="php-comment"> */</span>
</span><span id="18" class="l"><a class="l" href="#18">18: </a> <span class="php-keyword1">protected</span> <span class="php-var"><a id="$validAttributes" href="#$validAttributes">$validAttributes</a></span> = <span class="php-keyword1">array</span>(<span class="php-quote">'queriesRemaining'</span>);
</span><span id="19" class="l"><a class="l" href="#19">19: </a>}
</span><span id="20" class="l"><a class="l" href="#20">20: </a></span></code></pre>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,133 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File GeoIP2/Record/Postal.php</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li class="active"><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li>
<a href="class-GeoIP2.Record.Postal.html" title="Summary of GeoIP2\Record\Postal"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> GeoIP2\Record;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-comment">/**
</span></span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-comment"> * Contains data for the postal record associated with an IP address
</span></span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-comment"> *
</span></span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-comment"> * This record is returned by all the end points except the Country end point.
</span></span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-comment"> *
</span></span><span id="10" class="l"><a class="l" href="#10">10: </a><span class="php-comment"> * @property string $code The postal code of the location. Postal codes are
</span></span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-comment"> * not available for all countries. In some countries, this will only contain
</span></span><span id="12" class="l"><a class="l" href="#12">12: </a><span class="php-comment"> * part of the postal code. This attribute is returned by all end points
</span></span><span id="13" class="l"><a class="l" href="#13">13: </a><span class="php-comment"> * except the Country end point.
</span></span><span id="14" class="l"><a class="l" href="#14">14: </a><span class="php-comment"> *
</span></span><span id="15" class="l"><a class="l" href="#15">15: </a><span class="php-comment"> * @property int $confidence A value from 0-100 indicating MaxMind's
</span></span><span id="16" class="l"><a class="l" href="#16">16: </a><span class="php-comment"> * confidence that the postal code is correct. This attribute is only
</span></span><span id="17" class="l"><a class="l" href="#17">17: </a><span class="php-comment"> * available from the Omni end point.
</span></span><span id="18" class="l"><a class="l" href="#18">18: </a><span class="php-comment"> */</span>
</span><span id="19" class="l"><a class="l" href="#19">19: </a><span class="php-keyword1">class</span> <a id="Postal" href="#Postal">Postal</a> <span class="php-keyword1">extends</span> AbstractRecord
</span><span id="20" class="l"><a class="l" href="#20">20: </a>{
</span><span id="21" class="l"><a class="l" href="#21">21: </a> <span class="php-comment">/**
</span></span><span id="22" class="l"><a class="l" href="#22">22: </a><span class="php-comment"> * @ignore
</span></span><span id="23" class="l"><a class="l" href="#23">23: </a><span class="php-comment"> */</span>
</span><span id="24" class="l"><a class="l" href="#24">24: </a> <span class="php-keyword1">protected</span> <span class="php-var"><a id="$validAttributes" href="#$validAttributes">$validAttributes</a></span> = <span class="php-keyword1">array</span>(<span class="php-quote">'code'</span>, <span class="php-quote">'confidence'</span>);
</span><span id="25" class="l"><a class="l" href="#25">25: </a>}
</span><span id="26" class="l"><a class="l" href="#26">26: </a></span></code></pre>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,153 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File GeoIP2/Record/RepresentedCountry.php</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li class="active"><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li>
<a href="class-GeoIP2.Record.RepresentedCountry.html" title="Summary of GeoIP2\Record\RepresentedCountry"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> GeoIP2\Record;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-comment">/**
</span></span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-comment"> * Contains data for the represented country associated with an IP address
</span></span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-comment"> *
</span></span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-comment"> * This class contains the country-level data associated with an IP address
</span></span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-comment"> * for the IP's represented country. The represented country is the country
</span></span><span id="10" class="l"><a class="l" href="#10">10: </a><span class="php-comment"> * represented by something like a military base or embassy.
</span></span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-comment"> *
</span></span><span id="12" class="l"><a class="l" href="#12">12: </a><span class="php-comment"> * This record is returned by all the end points.
</span></span><span id="13" class="l"><a class="l" href="#13">13: </a><span class="php-comment"> *
</span></span><span id="14" class="l"><a class="l" href="#14">14: </a><span class="php-comment"> * @property int $confidence A value from 0-100 indicating MaxMind's
</span></span><span id="15" class="l"><a class="l" href="#15">15: </a><span class="php-comment"> * confidence that the country is correct. This attribute is only available
</span></span><span id="16" class="l"><a class="l" href="#16">16: </a><span class="php-comment"> * from the Omni end point.
</span></span><span id="17" class="l"><a class="l" href="#17">17: </a><span class="php-comment"> *
</span></span><span id="18" class="l"><a class="l" href="#18">18: </a><span class="php-comment"> * @property int $geonameId The GeoName ID for the country. This attribute is
</span></span><span id="19" class="l"><a class="l" href="#19">19: </a><span class="php-comment"> * returned by all end points.
</span></span><span id="20" class="l"><a class="l" href="#20">20: </a><span class="php-comment"> *
</span></span><span id="21" class="l"><a class="l" href="#21">21: </a><span class="php-comment"> * @property string $isoCode The {@link http://en.wikipedia.org/wiki/ISO_3166-1
</span></span><span id="22" class="l"><a class="l" href="#22">22: </a><span class="php-comment"> * two-character ISO 3166-1 alpha code} for the country. This attribute is
</span></span><span id="23" class="l"><a class="l" href="#23">23: </a><span class="php-comment"> * returned by all end points.
</span></span><span id="24" class="l"><a class="l" href="#24">24: </a><span class="php-comment"> *
</span></span><span id="25" class="l"><a class="l" href="#25">25: </a><span class="php-comment"> * @property string $name The name of the country based on the languages list
</span></span><span id="26" class="l"><a class="l" href="#26">26: </a><span class="php-comment"> * passed to the constructor. This attribute is returned by all end points.
</span></span><span id="27" class="l"><a class="l" href="#27">27: </a><span class="php-comment"> *
</span></span><span id="28" class="l"><a class="l" href="#28">28: </a><span class="php-comment"> * @property array $names An array map where the keys are language codes and
</span></span><span id="29" class="l"><a class="l" href="#29">29: </a><span class="php-comment"> * the values are names. This attribute is returned by all end points.
</span></span><span id="30" class="l"><a class="l" href="#30">30: </a><span class="php-comment"> *
</span></span><span id="31" class="l"><a class="l" href="#31">31: </a><span class="php-comment"> * @property string $type A string indicating the type of entity that is
</span></span><span id="32" class="l"><a class="l" href="#32">32: </a><span class="php-comment"> * representing the country. Currently we only return &lt;code&gt;military&lt;/code&gt;
</span></span><span id="33" class="l"><a class="l" href="#33">33: </a><span class="php-comment"> * but this could expand to include other types such as &lt;code&gt;embassy&lt;/code&gt;
</span></span><span id="34" class="l"><a class="l" href="#34">34: </a><span class="php-comment"> * in the future. Returned by all endpoints.
</span></span><span id="35" class="l"><a class="l" href="#35">35: </a><span class="php-comment"> */</span>
</span><span id="36" class="l"><a class="l" href="#36">36: </a><span class="php-keyword1">class</span> <a id="RepresentedCountry" href="#RepresentedCountry">RepresentedCountry</a> <span class="php-keyword1">extends</span> Country
</span><span id="37" class="l"><a class="l" href="#37">37: </a>{
</span><span id="38" class="l"><a class="l" href="#38">38: </a> <span class="php-keyword1">protected</span> <span class="php-var"><a id="$validAttributes" href="#$validAttributes">$validAttributes</a></span> = <span class="php-keyword1">array</span>(
</span><span id="39" class="l"><a class="l" href="#39">39: </a> <span class="php-quote">'confidence'</span>,
</span><span id="40" class="l"><a class="l" href="#40">40: </a> <span class="php-quote">'geonameId'</span>,
</span><span id="41" class="l"><a class="l" href="#41">41: </a> <span class="php-quote">'isoCode'</span>,
</span><span id="42" class="l"><a class="l" href="#42">42: </a> <span class="php-quote">'namespace'</span>,
</span><span id="43" class="l"><a class="l" href="#43">43: </a> <span class="php-quote">'type'</span>
</span><span id="44" class="l"><a class="l" href="#44">44: </a> );
</span><span id="45" class="l"><a class="l" href="#45">45: </a>}
</span><span id="46" class="l"><a class="l" href="#46">46: </a></span></code></pre>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,150 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File GeoIP2/Record/Subdivision.php</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li class="active"><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li>
<a href="class-GeoIP2.Record.Subdivision.html" title="Summary of GeoIP2\Record\Subdivision"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> GeoIP2\Record;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-comment">/**
</span></span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-comment"> *
</span></span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-comment"> * Contains data for the subdivisions associated with an IP address
</span></span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-comment"> *
</span></span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-comment"> * This record is returned by all the end points except the Country end point.
</span></span><span id="10" class="l"><a class="l" href="#10">10: </a><span class="php-comment"> *
</span></span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-comment"> * @property int $confidence This is a value from 0-100 indicating MaxMind's
</span></span><span id="12" class="l"><a class="l" href="#12">12: </a><span class="php-comment"> * confidence that the subdivision is correct. This attribute is only
</span></span><span id="13" class="l"><a class="l" href="#13">13: </a><span class="php-comment"> * available from the Omni end point.
</span></span><span id="14" class="l"><a class="l" href="#14">14: </a><span class="php-comment"> *
</span></span><span id="15" class="l"><a class="l" href="#15">15: </a><span class="php-comment"> * @property int $geonameId This is a GeoName ID for the subdivision. This
</span></span><span id="16" class="l"><a class="l" href="#16">16: </a><span class="php-comment"> * attribute is returned by all end points except Country.
</span></span><span id="17" class="l"><a class="l" href="#17">17: </a><span class="php-comment"> *
</span></span><span id="18" class="l"><a class="l" href="#18">18: </a><span class="php-comment"> * @property string $isoCode This is a string up to three characters long
</span></span><span id="19" class="l"><a class="l" href="#19">19: </a><span class="php-comment"> * contain the subdivision portion of the {@link
</span></span><span id="20" class="l"><a class="l" href="#20">20: </a><span class="php-comment"> * http://en.wikipedia.org/wiki/ISO_3166-2 ISO 3166-2 code}. This attribute
</span></span><span id="21" class="l"><a class="l" href="#21">21: </a><span class="php-comment"> * is returned by all end points except Country.
</span></span><span id="22" class="l"><a class="l" href="#22">22: </a><span class="php-comment"> *
</span></span><span id="23" class="l"><a class="l" href="#23">23: </a><span class="php-comment"> * @property string $name The name of the subdivision based on the languages
</span></span><span id="24" class="l"><a class="l" href="#24">24: </a><span class="php-comment"> * list passed to the constructor. This attribute is returned by all end
</span></span><span id="25" class="l"><a class="l" href="#25">25: </a><span class="php-comment"> * points except Country.
</span></span><span id="26" class="l"><a class="l" href="#26">26: </a><span class="php-comment"> *
</span></span><span id="27" class="l"><a class="l" href="#27">27: </a><span class="php-comment"> * @property array $names An array map where the keys are language codes and
</span></span><span id="28" class="l"><a class="l" href="#28">28: </a><span class="php-comment"> * the values are names. This attribute is returned by all end points except
</span></span><span id="29" class="l"><a class="l" href="#29">29: </a><span class="php-comment"> * Country.
</span></span><span id="30" class="l"><a class="l" href="#30">30: </a><span class="php-comment">*/</span>
</span><span id="31" class="l"><a class="l" href="#31">31: </a><span class="php-keyword1">class</span> <a id="Subdivision" href="#Subdivision">Subdivision</a> <span class="php-keyword1">extends</span> AbstractPlaceRecord
</span><span id="32" class="l"><a class="l" href="#32">32: </a>{
</span><span id="33" class="l"><a class="l" href="#33">33: </a> <span class="php-comment">/**
</span></span><span id="34" class="l"><a class="l" href="#34">34: </a><span class="php-comment"> * @ignore
</span></span><span id="35" class="l"><a class="l" href="#35">35: </a><span class="php-comment"> */</span>
</span><span id="36" class="l"><a class="l" href="#36">36: </a> <span class="php-keyword1">protected</span> <span class="php-var"><a id="$validAttributes" href="#$validAttributes">$validAttributes</a></span> = <span class="php-keyword1">array</span>(
</span><span id="37" class="l"><a class="l" href="#37">37: </a> <span class="php-quote">'confidence'</span>,
</span><span id="38" class="l"><a class="l" href="#38">38: </a> <span class="php-quote">'geonameId'</span>,
</span><span id="39" class="l"><a class="l" href="#39">39: </a> <span class="php-quote">'isoCode'</span>,
</span><span id="40" class="l"><a class="l" href="#40">40: </a> <span class="php-quote">'names'</span>
</span><span id="41" class="l"><a class="l" href="#41">41: </a> );
</span><span id="42" class="l"><a class="l" href="#42">42: </a>}
</span><span id="43" class="l"><a class="l" href="#43">43: </a></span></code></pre>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,195 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File GeoIP2/Record/Traits.php</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li class="active"><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li>
<a href="class-GeoIP2.Record.Traits.html" title="Summary of GeoIP2\Record\Traits"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> GeoIP2\Record;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-comment">/**
</span></span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-comment"> *
</span></span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-comment"> * Contains data for the traits record associated with an IP address
</span></span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-comment"> *
</span></span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-comment"> * This record is returned by all the end points.
</span></span><span id="10" class="l"><a class="l" href="#10">10: </a><span class="php-comment"> *
</span></span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-comment"> * @property int $autonomousSystemNumber The {@link
</span></span><span id="12" class="l"><a class="l" href="#12">12: </a><span class="php-comment"> * http://en.wikipedia.org/wiki/Autonomous_system_(Internet) autonomous
</span></span><span id="13" class="l"><a class="l" href="#13">13: </a><span class="php-comment"> * system number} associated with the IP address. This attribute is only
</span></span><span id="14" class="l"><a class="l" href="#14">14: </a><span class="php-comment"> * available from the City/ISP/Org and Omni end points.
</span></span><span id="15" class="l"><a class="l" href="#15">15: </a><span class="php-comment"> *
</span></span><span id="16" class="l"><a class="l" href="#16">16: </a><span class="php-comment"> * @property string $autonomousSystemOrganization The organization
</span></span><span id="17" class="l"><a class="l" href="#17">17: </a><span class="php-comment"> * associated with the registered {@link
</span></span><span id="18" class="l"><a class="l" href="#18">18: </a><span class="php-comment"> * http://en.wikipedia.org/wiki/Autonomous_system_(Internet) autonomous
</span></span><span id="19" class="l"><a class="l" href="#19">19: </a><span class="php-comment"> * system number} for the IP address. This attribute is only available from
</span></span><span id="20" class="l"><a class="l" href="#20">20: </a><span class="php-comment"> * the City/ISP/Org and Omni end points.
</span></span><span id="21" class="l"><a class="l" href="#21">21: </a><span class="php-comment"> *
</span></span><span id="22" class="l"><a class="l" href="#22">22: </a><span class="php-comment"> * @property string $domain The second level domain associated with the
</span></span><span id="23" class="l"><a class="l" href="#23">23: </a><span class="php-comment"> * IP address. This will be something like &quot;example.com&quot; or &quot;example.co.uk&quot;,
</span></span><span id="24" class="l"><a class="l" href="#24">24: </a><span class="php-comment"> * not &quot;foo.example.com&quot;. This attribute is only available from the
</span></span><span id="25" class="l"><a class="l" href="#25">25: </a><span class="php-comment"> * City/ISP/Org and Omni end points.
</span></span><span id="26" class="l"><a class="l" href="#26">26: </a><span class="php-comment"> *
</span></span><span id="27" class="l"><a class="l" href="#27">27: </a><span class="php-comment"> * @property string $ipAddress The IP address that the data in the model
</span></span><span id="28" class="l"><a class="l" href="#28">28: </a><span class="php-comment"> * is for. If you performed a &quot;me&quot; lookup against the web service, this
</span></span><span id="29" class="l"><a class="l" href="#29">29: </a><span class="php-comment"> * will be the externally routable IP address for the system the code is
</span></span><span id="30" class="l"><a class="l" href="#30">30: </a><span class="php-comment"> * running on. If the system is behind a NAT, this may differ from the IP
</span></span><span id="31" class="l"><a class="l" href="#31">31: </a><span class="php-comment"> * address locally assigned to it. This attribute is returned by all end
</span></span><span id="32" class="l"><a class="l" href="#32">32: </a><span class="php-comment"> * points.
</span></span><span id="33" class="l"><a class="l" href="#33">33: </a><span class="php-comment"> *
</span></span><span id="34" class="l"><a class="l" href="#34">34: </a><span class="php-comment"> * @property boolean $isAnonymousProxy This is true if the IP is an
</span></span><span id="35" class="l"><a class="l" href="#35">35: </a><span class="php-comment"> * anonymous proxy. See {@link http://dev.maxmind.com/faq/geoip#anonproxy}
</span></span><span id="36" class="l"><a class="l" href="#36">36: </a><span class="php-comment"> * for further details. This attribute is returned by all end points.
</span></span><span id="37" class="l"><a class="l" href="#37">37: </a><span class="php-comment"> *
</span></span><span id="38" class="l"><a class="l" href="#38">38: </a><span class="php-comment"> * @property boolean $isSatelliteProvider This is true if the IP belongs
</span></span><span id="39" class="l"><a class="l" href="#39">39: </a><span class="php-comment"> * to a satellite Internet provider. This attribute is returned by all
</span></span><span id="40" class="l"><a class="l" href="#40">40: </a><span class="php-comment"> * end points.
</span></span><span id="41" class="l"><a class="l" href="#41">41: </a><span class="php-comment"> *
</span></span><span id="42" class="l"><a class="l" href="#42">42: </a><span class="php-comment"> * @property string $isp The name of the ISP associated the IP address.
</span></span><span id="43" class="l"><a class="l" href="#43">43: </a><span class="php-comment"> * This attribute is only available from the City/ISP/Org and Omni end
</span></span><span id="44" class="l"><a class="l" href="#44">44: </a><span class="php-comment"> * points.
</span></span><span id="45" class="l"><a class="l" href="#45">45: </a><span class="php-comment"> *
</span></span><span id="46" class="l"><a class="l" href="#46">46: </a><span class="php-comment"> * @property string $organization The name of the organization associated
</span></span><span id="47" class="l"><a class="l" href="#47">47: </a><span class="php-comment"> * the IP address. This attribute is only available from the City/ISP/Org
</span></span><span id="48" class="l"><a class="l" href="#48">48: </a><span class="php-comment"> * and Omni end points.
</span></span><span id="49" class="l"><a class="l" href="#49">49: </a><span class="php-comment"> *
</span></span><span id="50" class="l"><a class="l" href="#50">50: </a><span class="php-comment"> * @property string $userType &lt;p&gt;The user type associated with the IP
</span></span><span id="51" class="l"><a class="l" href="#51">51: </a><span class="php-comment"> * address. This can be one of the following values:&lt;/p&gt;
</span></span><span id="52" class="l"><a class="l" href="#52">52: </a><span class="php-comment"> * &lt;ul&gt;
</span></span><span id="53" class="l"><a class="l" href="#53">53: </a><span class="php-comment"> * &lt;li&gt;business
</span></span><span id="54" class="l"><a class="l" href="#54">54: </a><span class="php-comment"> * &lt;li&gt;cafe
</span></span><span id="55" class="l"><a class="l" href="#55">55: </a><span class="php-comment"> * &lt;li&gt;cellular
</span></span><span id="56" class="l"><a class="l" href="#56">56: </a><span class="php-comment"> * &lt;li&gt;college
</span></span><span id="57" class="l"><a class="l" href="#57">57: </a><span class="php-comment"> * &lt;li&gt;content_delivery_network
</span></span><span id="58" class="l"><a class="l" href="#58">58: </a><span class="php-comment"> * &lt;li&gt;dialup
</span></span><span id="59" class="l"><a class="l" href="#59">59: </a><span class="php-comment"> * &lt;li&gt;government
</span></span><span id="60" class="l"><a class="l" href="#60">60: </a><span class="php-comment"> * &lt;li&gt;hosting
</span></span><span id="61" class="l"><a class="l" href="#61">61: </a><span class="php-comment"> * &lt;li&gt;library
</span></span><span id="62" class="l"><a class="l" href="#62">62: </a><span class="php-comment"> * &lt;li&gt;military
</span></span><span id="63" class="l"><a class="l" href="#63">63: </a><span class="php-comment"> * &lt;li&gt;residential
</span></span><span id="64" class="l"><a class="l" href="#64">64: </a><span class="php-comment"> * &lt;li&gt;router
</span></span><span id="65" class="l"><a class="l" href="#65">65: </a><span class="php-comment"> * &lt;li&gt;school
</span></span><span id="66" class="l"><a class="l" href="#66">66: </a><span class="php-comment"> * &lt;li&gt;search_engine_spider
</span></span><span id="67" class="l"><a class="l" href="#67">67: </a><span class="php-comment"> * &lt;li&gt;traveler
</span></span><span id="68" class="l"><a class="l" href="#68">68: </a><span class="php-comment"> * &lt;/ul&gt;
</span></span><span id="69" class="l"><a class="l" href="#69">69: </a><span class="php-comment"> * &lt;p&gt;This attribute is only available from the Omni end point.&lt;/p&gt;
</span></span><span id="70" class="l"><a class="l" href="#70">70: </a><span class="php-comment"> */</span>
</span><span id="71" class="l"><a class="l" href="#71">71: </a><span class="php-keyword1">class</span> <a id="Traits" href="#Traits">Traits</a> <span class="php-keyword1">extends</span> AbstractRecord
</span><span id="72" class="l"><a class="l" href="#72">72: </a>{
</span><span id="73" class="l"><a class="l" href="#73">73: </a> <span class="php-comment">/**
</span></span><span id="74" class="l"><a class="l" href="#74">74: </a><span class="php-comment"> * @ignore
</span></span><span id="75" class="l"><a class="l" href="#75">75: </a><span class="php-comment"> */</span>
</span><span id="76" class="l"><a class="l" href="#76">76: </a> <span class="php-keyword1">protected</span> <span class="php-var"><a id="$validAttributes" href="#$validAttributes">$validAttributes</a></span> = <span class="php-keyword1">array</span>(
</span><span id="77" class="l"><a class="l" href="#77">77: </a> <span class="php-quote">'autonomousSystemNumber'</span>,
</span><span id="78" class="l"><a class="l" href="#78">78: </a> <span class="php-quote">'autonomousSystemOrganization'</span>,
</span><span id="79" class="l"><a class="l" href="#79">79: </a> <span class="php-quote">'domain'</span>,
</span><span id="80" class="l"><a class="l" href="#80">80: </a> <span class="php-quote">'isAnonymousProxy'</span>,
</span><span id="81" class="l"><a class="l" href="#81">81: </a> <span class="php-quote">'isSatelliteProvider'</span>,
</span><span id="82" class="l"><a class="l" href="#82">82: </a> <span class="php-quote">'isp'</span>,
</span><span id="83" class="l"><a class="l" href="#83">83: </a> <span class="php-quote">'ipAddress'</span>,
</span><span id="84" class="l"><a class="l" href="#84">84: </a> <span class="php-quote">'organization'</span>,
</span><span id="85" class="l"><a class="l" href="#85">85: </a> <span class="php-quote">'userType'</span>
</span><span id="86" class="l"><a class="l" href="#86">86: </a> );
</span><span id="87" class="l"><a class="l" href="#87">87: </a>}
</span><span id="88" class="l"><a class="l" href="#88">88: </a></span></code></pre>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,410 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File GeoIP2/WebService/Client.php</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li class="active"><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li class="active"><a href="class-GeoIP2.WebService.Client.html">Client</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.WebService.html" title="Summary of GeoIP2\WebService"><span>Namespace</span></a>
</li>
<li>
<a href="class-GeoIP2.WebService.Client.html" title="Summary of GeoIP2\WebService\Client"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> GeoIP2\WebService;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-keyword1">use</span> GeoIP2\Exception\GeoIP2Exception;
</span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-keyword1">use</span> GeoIP2\Exception\HttpException;
</span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-keyword1">use</span> GeoIP2\Exception\WebServiceException;
</span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-keyword1">use</span> GeoIP2\Model\City;
</span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-keyword1">use</span> GeoIP2\Model\CityIspOrg;
</span><span id="10" class="l"><a class="l" href="#10"> 10: </a><span class="php-keyword1">use</span> GeoIP2\Model\Country;
</span><span id="11" class="l"><a class="l" href="#11"> 11: </a><span class="php-keyword1">use</span> GeoIP2\Model\Omni;
</span><span id="12" class="l"><a class="l" href="#12"> 12: </a><span class="php-keyword1">use</span> Guzzle\Http\Client <span class="php-keyword1">as</span> GuzzleClient;
</span><span id="13" class="l"><a class="l" href="#13"> 13: </a><span class="php-keyword1">use</span> Guzzle\Common\Exception\RuntimeException;
</span><span id="14" class="l"><a class="l" href="#14"> 14: </a><span class="php-keyword1">use</span> Guzzle\Http\Exception\ClientErrorResponseException;
</span><span id="15" class="l"><a class="l" href="#15"> 15: </a><span class="php-keyword1">use</span> Guzzle\Http\Exception\ServerErrorResponseException;
</span><span id="16" class="l"><a class="l" href="#16"> 16: </a>
</span><span id="17" class="l"><a class="l" href="#17"> 17: </a><span class="php-comment">/**
</span></span><span id="18" class="l"><a class="l" href="#18"> 18: </a><span class="php-comment"> * This class provides a client API for all the GeoIP2 web service's
</span></span><span id="19" class="l"><a class="l" href="#19"> 19: </a><span class="php-comment"> * end points. The end points are Country, City, City/ISP/Org, and Omni. Each
</span></span><span id="20" class="l"><a class="l" href="#20"> 20: </a><span class="php-comment"> * end point returns a different set of data about an IP address, with Country
</span></span><span id="21" class="l"><a class="l" href="#21"> 21: </a><span class="php-comment"> * returning the least data and Omni the most.
</span></span><span id="22" class="l"><a class="l" href="#22"> 22: </a><span class="php-comment"> *
</span></span><span id="23" class="l"><a class="l" href="#23"> 23: </a><span class="php-comment"> * Each web service end point is represented by a different model class, and
</span></span><span id="24" class="l"><a class="l" href="#24"> 24: </a><span class="php-comment"> * these model classes in turn contain multiple Record classes. The record
</span></span><span id="25" class="l"><a class="l" href="#25"> 25: </a><span class="php-comment"> * classes have attributes which contain data about the IP address.
</span></span><span id="26" class="l"><a class="l" href="#26"> 26: </a><span class="php-comment"> *
</span></span><span id="27" class="l"><a class="l" href="#27"> 27: </a><span class="php-comment"> * If the web service does not return a particular piece of data for an IP
</span></span><span id="28" class="l"><a class="l" href="#28"> 28: </a><span class="php-comment"> * address, the associated attribute is not populated.
</span></span><span id="29" class="l"><a class="l" href="#29"> 29: </a><span class="php-comment"> *
</span></span><span id="30" class="l"><a class="l" href="#30"> 30: </a><span class="php-comment"> * The web service may not return any information for an entire record, in
</span></span><span id="31" class="l"><a class="l" href="#31"> 31: </a><span class="php-comment"> * which case all of the attributes for that record class will be empty.
</span></span><span id="32" class="l"><a class="l" href="#32"> 32: </a><span class="php-comment"> *
</span></span><span id="33" class="l"><a class="l" href="#33"> 33: </a><span class="php-comment"> * **Usage**
</span></span><span id="34" class="l"><a class="l" href="#34"> 34: </a><span class="php-comment"> *
</span></span><span id="35" class="l"><a class="l" href="#35"> 35: </a><span class="php-comment"> * The basic API for this class is the same for all of the web service end
</span></span><span id="36" class="l"><a class="l" href="#36"> 36: </a><span class="php-comment"> * points. First you create a web service object with your MaxMind
</span></span><span id="37" class="l"><a class="l" href="#37"> 37: </a><span class="php-comment"> * &lt;code&gt;$userId&lt;/code&gt; and &lt;code&gt;$licenseKey&lt;/code&gt;, then you call the method
</span></span><span id="38" class="l"><a class="l" href="#38"> 38: </a><span class="php-comment"> * corresponding to a specific end point, passing it the IP address you want
</span></span><span id="39" class="l"><a class="l" href="#39"> 39: </a><span class="php-comment"> * to look up.
</span></span><span id="40" class="l"><a class="l" href="#40"> 40: </a><span class="php-comment"> *
</span></span><span id="41" class="l"><a class="l" href="#41"> 41: </a><span class="php-comment"> * If the request succeeds, the method call will return a model class for
</span></span><span id="42" class="l"><a class="l" href="#42"> 42: </a><span class="php-comment"> * the end point you called. This model in turn contains multiple record
</span></span><span id="43" class="l"><a class="l" href="#43"> 43: </a><span class="php-comment"> * classes, each of which represents part of the data returned by the web
</span></span><span id="44" class="l"><a class="l" href="#44"> 44: </a><span class="php-comment"> * service.
</span></span><span id="45" class="l"><a class="l" href="#45"> 45: </a><span class="php-comment"> *
</span></span><span id="46" class="l"><a class="l" href="#46"> 46: </a><span class="php-comment"> * If the request fails, the client class throws an exception.
</span></span><span id="47" class="l"><a class="l" href="#47"> 47: </a><span class="php-comment"> *
</span></span><span id="48" class="l"><a class="l" href="#48"> 48: </a><span class="php-comment"> * **Exceptions**
</span></span><span id="49" class="l"><a class="l" href="#49"> 49: </a><span class="php-comment"> *
</span></span><span id="50" class="l"><a class="l" href="#50"> 50: </a><span class="php-comment"> * For details on the possible errors returned by the web service itself, see
</span></span><span id="51" class="l"><a class="l" href="#51"> 51: </a><span class="php-comment"> * {@link http://dev.maxmind.com/geoip2/geoip/web-services the GeoIP2 web
</span></span><span id="52" class="l"><a class="l" href="#52"> 52: </a><span class="php-comment"> * service docs}.
</span></span><span id="53" class="l"><a class="l" href="#53"> 53: </a><span class="php-comment"> *
</span></span><span id="54" class="l"><a class="l" href="#54"> 54: </a><span class="php-comment"> * If the web service returns an explicit error document, this is thrown as a
</span></span><span id="55" class="l"><a class="l" href="#55"> 55: </a><span class="php-comment"> * {@link \GeoIP2\Exception\WebServiceException}. If some other sort of
</span></span><span id="56" class="l"><a class="l" href="#56"> 56: </a><span class="php-comment"> * transport error occurs, this is thrown as a {@link
</span></span><span id="57" class="l"><a class="l" href="#57"> 57: </a><span class="php-comment"> * \GeoIP2\Exception\HttpException}. The difference is that the web service
</span></span><span id="58" class="l"><a class="l" href="#58"> 58: </a><span class="php-comment"> * error includes an error message and error code delivered by the web
</span></span><span id="59" class="l"><a class="l" href="#59"> 59: </a><span class="php-comment"> * service. The latter is thrown when some sort of unanticipated error occurs,
</span></span><span id="60" class="l"><a class="l" href="#60"> 60: </a><span class="php-comment"> * such as the web service returning a 500 or an invalid error document.
</span></span><span id="61" class="l"><a class="l" href="#61"> 61: </a><span class="php-comment"> *
</span></span><span id="62" class="l"><a class="l" href="#62"> 62: </a><span class="php-comment"> * If the web service returns any status code besides 200, 4xx, or 5xx, this
</span></span><span id="63" class="l"><a class="l" href="#63"> 63: </a><span class="php-comment"> * also becomes a {@link \GeoIP2\Exception\HttpException}.
</span></span><span id="64" class="l"><a class="l" href="#64"> 64: </a><span class="php-comment"> *
</span></span><span id="65" class="l"><a class="l" href="#65"> 65: </a><span class="php-comment"> * Finally, if the web service returns a 200 but the body is invalid, the
</span></span><span id="66" class="l"><a class="l" href="#66"> 66: </a><span class="php-comment"> * client throws a {@link \GeoIP2\Exception\GeoIP2Exception}.
</span></span><span id="67" class="l"><a class="l" href="#67"> 67: </a><span class="php-comment"> */</span>
</span><span id="68" class="l"><a class="l" href="#68"> 68: </a><span class="php-keyword1">class</span> <a id="Client" href="#Client">Client</a>
</span><span id="69" class="l"><a class="l" href="#69"> 69: </a>{
</span><span id="70" class="l"><a class="l" href="#70"> 70: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$userId" href="#$userId">$userId</a></span>;
</span><span id="71" class="l"><a class="l" href="#71"> 71: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$licenseKey" href="#$licenseKey">$licenseKey</a></span>;
</span><span id="72" class="l"><a class="l" href="#72"> 72: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$languages" href="#$languages">$languages</a></span>;
</span><span id="73" class="l"><a class="l" href="#73"> 73: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$host" href="#$host">$host</a></span>;
</span><span id="74" class="l"><a class="l" href="#74"> 74: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$guzzleClient" href="#$guzzleClient">$guzzleClient</a></span>;
</span><span id="75" class="l"><a class="l" href="#75"> 75: </a>
</span><span id="76" class="l"><a class="l" href="#76"> 76: </a> <span class="php-comment">/**
</span></span><span id="77" class="l"><a class="l" href="#77"> 77: </a><span class="php-comment"> * Constructor.
</span></span><span id="78" class="l"><a class="l" href="#78"> 78: </a><span class="php-comment"> *
</span></span><span id="79" class="l"><a class="l" href="#79"> 79: </a><span class="php-comment"> * @param int $userId Your MaxMind user ID
</span></span><span id="80" class="l"><a class="l" href="#80"> 80: </a><span class="php-comment"> * @param string $licenseKey Your MaxMind license key
</span></span><span id="81" class="l"><a class="l" href="#81"> 81: </a><span class="php-comment"> * @param array $languages List of language codes to use in name property
</span></span><span id="82" class="l"><a class="l" href="#82"> 82: </a><span class="php-comment"> * from most preferred to least preferred.
</span></span><span id="83" class="l"><a class="l" href="#83"> 83: </a><span class="php-comment"> * @param string $host Optional host parameter
</span></span><span id="84" class="l"><a class="l" href="#84"> 84: </a><span class="php-comment"> * @param object $guzzleClient Optional Guzzle client to use (to facilitate
</span></span><span id="85" class="l"><a class="l" href="#85"> 85: </a><span class="php-comment"> * unit testing).
</span></span><span id="86" class="l"><a class="l" href="#86"> 86: </a><span class="php-comment"> */</span>
</span><span id="87" class="l"><a class="l" href="#87"> 87: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___construct" href="#___construct">__construct</a>(
</span><span id="88" class="l"><a class="l" href="#88"> 88: </a> <span class="php-var">$userId</span>,
</span><span id="89" class="l"><a class="l" href="#89"> 89: </a> <span class="php-var">$licenseKey</span>,
</span><span id="90" class="l"><a class="l" href="#90"> 90: </a> <span class="php-var">$languages</span> = <span class="php-keyword1">array</span>(<span class="php-quote">'en'</span>),
</span><span id="91" class="l"><a class="l" href="#91"> 91: </a> <span class="php-var">$host</span> = <span class="php-quote">'geoip.maxmind.com'</span>,
</span><span id="92" class="l"><a class="l" href="#92"> 92: </a> <span class="php-var">$guzzleClient</span> = <span class="php-keyword1">null</span>
</span><span id="93" class="l"><a class="l" href="#93"> 93: </a> ) {
</span><span id="94" class="l"><a class="l" href="#94"> 94: </a> <span class="php-var">$this</span>-&gt;userId = <span class="php-var">$userId</span>;
</span><span id="95" class="l"><a class="l" href="#95"> 95: </a> <span class="php-var">$this</span>-&gt;licenseKey = <span class="php-var">$licenseKey</span>;
</span><span id="96" class="l"><a class="l" href="#96"> 96: </a> <span class="php-var">$this</span>-&gt;languages = <span class="php-var">$languages</span>;
</span><span id="97" class="l"><a class="l" href="#97"> 97: </a> <span class="php-var">$this</span>-&gt;host = <span class="php-var">$host</span>;
</span><span id="98" class="l"><a class="l" href="#98"> 98: </a> <span class="php-comment">// To enable unit testing</span>
</span><span id="99" class="l"><a class="l" href="#99"> 99: </a> <span class="php-var">$this</span>-&gt;guzzleClient = <span class="php-var">$guzzleClient</span>;
</span><span id="100" class="l"><a class="l" href="#100">100: </a> }
</span><span id="101" class="l"><a class="l" href="#101">101: </a>
</span><span id="102" class="l"><a class="l" href="#102">102: </a> <span class="php-comment">/**
</span></span><span id="103" class="l"><a class="l" href="#103">103: </a><span class="php-comment"> * This method calls the GeoIP2 City endpoint.
</span></span><span id="104" class="l"><a class="l" href="#104">104: </a><span class="php-comment"> *
</span></span><span id="105" class="l"><a class="l" href="#105">105: </a><span class="php-comment"> * @param string $ipAddress IPv4 or IPv6 address as a string. If no
</span></span><span id="106" class="l"><a class="l" href="#106">106: </a><span class="php-comment"> * address is provided, the address that the web service is called
</span></span><span id="107" class="l"><a class="l" href="#107">107: </a><span class="php-comment"> * from will be used.
</span></span><span id="108" class="l"><a class="l" href="#108">108: </a><span class="php-comment"> *
</span></span><span id="109" class="l"><a class="l" href="#109">109: </a><span class="php-comment"> * @return \GeoIP2\Model\City
</span></span><span id="110" class="l"><a class="l" href="#110">110: </a><span class="php-comment"> *
</span></span><span id="111" class="l"><a class="l" href="#111">111: </a><span class="php-comment"> * @throws \GeoIP2\Exception\GeoIP2Exception if there was a generic
</span></span><span id="112" class="l"><a class="l" href="#112">112: </a><span class="php-comment"> * error processing your request.
</span></span><span id="113" class="l"><a class="l" href="#113">113: </a><span class="php-comment"> * @throws \GeoIP2\Exception\HttpException if there was an HTTP transport
</span></span><span id="114" class="l"><a class="l" href="#114">114: </a><span class="php-comment"> * error.
</span></span><span id="115" class="l"><a class="l" href="#115">115: </a><span class="php-comment"> * @throws \GeoIP2\Exception\WebServiceException if an error was returned
</span></span><span id="116" class="l"><a class="l" href="#116">116: </a><span class="php-comment"> * by MaxMind's GeoIP2 web service.
</span></span><span id="117" class="l"><a class="l" href="#117">117: </a><span class="php-comment"> */</span>
</span><span id="118" class="l"><a class="l" href="#118">118: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_city" href="#_city">city</a>(<span class="php-var">$ipAddress</span> = <span class="php-quote">'me'</span>)
</span><span id="119" class="l"><a class="l" href="#119">119: </a> {
</span><span id="120" class="l"><a class="l" href="#120">120: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;responseFor(<span class="php-quote">'city'</span>, <span class="php-quote">'City'</span>, <span class="php-var">$ipAddress</span>);
</span><span id="121" class="l"><a class="l" href="#121">121: </a> }
</span><span id="122" class="l"><a class="l" href="#122">122: </a>
</span><span id="123" class="l"><a class="l" href="#123">123: </a> <span class="php-comment">/**
</span></span><span id="124" class="l"><a class="l" href="#124">124: </a><span class="php-comment"> * This method calls the GeoIP2 Country endpoint.
</span></span><span id="125" class="l"><a class="l" href="#125">125: </a><span class="php-comment"> *
</span></span><span id="126" class="l"><a class="l" href="#126">126: </a><span class="php-comment"> * @param string $ipAddress IPv4 or IPv6 address as a string. If no
</span></span><span id="127" class="l"><a class="l" href="#127">127: </a><span class="php-comment"> * address is provided, the address that the web service is called
</span></span><span id="128" class="l"><a class="l" href="#128">128: </a><span class="php-comment"> * from will be used.
</span></span><span id="129" class="l"><a class="l" href="#129">129: </a><span class="php-comment"> *
</span></span><span id="130" class="l"><a class="l" href="#130">130: </a><span class="php-comment"> * @return \GeoIP2\Model\Country
</span></span><span id="131" class="l"><a class="l" href="#131">131: </a><span class="php-comment"> *
</span></span><span id="132" class="l"><a class="l" href="#132">132: </a><span class="php-comment"> * @throws \GeoIP2\Exception\GeoIP2Exception if there was a generic
</span></span><span id="133" class="l"><a class="l" href="#133">133: </a><span class="php-comment"> * error processing your request.
</span></span><span id="134" class="l"><a class="l" href="#134">134: </a><span class="php-comment"> * @throws \GeoIP2\Exception\HttpException if there was an HTTP transport
</span></span><span id="135" class="l"><a class="l" href="#135">135: </a><span class="php-comment"> * error.
</span></span><span id="136" class="l"><a class="l" href="#136">136: </a><span class="php-comment"> * @throws \GeoIP2\Exception\WebServiceException if an error was returned
</span></span><span id="137" class="l"><a class="l" href="#137">137: </a><span class="php-comment"> * by MaxMind's GeoIP2 web service.
</span></span><span id="138" class="l"><a class="l" href="#138">138: </a><span class="php-comment"> */</span>
</span><span id="139" class="l"><a class="l" href="#139">139: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_country" href="#_country">country</a>(<span class="php-var">$ipAddress</span> = <span class="php-quote">'me'</span>)
</span><span id="140" class="l"><a class="l" href="#140">140: </a> {
</span><span id="141" class="l"><a class="l" href="#141">141: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;responseFor(<span class="php-quote">'country'</span>, <span class="php-quote">'Country'</span>, <span class="php-var">$ipAddress</span>);
</span><span id="142" class="l"><a class="l" href="#142">142: </a> }
</span><span id="143" class="l"><a class="l" href="#143">143: </a>
</span><span id="144" class="l"><a class="l" href="#144">144: </a> <span class="php-comment">/**
</span></span><span id="145" class="l"><a class="l" href="#145">145: </a><span class="php-comment"> * This method calls the GeoIP2 City/ISP/Org endpoint.
</span></span><span id="146" class="l"><a class="l" href="#146">146: </a><span class="php-comment"> *
</span></span><span id="147" class="l"><a class="l" href="#147">147: </a><span class="php-comment"> * @param string $ipAddress IPv4 or IPv6 address as a string. If no
</span></span><span id="148" class="l"><a class="l" href="#148">148: </a><span class="php-comment"> * address is provided, the address that the web service is called
</span></span><span id="149" class="l"><a class="l" href="#149">149: </a><span class="php-comment"> * from will be used.
</span></span><span id="150" class="l"><a class="l" href="#150">150: </a><span class="php-comment"> *
</span></span><span id="151" class="l"><a class="l" href="#151">151: </a><span class="php-comment"> * @return \GeoIP2\Model\CityIspOrg
</span></span><span id="152" class="l"><a class="l" href="#152">152: </a><span class="php-comment"> *
</span></span><span id="153" class="l"><a class="l" href="#153">153: </a><span class="php-comment"> * @throws \GeoIP2\Exception\GeoIP2Exception if there was a generic
</span></span><span id="154" class="l"><a class="l" href="#154">154: </a><span class="php-comment"> * error processing your request.
</span></span><span id="155" class="l"><a class="l" href="#155">155: </a><span class="php-comment"> * @throws \GeoIP2\Exception\HttpException if there was an HTTP transport
</span></span><span id="156" class="l"><a class="l" href="#156">156: </a><span class="php-comment"> * error.
</span></span><span id="157" class="l"><a class="l" href="#157">157: </a><span class="php-comment"> * @throws \GeoIP2\Exception\WebServiceException if an error was returned
</span></span><span id="158" class="l"><a class="l" href="#158">158: </a><span class="php-comment"> * by MaxMind's GeoIP2 web service.
</span></span><span id="159" class="l"><a class="l" href="#159">159: </a><span class="php-comment"> */</span>
</span><span id="160" class="l"><a class="l" href="#160">160: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_cityIspOrg" href="#_cityIspOrg">cityIspOrg</a>(<span class="php-var">$ipAddress</span> = <span class="php-quote">'me'</span>)
</span><span id="161" class="l"><a class="l" href="#161">161: </a> {
</span><span id="162" class="l"><a class="l" href="#162">162: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;responseFor(<span class="php-quote">'city_isp_org'</span>, <span class="php-quote">'CityIspOrg'</span>, <span class="php-var">$ipAddress</span>);
</span><span id="163" class="l"><a class="l" href="#163">163: </a> }
</span><span id="164" class="l"><a class="l" href="#164">164: </a>
</span><span id="165" class="l"><a class="l" href="#165">165: </a> <span class="php-comment">/**
</span></span><span id="166" class="l"><a class="l" href="#166">166: </a><span class="php-comment"> * This method calls the GeoIP2 Omni endpoint.
</span></span><span id="167" class="l"><a class="l" href="#167">167: </a><span class="php-comment"> *
</span></span><span id="168" class="l"><a class="l" href="#168">168: </a><span class="php-comment"> * @param string $ipAddress IPv4 or IPv6 address as a string. If no
</span></span><span id="169" class="l"><a class="l" href="#169">169: </a><span class="php-comment"> * address is provided, the address that the web service is called
</span></span><span id="170" class="l"><a class="l" href="#170">170: </a><span class="php-comment"> * from will be used.
</span></span><span id="171" class="l"><a class="l" href="#171">171: </a><span class="php-comment"> *
</span></span><span id="172" class="l"><a class="l" href="#172">172: </a><span class="php-comment"> * @return \GeoIP2\Model\Omni
</span></span><span id="173" class="l"><a class="l" href="#173">173: </a><span class="php-comment"> *
</span></span><span id="174" class="l"><a class="l" href="#174">174: </a><span class="php-comment"> * @throws \GeoIP2\Exception\GeoIP2Exception if there was a generic
</span></span><span id="175" class="l"><a class="l" href="#175">175: </a><span class="php-comment"> * error processing your request.
</span></span><span id="176" class="l"><a class="l" href="#176">176: </a><span class="php-comment"> * @throws \GeoIP2\Exception\HttpException if there was an HTTP transport
</span></span><span id="177" class="l"><a class="l" href="#177">177: </a><span class="php-comment"> * error.
</span></span><span id="178" class="l"><a class="l" href="#178">178: </a><span class="php-comment"> * @throws \GeoIP2\Exception\WebServiceException if an error was returned
</span></span><span id="179" class="l"><a class="l" href="#179">179: </a><span class="php-comment"> * by MaxMind's GeoIP2 web service.
</span></span><span id="180" class="l"><a class="l" href="#180">180: </a><span class="php-comment"> */</span>
</span><span id="181" class="l"><a class="l" href="#181">181: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_omni" href="#_omni">omni</a>(<span class="php-var">$ipAddress</span> = <span class="php-quote">'me'</span>)
</span><span id="182" class="l"><a class="l" href="#182">182: </a> {
</span><span id="183" class="l"><a class="l" href="#183">183: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;responseFor(<span class="php-quote">'omni'</span>, <span class="php-quote">'Omni'</span>, <span class="php-var">$ipAddress</span>);
</span><span id="184" class="l"><a class="l" href="#184">184: </a> }
</span><span id="185" class="l"><a class="l" href="#185">185: </a>
</span><span id="186" class="l"><a class="l" href="#186">186: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">function</span> <a id="_responseFor" href="#_responseFor">responseFor</a>(<span class="php-var">$endpoint</span>, <span class="php-var">$class</span>, <span class="php-var">$ipAddress</span>)
</span><span id="187" class="l"><a class="l" href="#187">187: </a> {
</span><span id="188" class="l"><a class="l" href="#188">188: </a> <span class="php-var">$uri</span> = <span class="php-keyword2">implode</span>(<span class="php-quote">'/'</span>, <span class="php-keyword1">array</span>(<span class="php-var">$this</span>-&gt;baseUri(), <span class="php-var">$endpoint</span>, <span class="php-var">$ipAddress</span>));
</span><span id="189" class="l"><a class="l" href="#189">189: </a>
</span><span id="190" class="l"><a class="l" href="#190">190: </a> <span class="php-var">$client</span> = <span class="php-var">$this</span>-&gt;guzzleClient ?
</span><span id="191" class="l"><a class="l" href="#191">191: </a> <span class="php-var">$this</span>-&gt;guzzleClient : <span class="php-keyword1">new</span> GuzzleClient();
</span><span id="192" class="l"><a class="l" href="#192">192: </a> <span class="php-var">$request</span> = <span class="php-var">$client</span>-&gt;get(<span class="php-var">$uri</span>, <span class="php-keyword1">array</span>(<span class="php-quote">'Accept'</span> =&gt; <span class="php-quote">'application/json'</span>));
</span><span id="193" class="l"><a class="l" href="#193">193: </a> <span class="php-var">$request</span>-&gt;setAuth(<span class="php-var">$this</span>-&gt;userId, <span class="php-var">$this</span>-&gt;licenseKey);
</span><span id="194" class="l"><a class="l" href="#194">194: </a> <span class="php-var">$ua</span> = <span class="php-var">$request</span>-&gt;getHeader(<span class="php-quote">'User-Agent'</span>);
</span><span id="195" class="l"><a class="l" href="#195">195: </a> <span class="php-var">$ua</span> = <span class="php-quote">&quot;GeoIP2 PHP API (</span><span class="php-var">$ua</span><span class="php-quote">)&quot;</span>;
</span><span id="196" class="l"><a class="l" href="#196">196: </a> <span class="php-var">$request</span>-&gt;setHeader(<span class="php-quote">'User-Agent'</span>, <span class="php-var">$ua</span>);
</span><span id="197" class="l"><a class="l" href="#197">197: </a>
</span><span id="198" class="l"><a class="l" href="#198">198: </a> <span class="php-var">$response</span> = <span class="php-keyword1">null</span>;
</span><span id="199" class="l"><a class="l" href="#199">199: </a> <span class="php-keyword1">try</span> {
</span><span id="200" class="l"><a class="l" href="#200">200: </a> <span class="php-var">$response</span> = <span class="php-var">$request</span>-&gt;send();
</span><span id="201" class="l"><a class="l" href="#201">201: </a> } <span class="php-keyword1">catch</span> (ClientErrorResponseException <span class="php-var">$e</span>) {
</span><span id="202" class="l"><a class="l" href="#202">202: </a> <span class="php-var">$this</span>-&gt;handle4xx(<span class="php-var">$e</span>-&gt;getResponse(), <span class="php-var">$uri</span>);
</span><span id="203" class="l"><a class="l" href="#203">203: </a> } <span class="php-keyword1">catch</span> (ServerErrorResponseException <span class="php-var">$e</span>) {
</span><span id="204" class="l"><a class="l" href="#204">204: </a> <span class="php-var">$this</span>-&gt;handle5xx(<span class="php-var">$e</span>-&gt;getResponse(), <span class="php-var">$uri</span>);
</span><span id="205" class="l"><a class="l" href="#205">205: </a> }
</span><span id="206" class="l"><a class="l" href="#206">206: </a>
</span><span id="207" class="l"><a class="l" href="#207">207: </a> <span class="php-keyword1">if</span> (<span class="php-var">$response</span> &amp;&amp; <span class="php-var">$response</span>-&gt;isSuccessful()) {
</span><span id="208" class="l"><a class="l" href="#208">208: </a> <span class="php-var">$body</span> = <span class="php-var">$this</span>-&gt;handleSuccess(<span class="php-var">$response</span>, <span class="php-var">$uri</span>);
</span><span id="209" class="l"><a class="l" href="#209">209: </a> <span class="php-var">$class</span> = <span class="php-quote">&quot;GeoIP2\\Model\\&quot;</span> . <span class="php-var">$class</span>;
</span><span id="210" class="l"><a class="l" href="#210">210: </a> <span class="php-keyword1">return</span> <span class="php-keyword1">new</span> <span class="php-var">$class</span>(<span class="php-var">$body</span>, <span class="php-var">$this</span>-&gt;languages);
</span><span id="211" class="l"><a class="l" href="#211">211: </a> } <span class="php-keyword1">else</span> {
</span><span id="212" class="l"><a class="l" href="#212">212: </a> <span class="php-var">$this</span>-&gt;handleNon200(<span class="php-var">$response</span>, <span class="php-var">$uri</span>);
</span><span id="213" class="l"><a class="l" href="#213">213: </a> }
</span><span id="214" class="l"><a class="l" href="#214">214: </a> }
</span><span id="215" class="l"><a class="l" href="#215">215: </a>
</span><span id="216" class="l"><a class="l" href="#216">216: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">function</span> <a id="_handleSuccess" href="#_handleSuccess">handleSuccess</a>(<span class="php-var">$response</span>, <span class="php-var">$uri</span>)
</span><span id="217" class="l"><a class="l" href="#217">217: </a> {
</span><span id="218" class="l"><a class="l" href="#218">218: </a> <span class="php-keyword1">if</span> (<span class="php-var">$response</span>-&gt;getContentLength() == <span class="php-num">0</span>) {
</span><span id="219" class="l"><a class="l" href="#219">219: </a> <span class="php-keyword1">throw</span> <span class="php-keyword1">new</span> GeoIP2Exception(
</span><span id="220" class="l"><a class="l" href="#220">220: </a> <span class="php-quote">&quot;Received a 200 response for </span><span class="php-var">$uri</span><span class="php-quote"> but did not &quot;</span> .
</span><span id="221" class="l"><a class="l" href="#221">221: </a> <span class="php-quote">&quot;receive a HTTP body.&quot;</span>
</span><span id="222" class="l"><a class="l" href="#222">222: </a> );
</span><span id="223" class="l"><a class="l" href="#223">223: </a> }
</span><span id="224" class="l"><a class="l" href="#224">224: </a>
</span><span id="225" class="l"><a class="l" href="#225">225: </a> <span class="php-keyword1">try</span> {
</span><span id="226" class="l"><a class="l" href="#226">226: </a> <span class="php-keyword1">return</span> <span class="php-var">$response</span>-&gt;json();
</span><span id="227" class="l"><a class="l" href="#227">227: </a> } <span class="php-keyword1">catch</span> (RuntimeException <span class="php-var">$e</span>) {
</span><span id="228" class="l"><a class="l" href="#228">228: </a> <span class="php-keyword1">throw</span> <span class="php-keyword1">new</span> GeoIP2Exception(
</span><span id="229" class="l"><a class="l" href="#229">229: </a> <span class="php-quote">&quot;Received a 200 response for </span><span class="php-var">$uri</span><span class="php-quote"> but could not decode &quot;</span> .
</span><span id="230" class="l"><a class="l" href="#230">230: </a> <span class="php-quote">&quot;the response as JSON: &quot;</span> . <span class="php-var">$e</span>-&gt;getMessage()
</span><span id="231" class="l"><a class="l" href="#231">231: </a> );
</span><span id="232" class="l"><a class="l" href="#232">232: </a>
</span><span id="233" class="l"><a class="l" href="#233">233: </a> }
</span><span id="234" class="l"><a class="l" href="#234">234: </a> }
</span><span id="235" class="l"><a class="l" href="#235">235: </a>
</span><span id="236" class="l"><a class="l" href="#236">236: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">function</span> <a id="_handle4xx" href="#_handle4xx">handle4xx</a>(<span class="php-var">$response</span>, <span class="php-var">$uri</span>)
</span><span id="237" class="l"><a class="l" href="#237">237: </a> {
</span><span id="238" class="l"><a class="l" href="#238">238: </a> <span class="php-var">$status</span> = <span class="php-var">$response</span>-&gt;getStatusCode();
</span><span id="239" class="l"><a class="l" href="#239">239: </a>
</span><span id="240" class="l"><a class="l" href="#240">240: </a> <span class="php-var">$body</span> = <span class="php-keyword1">array</span>();
</span><span id="241" class="l"><a class="l" href="#241">241: </a>
</span><span id="242" class="l"><a class="l" href="#242">242: </a> <span class="php-keyword1">if</span> (<span class="php-var">$response</span>-&gt;getContentLength() &gt; <span class="php-num">0</span>) {
</span><span id="243" class="l"><a class="l" href="#243">243: </a> <span class="php-keyword1">if</span> (<span class="php-keyword2">strstr</span>(<span class="php-var">$response</span>-&gt;getContentType(), <span class="php-quote">'json'</span>)) {
</span><span id="244" class="l"><a class="l" href="#244">244: </a> <span class="php-keyword1">try</span> {
</span><span id="245" class="l"><a class="l" href="#245">245: </a> <span class="php-var">$body</span> = <span class="php-var">$response</span>-&gt;json();
</span><span id="246" class="l"><a class="l" href="#246">246: </a> <span class="php-keyword1">if</span> (!<span class="php-keyword1">isset</span>(<span class="php-var">$body</span>[<span class="php-quote">'code'</span>]) || !<span class="php-keyword1">isset</span>(<span class="php-var">$body</span>[<span class="php-quote">'error'</span>])) {
</span><span id="247" class="l"><a class="l" href="#247">247: </a> <span class="php-keyword1">throw</span> <span class="php-keyword1">new</span> GeoIP2Exception(
</span><span id="248" class="l"><a class="l" href="#248">248: </a> <span class="php-quote">'Response contains JSON but it does not specify '</span> .
</span><span id="249" class="l"><a class="l" href="#249">249: </a> <span class="php-quote">'code or error keys: '</span> . <span class="php-var">$response</span>-&gt;getBody()
</span><span id="250" class="l"><a class="l" href="#250">250: </a> );
</span><span id="251" class="l"><a class="l" href="#251">251: </a> }
</span><span id="252" class="l"><a class="l" href="#252">252: </a> } <span class="php-keyword1">catch</span> (RuntimeException <span class="php-var">$e</span>) {
</span><span id="253" class="l"><a class="l" href="#253">253: </a> <span class="php-keyword1">throw</span> <span class="php-keyword1">new</span> HttpException(
</span><span id="254" class="l"><a class="l" href="#254">254: </a> <span class="php-quote">&quot;Received a </span><span class="php-var">$status</span><span class="php-quote"> error for </span><span class="php-var">$uri</span><span class="php-quote"> but it did not &quot;</span> .
</span><span id="255" class="l"><a class="l" href="#255">255: </a> <span class="php-quote">&quot;include the expected JSON body: &quot;</span> .
</span><span id="256" class="l"><a class="l" href="#256">256: </a> <span class="php-var">$e</span>-&gt;getMessage(),
</span><span id="257" class="l"><a class="l" href="#257">257: </a> <span class="php-var">$status</span>,
</span><span id="258" class="l"><a class="l" href="#258">258: </a> <span class="php-var">$uri</span>
</span><span id="259" class="l"><a class="l" href="#259">259: </a> );
</span><span id="260" class="l"><a class="l" href="#260">260: </a> }
</span><span id="261" class="l"><a class="l" href="#261">261: </a> } <span class="php-keyword1">else</span> {
</span><span id="262" class="l"><a class="l" href="#262">262: </a> <span class="php-keyword1">throw</span> <span class="php-keyword1">new</span> HttpException(
</span><span id="263" class="l"><a class="l" href="#263">263: </a> <span class="php-quote">&quot;Received a </span><span class="php-var">$status</span><span class="php-quote"> error for </span><span class="php-var">$uri</span><span class="php-quote"> with the &quot;</span> .
</span><span id="264" class="l"><a class="l" href="#264">264: </a> <span class="php-quote">&quot;following body: &quot;</span> . <span class="php-var">$response</span>-&gt;getBody(),
</span><span id="265" class="l"><a class="l" href="#265">265: </a> <span class="php-var">$status</span>,
</span><span id="266" class="l"><a class="l" href="#266">266: </a> <span class="php-var">$uri</span>
</span><span id="267" class="l"><a class="l" href="#267">267: </a> );
</span><span id="268" class="l"><a class="l" href="#268">268: </a> }
</span><span id="269" class="l"><a class="l" href="#269">269: </a> } <span class="php-keyword1">else</span> {
</span><span id="270" class="l"><a class="l" href="#270">270: </a> <span class="php-keyword1">throw</span> <span class="php-keyword1">new</span> HttpException(
</span><span id="271" class="l"><a class="l" href="#271">271: </a> <span class="php-quote">&quot;Received a </span><span class="php-var">$status</span><span class="php-quote"> error for </span><span class="php-var">$uri</span><span class="php-quote"> with no body&quot;</span>,
</span><span id="272" class="l"><a class="l" href="#272">272: </a> <span class="php-var">$status</span>,
</span><span id="273" class="l"><a class="l" href="#273">273: </a> <span class="php-var">$uri</span>
</span><span id="274" class="l"><a class="l" href="#274">274: </a> );
</span><span id="275" class="l"><a class="l" href="#275">275: </a> }
</span><span id="276" class="l"><a class="l" href="#276">276: </a>
</span><span id="277" class="l"><a class="l" href="#277">277: </a> <span class="php-keyword1">throw</span> <span class="php-keyword1">new</span> WebServiceException(
</span><span id="278" class="l"><a class="l" href="#278">278: </a> <span class="php-var">$body</span>[<span class="php-quote">'error'</span>],
</span><span id="279" class="l"><a class="l" href="#279">279: </a> <span class="php-var">$body</span>[<span class="php-quote">'code'</span>],
</span><span id="280" class="l"><a class="l" href="#280">280: </a> <span class="php-var">$status</span>,
</span><span id="281" class="l"><a class="l" href="#281">281: </a> <span class="php-var">$uri</span>
</span><span id="282" class="l"><a class="l" href="#282">282: </a> );
</span><span id="283" class="l"><a class="l" href="#283">283: </a> }
</span><span id="284" class="l"><a class="l" href="#284">284: </a>
</span><span id="285" class="l"><a class="l" href="#285">285: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">function</span> <a id="_handle5xx" href="#_handle5xx">handle5xx</a>(<span class="php-var">$response</span>, <span class="php-var">$uri</span>)
</span><span id="286" class="l"><a class="l" href="#286">286: </a> {
</span><span id="287" class="l"><a class="l" href="#287">287: </a> <span class="php-var">$status</span> = <span class="php-var">$response</span>-&gt;getStatusCode();
</span><span id="288" class="l"><a class="l" href="#288">288: </a>
</span><span id="289" class="l"><a class="l" href="#289">289: </a> <span class="php-keyword1">throw</span> <span class="php-keyword1">new</span> HttpException(
</span><span id="290" class="l"><a class="l" href="#290">290: </a> <span class="php-quote">&quot;Received a server error (</span><span class="php-var">$status</span><span class="php-quote">) for </span><span class="php-var">$uri</span><span class="php-quote">&quot;</span>,
</span><span id="291" class="l"><a class="l" href="#291">291: </a> <span class="php-var">$status</span>,
</span><span id="292" class="l"><a class="l" href="#292">292: </a> <span class="php-var">$uri</span>
</span><span id="293" class="l"><a class="l" href="#293">293: </a> );
</span><span id="294" class="l"><a class="l" href="#294">294: </a> }
</span><span id="295" class="l"><a class="l" href="#295">295: </a>
</span><span id="296" class="l"><a class="l" href="#296">296: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">function</span> <a id="_handleNon200" href="#_handleNon200">handleNon200</a>(<span class="php-var">$response</span>, <span class="php-var">$uri</span>)
</span><span id="297" class="l"><a class="l" href="#297">297: </a> {
</span><span id="298" class="l"><a class="l" href="#298">298: </a> <span class="php-var">$status</span> = <span class="php-var">$response</span>-&gt;getStatusCode();
</span><span id="299" class="l"><a class="l" href="#299">299: </a>
</span><span id="300" class="l"><a class="l" href="#300">300: </a> <span class="php-keyword1">throw</span> <span class="php-keyword1">new</span> HttpException(
</span><span id="301" class="l"><a class="l" href="#301">301: </a> <span class="php-quote">&quot;Received a very surprising HTTP status &quot;</span> .
</span><span id="302" class="l"><a class="l" href="#302">302: </a> <span class="php-quote">&quot;(</span><span class="php-var">$status</span><span class="php-quote">) for </span><span class="php-var">$uri</span><span class="php-quote">&quot;</span>,
</span><span id="303" class="l"><a class="l" href="#303">303: </a> <span class="php-var">$status</span>,
</span><span id="304" class="l"><a class="l" href="#304">304: </a> <span class="php-var">$uri</span>
</span><span id="305" class="l"><a class="l" href="#305">305: </a> );
</span><span id="306" class="l"><a class="l" href="#306">306: </a> }
</span><span id="307" class="l"><a class="l" href="#307">307: </a>
</span><span id="308" class="l"><a class="l" href="#308">308: </a> <span class="php-keyword1">private</span> <span class="php-keyword1">function</span> <a id="_baseUri" href="#_baseUri">baseUri</a>()
</span><span id="309" class="l"><a class="l" href="#309">309: </a> {
</span><span id="310" class="l"><a class="l" href="#310">310: </a> <span class="php-keyword1">return</span> <span class="php-quote">'https://'</span> . <span class="php-var">$this</span>-&gt;host . <span class="php-quote">'/geoip/v2.0'</span>;
</span><span id="311" class="l"><a class="l" href="#311">311: </a> }
</span><span id="312" class="l"><a class="l" href="#312">312: </a>}
</span><span id="313" class="l"><a class="l" href="#313">313: </a></span></code></pre>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

274
doc/v0.1.0/tree.html Normal file
View File

@ -0,0 +1,274 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Tree</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Model.City.html">GeoIP2\Model\City</a></li>
<li><a href="class-GeoIP2.Model.CityIspOrg.html">GeoIP2\Model\CityIspOrg</a></li>
<li><a href="class-GeoIP2.Model.Country.html">GeoIP2\Model\Country</a></li>
<li><a href="class-GeoIP2.Model.Omni.html">GeoIP2\Model\Omni</a></li>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">GeoIP2\Record\AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">GeoIP2\Record\AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">GeoIP2\Record\City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">GeoIP2\Record\Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">GeoIP2\Record\Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">GeoIP2\Record\Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">GeoIP2\Record\MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">GeoIP2\Record\Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">GeoIP2\Record\RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">GeoIP2\Record\Traits</a></li>
<li><a href="class-GeoIP2.WebService.Client.html">GeoIP2\WebService\Client</a></li>
</ul>
<h3>Exceptions</h3>
<ul>
<li><a href="class-Exception.html">Exception</a></li>
<li><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2\Exception\GeoIP2Exception</a></li>
<li><a href="class-GeoIP2.Exception.HttpException.html">GeoIP2\Exception\HttpException</a></li>
<li><a href="class-GeoIP2.Exception.WebServiceException.html">GeoIP2\Exception\WebServiceException</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<span>Namespace</span> </li>
<li>
<span>Class</span> </li>
</ul>
<ul>
<li class="active">
<span>Tree</span> </li>
</ul>
<ul>
</ul>
</div>
<div id="content">
<h1>Tree</h1>
<h3>Classes</h3>
<div class="tree">
<ul>
<li><div class="notlast"><a href="class-GeoIP2.Model.Country.html"><span>GeoIP2\Model\Country</span></a>
</div>
<ul>
<li class="last"><div class="last"><a href="class-GeoIP2.Model.City.html"><span>GeoIP2\Model\City</span></a>
</div>
<ul>
<li class="last"><div class="last"><a href="class-GeoIP2.Model.CityIspOrg.html"><span>GeoIP2\Model\CityIspOrg</span></a>
</div>
<ul>
<li class="last"><div class="last"><a href="class-GeoIP2.Model.Omni.html"><span>GeoIP2\Model\Omni</span></a>
</div>
</ul></li></ul></li></ul></li>
<li><div class="notlast"><a href="class-GeoIP2.Record.AbstractRecord.html"><span>GeoIP2\Record\AbstractRecord</span></a>
</div>
<ul>
<li><div class="notlast"><a href="class-GeoIP2.Record.AbstractPlaceRecord.html"><span>GeoIP2\Record\AbstractPlaceRecord</span></a>
</div>
<ul>
<li><div class="notlast"><a href="class-GeoIP2.Record.City.html"><span>GeoIP2\Record\City</span></a>
</div>
</li>
<li><div class="notlast"><a href="class-GeoIP2.Record.Continent.html"><span>GeoIP2\Record\Continent</span></a>
</div>
</li>
<li><div class="notlast"><a href="class-GeoIP2.Record.Country.html"><span>GeoIP2\Record\Country</span></a>
</div>
<ul>
<li class="last"><div class="last"><a href="class-GeoIP2.Record.RepresentedCountry.html"><span>GeoIP2\Record\RepresentedCountry</span></a>
</div>
</ul></li>
<li class="last"><div class="last"><a href="class-GeoIP2.Record.Subdivision.html"><span>GeoIP2\Record\Subdivision</span></a>
</div>
</ul></li>
<li><div class="notlast"><a href="class-GeoIP2.Record.Location.html"><span>GeoIP2\Record\Location</span></a>
</div>
</li>
<li><div class="notlast"><a href="class-GeoIP2.Record.MaxMind.html"><span>GeoIP2\Record\MaxMind</span></a>
</div>
</li>
<li><div class="notlast"><a href="class-GeoIP2.Record.Postal.html"><span>GeoIP2\Record\Postal</span></a>
</div>
</li>
<li class="last"><div class="last"><a href="class-GeoIP2.Record.Traits.html"><span>GeoIP2\Record\Traits</span></a>
</div>
</ul></li>
<li class="last"><div class="last"><a href="class-GeoIP2.WebService.Client.html"><span>GeoIP2\WebService\Client</span></a>
</div>
</li>
</ul>
</div>
<h3>Exceptions</h3>
<div class="tree">
<ul>
<li class="last"><div class="last"><a href="class-Exception.html"><span>Exception</span></a>
</div>
<ul>
<li class="last"><div class="last"><a href="class-GeoIP2.Exception.GeoIP2Exception.html"><span>GeoIP2\Exception\GeoIP2Exception</span></a>
</div>
<ul>
<li class="last"><div class="last"><a href="class-GeoIP2.Exception.HttpException.html"><span>GeoIP2\Exception\HttpException</span></a>
</div>
<ul>
<li class="last"><div class="last"><a href="class-GeoIP2.Exception.WebServiceException.html"><span>GeoIP2\Exception\WebServiceException</span></a>
</div>
</li>
</ul></li></ul></li></ul></li>
</ul>
</div>
</div>
<div id="footer">
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

126
doc/v0.1.1/404.html Normal file
View File

@ -0,0 +1,126 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>Page not found | GeoIP2 PHP API v0.1.1</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Model.City.html">GeoIP2\Model\City</a></li>
<li><a href="class-GeoIP2.Model.CityIspOrg.html">GeoIP2\Model\CityIspOrg</a></li>
<li><a href="class-GeoIP2.Model.Country.html">GeoIP2\Model\Country</a></li>
<li><a href="class-GeoIP2.Model.Omni.html">GeoIP2\Model\Omni</a></li>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">GeoIP2\Record\AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">GeoIP2\Record\AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">GeoIP2\Record\City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">GeoIP2\Record\Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">GeoIP2\Record\Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">GeoIP2\Record\Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">GeoIP2\Record\MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">GeoIP2\Record\Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">GeoIP2\Record\RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">GeoIP2\Record\Traits</a></li>
<li><a href="class-GeoIP2.WebService.Client.html">GeoIP2\WebService\Client</a></li>
</ul>
<h3>Exceptions</h3>
<ul>
<li><a href="class-Exception.html">Exception</a></li>
<li><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2\Exception\GeoIP2Exception</a></li>
<li><a href="class-GeoIP2.Exception.HttpException.html">GeoIP2\Exception\HttpException</a></li>
<li><a href="class-GeoIP2.Exception.WebServiceException.html">GeoIP2\Exception\WebServiceException</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<span>Namespace</span> </li>
<li>
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
<li>
<a href="geoip2-php-api-v0-1-1-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
</li>
</ul>
</div>
<div id="content">
<h1>Page not found</h1>
<p>The requested page could not be found.</p>
<p>You have probably clicked on a link that is outdated and points to a page that does not exist any more or you have made an typing error in the address.</p>
<p>To continue please try to find requested page in the menu, take a look at <a href="tree.html">the tree view</a> of the whole project or use search field on the top.</p>
</div>
<div id="footer">
GeoIP2 PHP API v0.1.1 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,509 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class Exception | GeoIP2 PHP API v0.1.1</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li class="active"><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Exceptions</h3>
<ul>
<li class="active"><a href="class-Exception.html">Exception</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-PHP.html" title="Summary of PHP"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
<li>
<a href="geoip2-php-api-v0-1-1-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
</li>
</ul>
</div>
<div id="content" class="class">
<h1>Class Exception</h1>
<div>
<h4>Direct known subclasses</h4>
<a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2\Exception\GeoIP2Exception</a>
</div>
<div>
<h4>Indirect known subclasses</h4>
<a href="class-GeoIP2.Exception.HttpException.html">GeoIP2\Exception\HttpException</a>,
<a href="class-GeoIP2.Exception.WebServiceException.html">GeoIP2\Exception\WebServiceException</a>
</div>
<div class="info">
<b>PHP Extension:</b> <a href="http://php.net/manual" title="Go to PHP documentation">Core</a><br />
<b>Documented at</b> <a href="http://php.net/manual/class.exception.php" title="Go to PHP documentation">php.net</a><br />
</div>
<table class="summary" id="methods">
<caption>Methods summary</caption>
<tr data-order="__construct" id="___construct">
<td class="attributes"><code>
public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#___construct">#</a>
<code><a href="http://php.net/manual/exception.construct.php" title="Go to PHP documentation">__construct</a>( <span>mixed <var>$message</var></span>, <span>mixed <var>$code</var></span>, <span>mixed <var>$previous</var></span> )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
<tr data-order="getMessage" id="_getMessage">
<td class="attributes"><code>
final public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_getMessage">#</a>
<code><a href="http://php.net/manual/exception.getmessage.php" title="Go to PHP documentation">getMessage</a>( )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
<tr data-order="getCode" id="_getCode">
<td class="attributes"><code>
final public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_getCode">#</a>
<code><a href="http://php.net/manual/exception.getcode.php" title="Go to PHP documentation">getCode</a>( )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
<tr data-order="getFile" id="_getFile">
<td class="attributes"><code>
final public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_getFile">#</a>
<code><a href="http://php.net/manual/exception.getfile.php" title="Go to PHP documentation">getFile</a>( )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
<tr data-order="getLine" id="_getLine">
<td class="attributes"><code>
final public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_getLine">#</a>
<code><a href="http://php.net/manual/exception.getline.php" title="Go to PHP documentation">getLine</a>( )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
<tr data-order="getTrace" id="_getTrace">
<td class="attributes"><code>
final public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_getTrace">#</a>
<code><a href="http://php.net/manual/exception.gettrace.php" title="Go to PHP documentation">getTrace</a>( )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
<tr data-order="getPrevious" id="_getPrevious">
<td class="attributes"><code>
final public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_getPrevious">#</a>
<code><a href="http://php.net/manual/exception.getprevious.php" title="Go to PHP documentation">getPrevious</a>( )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
<tr data-order="getTraceAsString" id="_getTraceAsString">
<td class="attributes"><code>
final public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_getTraceAsString">#</a>
<code><a href="http://php.net/manual/exception.gettraceasstring.php" title="Go to PHP documentation">getTraceAsString</a>( )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
<tr data-order="__toString" id="___toString">
<td class="attributes"><code>
public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#___toString">#</a>
<code><a href="http://php.net/manual/exception.tostring.php" title="Go to PHP documentation">__toString</a>( )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
</table>
<table class="summary" id="properties">
<caption>Properties summary</caption>
<tr data-order="message" id="$message">
<td class="attributes"><code>
protected
string
</code></td>
<td class="name">
<a href="http://php.net/manual/class.exception.php#exception.props.message" title="Go to PHP documentation"><var>$message</var></a>
</td>
<td class="value"><code><span class="php-quote">''</span></code></td>
<td class="description"><div>
<a href="#$message" class="anchor">#</a>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
<tr data-order="code" id="$code">
<td class="attributes"><code>
protected
integer
</code></td>
<td class="name">
<a href="http://php.net/manual/class.exception.php#exception.props.code" title="Go to PHP documentation"><var>$code</var></a>
</td>
<td class="value"><code><span class="php-num">0</span></code></td>
<td class="description"><div>
<a href="#$code" class="anchor">#</a>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
<tr data-order="file" id="$file">
<td class="attributes"><code>
protected
mixed
</code></td>
<td class="name">
<a href="http://php.net/manual/class.exception.php#exception.props.file" title="Go to PHP documentation"><var>$file</var></a>
</td>
<td class="value"><code></code></td>
<td class="description"><div>
<a href="#$file" class="anchor">#</a>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
<tr data-order="line" id="$line">
<td class="attributes"><code>
protected
mixed
</code></td>
<td class="name">
<a href="http://php.net/manual/class.exception.php#exception.props.line" title="Go to PHP documentation"><var>$line</var></a>
</td>
<td class="value"><code></code></td>
<td class="description"><div>
<a href="#$line" class="anchor">#</a>
<div class="description short">
</div>
<div class="description detailed hidden">
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
GeoIP2 PHP API v0.1.1 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,197 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Exception\GeoIP2Exception | GeoIP2 PHP API v0.1.1</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li class="active"><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Exceptions</h3>
<ul>
<li class="active"><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2Exception</a></li>
<li><a href="class-GeoIP2.Exception.HttpException.html">HttpException</a></li>
<li><a href="class-GeoIP2.Exception.WebServiceException.html">WebServiceException</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Exception.html" title="Summary of GeoIP2\Exception"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
<li>
<a href="geoip2-php-api-v0-1-1-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
</li>
</ul>
</div>
<div id="content" class="class">
<h1>Class GeoIP2Exception</h1>
<div class="description">
<p>This class represents a generic error.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-Exception.html"><span>Exception</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Exception\GeoIP2Exception</span></b>
</dd>
</dl>
<div>
<h4>Direct known subclasses</h4>
<a href="class-GeoIP2.Exception.HttpException.html">GeoIP2\Exception\HttpException</a>
</div>
<div>
<h4>Indirect known subclasses</h4>
<a href="class-GeoIP2.Exception.WebServiceException.html">GeoIP2\Exception\WebServiceException</a>
</div>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Exception.html">Exception</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Exception.GeoIP2Exception.html#5-10" title="Go to source code">GeoIP2/Exception/GeoIP2Exception.php</a><br />
</div>
<table class="summary inherited">
<caption>Methods inherited from <a href="class-Exception.html#methods">Exception</a></caption>
<tr>
<td><code>
<a href="class-Exception.html#___construct">__construct()</a>,
<a href="class-Exception.html#___toString">__toString()</a>,
<a href="class-Exception.html#_getCode">getCode()</a>,
<a href="class-Exception.html#_getFile">getFile()</a>,
<a href="class-Exception.html#_getLine">getLine()</a>,
<a href="class-Exception.html#_getMessage">getMessage()</a>,
<a href="class-Exception.html#_getPrevious">getPrevious()</a>,
<a href="class-Exception.html#_getTrace">getTrace()</a>,
<a href="class-Exception.html#_getTraceAsString">getTraceAsString()</a>
</code></td>
</tr>
</table>
<table class="summary inherited">
<caption>Properties inherited from <a href="class-Exception.html#properties">Exception</a></caption>
<tr>
<td><code>
<a href="class-Exception.html#$code"><var>$code</var></a>,
<a href="class-Exception.html#$file"><var>$file</var></a>,
<a href="class-Exception.html#$line"><var>$line</var></a>,
<a href="class-Exception.html#$message"><var>$message</var></a>
</code></td>
</tr>
</table>
</div>
<div id="footer">
GeoIP2 PHP API v0.1.1 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,263 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Exception\HttpException | GeoIP2 PHP API v0.1.1</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li class="active"><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Exceptions</h3>
<ul>
<li><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2Exception</a></li>
<li class="active"><a href="class-GeoIP2.Exception.HttpException.html">HttpException</a></li>
<li><a href="class-GeoIP2.Exception.WebServiceException.html">WebServiceException</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Exception.html" title="Summary of GeoIP2\Exception"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
<li>
<a href="geoip2-php-api-v0-1-1-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
</li>
</ul>
</div>
<div id="content" class="class">
<h1>Class HttpException</h1>
<div class="description">
<p>This class represents an HTTP transport error.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-Exception.html"><span>Exception</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<a href="class-GeoIP2.Exception.GeoIP2Exception.html"><span>GeoIP2\Exception\GeoIP2Exception</span></a>
</dd>
<dd style="padding-left:60px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Exception\HttpException</span></b>
</dd>
</dl>
<div>
<h4>Direct known subclasses</h4>
<a href="class-GeoIP2.Exception.WebServiceException.html">GeoIP2\Exception\WebServiceException</a>
</div>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Exception.html">Exception</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Exception.HttpException.html#6-25" title="Go to source code">GeoIP2/Exception/HttpException.php</a><br />
</div>
<table class="summary" id="methods">
<caption>Methods summary</caption>
<tr data-order="__construct" id="___construct">
<td class="attributes"><code>
public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#___construct">#</a>
<code><a href="source-class-GeoIP2.Exception.HttpException.html#16-24" title="Go to source code">__construct</a>( <span>mixed <var>$message</var></span>, <span>mixed <var>$httpStatus</var></span>, <span>mixed <var>$uri</var></span>, <span>GeoIP2\Exception\Exception <var>$previous</var> = <span class="php-keyword1">null</span> </span> )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
<h4>Overrides</h4>
<div class="list"><code><a href="class-Exception.html#___construct">Exception::__construct()</a></code></div>
</div>
</div></td>
</tr>
</table>
<table class="summary inherited">
<caption>Methods inherited from <a href="class-Exception.html#methods">Exception</a></caption>
<tr>
<td><code>
<a href="class-Exception.html#___toString">__toString()</a>,
<a href="class-Exception.html#_getCode">getCode()</a>,
<a href="class-Exception.html#_getFile">getFile()</a>,
<a href="class-Exception.html#_getLine">getLine()</a>,
<a href="class-Exception.html#_getMessage">getMessage()</a>,
<a href="class-Exception.html#_getPrevious">getPrevious()</a>,
<a href="class-Exception.html#_getTrace">getTrace()</a>,
<a href="class-Exception.html#_getTraceAsString">getTraceAsString()</a>
</code></td>
</tr>
</table>
<table class="summary" id="properties">
<caption>Properties summary</caption>
<tr data-order="uri" id="$uri">
<td class="attributes"><code>
public
mixed
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Exception.HttpException.html#11-14" title="Go to source code"><var>$uri</var></a>
</td>
<td class="value"><code></code></td>
<td class="description"><div>
<a href="#$uri" class="anchor">#</a>
<div class="description short">
<p>The URI queried</p>
</div>
<div class="description detailed hidden">
<p>The URI queried</p>
</div>
</div></td>
</tr>
</table>
<table class="summary inherited">
<caption>Properties inherited from <a href="class-Exception.html#properties">Exception</a></caption>
<tr>
<td><code>
<a href="class-Exception.html#$code"><var>$code</var></a>,
<a href="class-Exception.html#$file"><var>$file</var></a>,
<a href="class-Exception.html#$line"><var>$line</var></a>,
<a href="class-Exception.html#$message"><var>$message</var></a>
</code></td>
</tr>
</table>
</div>
<div id="footer">
GeoIP2 PHP API v0.1.1 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,274 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Exception\WebServiceException | GeoIP2 PHP API v0.1.1</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li class="active"><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Exceptions</h3>
<ul>
<li><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2Exception</a></li>
<li><a href="class-GeoIP2.Exception.HttpException.html">HttpException</a></li>
<li class="active"><a href="class-GeoIP2.Exception.WebServiceException.html">WebServiceException</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Exception.html" title="Summary of GeoIP2\Exception"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
<li>
<a href="geoip2-php-api-v0-1-1-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
</li>
</ul>
</div>
<div id="content" class="class">
<h1>Class WebServiceException</h1>
<div class="description">
<p>This class represents an error returned by MaxMind's GeoIP2 web service.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-Exception.html"><span>Exception</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<a href="class-GeoIP2.Exception.GeoIP2Exception.html"><span>GeoIP2\Exception\GeoIP2Exception</span></a>
</dd>
<dd style="padding-left:60px">
<img src="resources/inherit.png" alt="Extended by" />
<a href="class-GeoIP2.Exception.HttpException.html"><span>GeoIP2\Exception\HttpException</span></a>
</dd>
<dd style="padding-left:90px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Exception\WebServiceException</span></b>
</dd>
</dl>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Exception.html">Exception</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Exception.WebServiceException.html#5-26" title="Go to source code">GeoIP2/Exception/WebServiceException.php</a><br />
</div>
<table class="summary" id="methods">
<caption>Methods summary</caption>
<tr data-order="__construct" id="___construct">
<td class="attributes"><code>
public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#___construct">#</a>
<code><a href="source-class-GeoIP2.Exception.WebServiceException.html#16-25" title="Go to source code">__construct</a>( <span>mixed <var>$message</var></span>, <span>mixed <var>$error</var></span>, <span>mixed <var>$httpStatus</var></span>, <span>mixed <var>$uri</var></span>, <span>GeoIP2\Exception\Exception <var>$previous</var> = <span class="php-keyword1">null</span> </span> )</code>
<div class="description short">
</div>
<div class="description detailed hidden">
<h4>Overrides</h4>
<div class="list"><code><a href="class-GeoIP2.Exception.HttpException.html#___construct">GeoIP2\Exception\HttpException::__construct()</a></code></div>
</div>
</div></td>
</tr>
</table>
<table class="summary inherited">
<caption>Methods inherited from <a href="class-Exception.html#methods">Exception</a></caption>
<tr>
<td><code>
<a href="class-Exception.html#___toString">__toString()</a>,
<a href="class-Exception.html#_getCode">getCode()</a>,
<a href="class-Exception.html#_getFile">getFile()</a>,
<a href="class-Exception.html#_getLine">getLine()</a>,
<a href="class-Exception.html#_getMessage">getMessage()</a>,
<a href="class-Exception.html#_getPrevious">getPrevious()</a>,
<a href="class-Exception.html#_getTrace">getTrace()</a>,
<a href="class-Exception.html#_getTraceAsString">getTraceAsString()</a>
</code></td>
</tr>
</table>
<table class="summary" id="properties">
<caption>Properties summary</caption>
<tr data-order="error" id="$error">
<td class="attributes"><code>
public
mixed
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Exception.WebServiceException.html#11-14" title="Go to source code"><var>$error</var></a>
</td>
<td class="value"><code></code></td>
<td class="description"><div>
<a href="#$error" class="anchor">#</a>
<div class="description short">
<p>The code returned by the MaxMind web service</p>
</div>
<div class="description detailed hidden">
<p>The code returned by the MaxMind web service</p>
</div>
</div></td>
</tr>
</table>
<table class="summary inherited">
<caption>Properties inherited from <a href="class-GeoIP2.Exception.HttpException.html#properties">GeoIP2\Exception\HttpException</a></caption>
<tr>
<td><code>
<a href="class-GeoIP2.Exception.HttpException.html#$uri"><var>$uri</var></a>
</code></td>
</tr>
</table>
<table class="summary inherited">
<caption>Properties inherited from <a href="class-Exception.html#properties">Exception</a></caption>
<tr>
<td><code>
<a href="class-Exception.html#$code"><var>$code</var></a>,
<a href="class-Exception.html#$file"><var>$file</var></a>,
<a href="class-Exception.html#$line"><var>$line</var></a>,
<a href="class-Exception.html#$message"><var>$message</var></a>
</code></td>
</tr>
</table>
</div>
<div id="footer">
GeoIP2 PHP API v0.1.1 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,462 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Model\City | GeoIP2 PHP API v0.1.1</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li class="active"><a href="class-GeoIP2.Model.City.html">City</a></li>
<li><a href="class-GeoIP2.Model.CityIspOrg.html">CityIspOrg</a></li>
<li><a href="class-GeoIP2.Model.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Model.Omni.html">Omni</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Model.html" title="Summary of GeoIP2\Model"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
<li>
<a href="geoip2-php-api-v0-1-1-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
</li>
</ul>
</div>
<div id="content" class="class">
<h1>Class City</h1>
<div class="description">
<p>This class provides a model for the data returned by the GeoIP2 City end
point.</p>
<p>The only difference between the City, City/ISP/Org, and Omni model classes is
which fields in each record may be populated. See <a
href="http://dev.maxmind.com/geoip/geoip2/web-services">http://dev.maxmind.com/geoip/geoip2/web-services</a>
more details.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-GeoIP2.Model.Country.html"><span>GeoIP2\Model\Country</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Model\City</span></b>
</dd>
</dl>
<div>
<h4>Direct known subclasses</h4>
<a href="class-GeoIP2.Model.CityIspOrg.html">GeoIP2\Model\CityIspOrg</a>
</div>
<div>
<h4>Indirect known subclasses</h4>
<a href="class-GeoIP2.Model.Omni.html">GeoIP2\Model\Omni</a>
</div>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Model.html">Model</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Model.City.html#5-120" title="Go to source code">GeoIP2/Model/City.php</a><br />
</div>
<table class="summary" id="magicProperties">
<caption>Magic properties summary</caption>
<tr data-order="city" id="m$city">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.City.html">GeoIP2\Record\City</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.City.html#13-14" title="Go to source code"><var>$city</var></a>
</td>
<td class="description"><div>
<a href="#m$city" class="anchor">#</a>
<div class="description short">
<p>City data for the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>City data for the requested IP address.</p>
</div>
</div></td>
</tr>
<tr data-order="continent" id="m$continent">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Continent.html">GeoIP2\Record\Continent</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.City.html#16-17" title="Go to source code"><var>$continent</var></a>
</td>
<td class="description"><div>
<a href="#m$continent" class="anchor">#</a>
<div class="description short">
<p>Continent data for the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>Continent data for the requested IP address.</p>
</div>
</div></td>
</tr>
<tr data-order="country" id="m$country">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Country.html">GeoIP2\Record\Country</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.City.html#19-21" title="Go to source code"><var>$country</var></a>
</td>
<td class="description"><div>
<a href="#m$country" class="anchor">#</a>
<div class="description short">
<p>Country data for the requested IP address. This object represents the country
where MaxMind believes the end user is located.</p>
</div>
<div class="description detailed hidden">
<p>Country data for the requested IP address. This object represents the country
where MaxMind believes the end user is located.</p>
</div>
</div></td>
</tr>
<tr data-order="location" id="m$location">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Location.html">GeoIP2\Record\Location</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.City.html#23-24" title="Go to source code"><var>$location</var></a>
</td>
<td class="description"><div>
<a href="#m$location" class="anchor">#</a>
<div class="description short">
<p>Location data for the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>Location data for the requested IP address.</p>
</div>
</div></td>
</tr>
<tr data-order="maxmind" id="m$maxmind">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.MaxMind.html">GeoIP2\Record\MaxMind</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.City.html#26-27" title="Go to source code"><var>$maxmind</var></a>
</td>
<td class="description"><div>
<a href="#m$maxmind" class="anchor">#</a>
<div class="description short">
<p>Data related to your MaxMind account.</p>
</div>
<div class="description detailed hidden">
<p>Data related to your MaxMind account.</p>
</div>
</div></td>
</tr>
<tr data-order="registeredCountry" id="m$registeredCountry">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Country.html">GeoIP2\Record\Country</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.City.html#29-32" title="Go to source code"><var>$registeredCountry</var></a>
</td>
<td class="description"><div>
<a href="#m$registeredCountry" class="anchor">#</a>
<div class="description short">
<p>Registered country data for the requested IP address. This record represents
the country where the ISP has registered a given IP block in and may differ from
the user's country.</p>
</div>
<div class="description detailed hidden">
<p>Registered country data for the requested IP address. This record represents
the country where the ISP has registered a given IP block in and may differ from
the user's country.</p>
</div>
</div></td>
</tr>
<tr data-order="representedCountry" id="m$representedCountry">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.RepresentedCountry.html">GeoIP2\Record\RepresentedCountry</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.City.html#34-37" title="Go to source code"><var>$representedCountry</var></a>
</td>
<td class="description"><div>
<a href="#m$representedCountry" class="anchor">#</a>
<div class="description short">
<p>Represented country data for the requested IP address. The represented
country is used for things like military bases or embassies. It is only present
when the represented country differs from the country.</p>
</div>
<div class="description detailed hidden">
<p>Represented country data for the requested IP address. The represented
country is used for things like military bases or embassies. It is only present
when the represented country differs from the country.</p>
</div>
</div></td>
</tr>
<tr data-order="subdivisions" id="m$subdivisions">
<td class="attributes"><code>
public
array
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.City.html#39-45" title="Go to source code"><var>$subdivisions</var></a>
</td>
<td class="description"><div>
<a href="#m$subdivisions" class="anchor">#</a>
<div class="description short">
<p>An array of <code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code> objects representing the
country subdivisions for the requested IP address. The number and type of
subdivisions varies by country, but a subdivision is typically a state,
province, county, etc. Subdivisions are ordered from most general (largest) to
most specific (smallest). If the response did not contain any subdivisions, this
method returns an empty array.</p>
</div>
<div class="description detailed hidden">
<p>An array of <code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code> objects representing the
country subdivisions for the requested IP address. The number and type of
subdivisions varies by country, but a subdivision is typically a state,
province, county, etc. Subdivisions are ordered from most general (largest) to
most specific (smallest). If the response did not contain any subdivisions, this
method returns an empty array.</p>
</div>
</div></td>
</tr>
<tr data-order="mostSpecificSubdivision" id="m$mostSpecificSubdivision">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.City.html#47-50" title="Go to source code"><var>$mostSpecificSubdivision</var></a>
</td>
<td class="description"><div>
<a href="#m$mostSpecificSubdivision" class="anchor">#</a>
<div class="description short">
<p>An object representing the most specific subdivision returned. If the
response did not contain any subdivisions, this method returns an empty <code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code> object.</p>
</div>
<div class="description detailed hidden">
<p>An object representing the most specific subdivision returned. If the
response did not contain any subdivisions, this method returns an empty <code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code> object.</p>
</div>
</div></td>
</tr>
<tr data-order="traits" id="m$traits">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Traits.html">GeoIP2\Record\Traits</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.City.html#52-53" title="Go to source code"><var>$traits</var></a>
</td>
<td class="description"><div>
<a href="#m$traits" class="anchor">#</a>
<div class="description short">
<p>Data for the traits of the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>Data for the traits of the requested IP address.</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
GeoIP2 PHP API v0.1.1 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,465 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Model\CityIspOrg | GeoIP2 PHP API v0.1.1</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Model.City.html">City</a></li>
<li class="active"><a href="class-GeoIP2.Model.CityIspOrg.html">CityIspOrg</a></li>
<li><a href="class-GeoIP2.Model.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Model.Omni.html">Omni</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Model.html" title="Summary of GeoIP2\Model"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
<li>
<a href="geoip2-php-api-v0-1-1-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
</li>
</ul>
</div>
<div id="content" class="class">
<h1>Class CityIspOrg</h1>
<div class="description">
<p>This class provides a model for the data returned by the GeoIP2 City/ISP/Org
end point.</p>
<p>The only difference between the City, City/ISP/Org, and Omni model classes is
which fields in each record may be populated. See <a
href="http://dev.maxmind.com/geoip/geoip2/web-services">http://dev.maxmind.com/geoip/geoip2/web-services</a>
more details.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-GeoIP2.Model.Country.html"><span>GeoIP2\Model\Country</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<a href="class-GeoIP2.Model.City.html"><span>GeoIP2\Model\City</span></a>
</dd>
<dd style="padding-left:60px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Model\CityIspOrg</span></b>
</dd>
</dl>
<div>
<h4>Direct known subclasses</h4>
<a href="class-GeoIP2.Model.Omni.html">GeoIP2\Model\Omni</a>
</div>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Model.html">Model</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Model.CityIspOrg.html#5-57" title="Go to source code">GeoIP2/Model/CityIspOrg.php</a><br />
</div>
<table class="summary" id="magicProperties">
<caption>Magic properties summary</caption>
<tr data-order="city" id="m$city">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.City.html">GeoIP2\Record\City</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.CityIspOrg.html#13-14" title="Go to source code"><var>$city</var></a>
</td>
<td class="description"><div>
<a href="#m$city" class="anchor">#</a>
<div class="description short">
<p>City data for the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>City data for the requested IP address.</p>
</div>
</div></td>
</tr>
<tr data-order="continent" id="m$continent">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Continent.html">GeoIP2\Record\Continent</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.CityIspOrg.html#16-17" title="Go to source code"><var>$continent</var></a>
</td>
<td class="description"><div>
<a href="#m$continent" class="anchor">#</a>
<div class="description short">
<p>Continent data for the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>Continent data for the requested IP address.</p>
</div>
</div></td>
</tr>
<tr data-order="country" id="m$country">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Country.html">GeoIP2\Record\Country</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.CityIspOrg.html#19-21" title="Go to source code"><var>$country</var></a>
</td>
<td class="description"><div>
<a href="#m$country" class="anchor">#</a>
<div class="description short">
<p>Country data for the requested IP address. This object represents the country
where MaxMind believes the end user is located.</p>
</div>
<div class="description detailed hidden">
<p>Country data for the requested IP address. This object represents the country
where MaxMind believes the end user is located.</p>
</div>
</div></td>
</tr>
<tr data-order="location" id="m$location">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Location.html">GeoIP2\Record\Location</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.CityIspOrg.html#23-24" title="Go to source code"><var>$location</var></a>
</td>
<td class="description"><div>
<a href="#m$location" class="anchor">#</a>
<div class="description short">
<p>Location data for the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>Location data for the requested IP address.</p>
</div>
</div></td>
</tr>
<tr data-order="maxmind" id="m$maxmind">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.MaxMind.html">GeoIP2\Record\MaxMind</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.CityIspOrg.html#26-27" title="Go to source code"><var>$maxmind</var></a>
</td>
<td class="description"><div>
<a href="#m$maxmind" class="anchor">#</a>
<div class="description short">
<p>Data related to your MaxMind account.</p>
</div>
<div class="description detailed hidden">
<p>Data related to your MaxMind account.</p>
</div>
</div></td>
</tr>
<tr data-order="registeredCountry" id="m$registeredCountry">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Country.html">GeoIP2\Record\Country</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.CityIspOrg.html#29-32" title="Go to source code"><var>$registeredCountry</var></a>
</td>
<td class="description"><div>
<a href="#m$registeredCountry" class="anchor">#</a>
<div class="description short">
<p>Registered country data for the requested IP address. This record represents
the country where the ISP has registered a given IP block in and may differ from
the user's country.</p>
</div>
<div class="description detailed hidden">
<p>Registered country data for the requested IP address. This record represents
the country where the ISP has registered a given IP block in and may differ from
the user's country.</p>
</div>
</div></td>
</tr>
<tr data-order="representedCountry" id="m$representedCountry">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.RepresentedCountry.html">GeoIP2\Record\RepresentedCountry</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.CityIspOrg.html#34-37" title="Go to source code"><var>$representedCountry</var></a>
</td>
<td class="description"><div>
<a href="#m$representedCountry" class="anchor">#</a>
<div class="description short">
<p>Represented country data for the requested IP address. The represented
country is used for things like military bases or embassies. It is only present
when the represented country differs from the country.</p>
</div>
<div class="description detailed hidden">
<p>Represented country data for the requested IP address. The represented
country is used for things like military bases or embassies. It is only present
when the represented country differs from the country.</p>
</div>
</div></td>
</tr>
<tr data-order="subdivisions" id="m$subdivisions">
<td class="attributes"><code>
public
array
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.CityIspOrg.html#39-45" title="Go to source code"><var>$subdivisions</var></a>
</td>
<td class="description"><div>
<a href="#m$subdivisions" class="anchor">#</a>
<div class="description short">
<p>An array of <code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code> objects representing the
country subdivisions for the requested IP address. The number and type of
subdivisions varies by country, but a subdivision is typically a state,
province, county, etc. Subdivisions are ordered from most general (largest) to
most specific (smallest). If the response did not contain any subdivisions, this
method returns an empty array.</p>
</div>
<div class="description detailed hidden">
<p>An array of <code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code> objects representing the
country subdivisions for the requested IP address. The number and type of
subdivisions varies by country, but a subdivision is typically a state,
province, county, etc. Subdivisions are ordered from most general (largest) to
most specific (smallest). If the response did not contain any subdivisions, this
method returns an empty array.</p>
</div>
</div></td>
</tr>
<tr data-order="mostSpecificSubdivision" id="m$mostSpecificSubdivision">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.CityIspOrg.html#47-50" title="Go to source code"><var>$mostSpecificSubdivision</var></a>
</td>
<td class="description"><div>
<a href="#m$mostSpecificSubdivision" class="anchor">#</a>
<div class="description short">
<p>An object representing the most specific subdivision returned. If the
response did not contain any subdivisions, this method returns an empty <code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code> object.</p>
</div>
<div class="description detailed hidden">
<p>An object representing the most specific subdivision returned. If the
response did not contain any subdivisions, this method returns an empty <code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code> object.</p>
</div>
</div></td>
</tr>
<tr data-order="traits" id="m$traits">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Traits.html">GeoIP2\Record\Traits</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.CityIspOrg.html#52-53" title="Go to source code"><var>$traits</var></a>
</td>
<td class="description"><div>
<a href="#m$traits" class="anchor">#</a>
<div class="description short">
<p>Data for the traits of the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>Data for the traits of the requested IP address.</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
GeoIP2 PHP API v0.1.1 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,333 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Model\Country | GeoIP2 PHP API v0.1.1</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Model.City.html">City</a></li>
<li><a href="class-GeoIP2.Model.CityIspOrg.html">CityIspOrg</a></li>
<li class="active"><a href="class-GeoIP2.Model.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Model.Omni.html">Omni</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Model.html" title="Summary of GeoIP2\Model"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
<li>
<a href="geoip2-php-api-v0-1-1-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
</li>
</ul>
</div>
<div id="content" class="class">
<h1>Class Country</h1>
<div class="description">
<p>This class provides a model for the data returned by the GeoIP2 Country end
point.</p>
<p>The only difference between the City, City/ISP/Org, and Omni model classes is
which fields in each record may be populated. See <a
href="http://dev.maxmind.com/geoip/geoip2/web-services">http://dev.maxmind.com/geoip/geoip2/web-services</a>
more details.</p>
</div>
<div>
<h4>Direct known subclasses</h4>
<a href="class-GeoIP2.Model.City.html">GeoIP2\Model\City</a>
</div>
<div>
<h4>Indirect known subclasses</h4>
<a href="class-GeoIP2.Model.CityIspOrg.html">GeoIP2\Model\CityIspOrg</a>,
<a href="class-GeoIP2.Model.Omni.html">GeoIP2\Model\Omni</a>
</div>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Model.html">Model</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Model.Country.html#5-95" title="Go to source code">GeoIP2/Model/Country.php</a><br />
</div>
<table class="summary" id="magicProperties">
<caption>Magic properties summary</caption>
<tr data-order="continent" id="m$continent">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Continent.html">GeoIP2\Record\Continent</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Country.html#13-14" title="Go to source code"><var>$continent</var></a>
</td>
<td class="description"><div>
<a href="#m$continent" class="anchor">#</a>
<div class="description short">
<p>Continent data for the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>Continent data for the requested IP address.</p>
</div>
</div></td>
</tr>
<tr data-order="country" id="m$country">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Country.html">GeoIP2\Record\Country</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Country.html#16-18" title="Go to source code"><var>$country</var></a>
</td>
<td class="description"><div>
<a href="#m$country" class="anchor">#</a>
<div class="description short">
<p>Country data for the requested IP address. This object represents the country
where MaxMind believes the end user is located.</p>
</div>
<div class="description detailed hidden">
<p>Country data for the requested IP address. This object represents the country
where MaxMind believes the end user is located.</p>
</div>
</div></td>
</tr>
<tr data-order="maxmind" id="m$maxmind">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.MaxMind.html">GeoIP2\Record\MaxMind</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Country.html#20-21" title="Go to source code"><var>$maxmind</var></a>
</td>
<td class="description"><div>
<a href="#m$maxmind" class="anchor">#</a>
<div class="description short">
<p>Data related to your MaxMind account.</p>
</div>
<div class="description detailed hidden">
<p>Data related to your MaxMind account.</p>
</div>
</div></td>
</tr>
<tr data-order="registeredCountry" id="m$registeredCountry">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Country.html">GeoIP2\Record\Country</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Country.html#23-26" title="Go to source code"><var>$registeredCountry</var></a>
</td>
<td class="description"><div>
<a href="#m$registeredCountry" class="anchor">#</a>
<div class="description short">
<p>Registered country data for the requested IP address. This record represents
the country where the ISP has registered a given IP block in and may differ from
the user's country.</p>
</div>
<div class="description detailed hidden">
<p>Registered country data for the requested IP address. This record represents
the country where the ISP has registered a given IP block in and may differ from
the user's country.</p>
</div>
</div></td>
</tr>
<tr data-order="representedCountry" id="m$representedCountry">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.RepresentedCountry.html">GeoIP2\Record\RepresentedCountry</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Country.html#28-31" title="Go to source code"><var>$representedCountry</var></a>
</td>
<td class="description"><div>
<a href="#m$representedCountry" class="anchor">#</a>
<div class="description short">
<p>Represented country data for the requested IP address. The represented
country is used for things like military bases or embassies. It is only present
when the represented country differs from the country.</p>
</div>
<div class="description detailed hidden">
<p>Represented country data for the requested IP address. The represented
country is used for things like military bases or embassies. It is only present
when the represented country differs from the country.</p>
</div>
</div></td>
</tr>
<tr data-order="traits" id="m$traits">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Traits.html">GeoIP2\Record\Traits</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Country.html#33-34" title="Go to source code"><var>$traits</var></a>
</td>
<td class="description"><div>
<a href="#m$traits" class="anchor">#</a>
<div class="description short">
<p>Data for the traits of the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>Data for the traits of the requested IP address.</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
GeoIP2 PHP API v0.1.1 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,468 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Model\Omni | GeoIP2 PHP API v0.1.1</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Model.City.html">City</a></li>
<li><a href="class-GeoIP2.Model.CityIspOrg.html">CityIspOrg</a></li>
<li><a href="class-GeoIP2.Model.Country.html">Country</a></li>
<li class="active"><a href="class-GeoIP2.Model.Omni.html">Omni</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Model.html" title="Summary of GeoIP2\Model"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
<li>
<a href="geoip2-php-api-v0-1-1-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
</li>
</ul>
</div>
<div id="content" class="class">
<h1>Class Omni</h1>
<div class="description">
<p>This class provides a model for the data returned by the GeoIP2 Omni end
point.</p>
<p>The only difference between the City, City/ISP/Org, and Omni model classes is
which fields in each record may be populated. See <a
href="http://dev.maxmind.com/geoip/geoip2/web-services">http://dev.maxmind.com/geoip/geoip2/web-services</a>
more details.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-GeoIP2.Model.Country.html"><span>GeoIP2\Model\Country</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<a href="class-GeoIP2.Model.City.html"><span>GeoIP2\Model\City</span></a>
</dd>
<dd style="padding-left:60px">
<img src="resources/inherit.png" alt="Extended by" />
<a href="class-GeoIP2.Model.CityIspOrg.html"><span>GeoIP2\Model\CityIspOrg</span></a>
</dd>
<dd style="padding-left:90px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Model\Omni</span></b>
</dd>
</dl>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Model.html">Model</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Model.Omni.html#5-57" title="Go to source code">GeoIP2/Model/Omni.php</a><br />
</div>
<table class="summary" id="magicProperties">
<caption>Magic properties summary</caption>
<tr data-order="city" id="m$city">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.City.html">GeoIP2\Record\City</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Omni.html#13-14" title="Go to source code"><var>$city</var></a>
</td>
<td class="description"><div>
<a href="#m$city" class="anchor">#</a>
<div class="description short">
<p>City data for the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>City data for the requested IP address.</p>
</div>
</div></td>
</tr>
<tr data-order="continent" id="m$continent">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Continent.html">GeoIP2\Record\Continent</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Omni.html#16-17" title="Go to source code"><var>$continent</var></a>
</td>
<td class="description"><div>
<a href="#m$continent" class="anchor">#</a>
<div class="description short">
<p>Continent data for the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>Continent data for the requested IP address.</p>
</div>
</div></td>
</tr>
<tr data-order="country" id="m$country">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Country.html">GeoIP2\Record\Country</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Omni.html#19-21" title="Go to source code"><var>$country</var></a>
</td>
<td class="description"><div>
<a href="#m$country" class="anchor">#</a>
<div class="description short">
<p>Country data for the requested IP address. This object represents the country
where MaxMind believes the end user is located.</p>
</div>
<div class="description detailed hidden">
<p>Country data for the requested IP address. This object represents the country
where MaxMind believes the end user is located.</p>
</div>
</div></td>
</tr>
<tr data-order="location" id="m$location">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Location.html">GeoIP2\Record\Location</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Omni.html#23-24" title="Go to source code"><var>$location</var></a>
</td>
<td class="description"><div>
<a href="#m$location" class="anchor">#</a>
<div class="description short">
<p>Location data for the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>Location data for the requested IP address.</p>
</div>
</div></td>
</tr>
<tr data-order="maxmind" id="m$maxmind">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.MaxMind.html">GeoIP2\Record\MaxMind</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Omni.html#26-27" title="Go to source code"><var>$maxmind</var></a>
</td>
<td class="description"><div>
<a href="#m$maxmind" class="anchor">#</a>
<div class="description short">
<p>Data related to your MaxMind account.</p>
</div>
<div class="description detailed hidden">
<p>Data related to your MaxMind account.</p>
</div>
</div></td>
</tr>
<tr data-order="registeredCountry" id="m$registeredCountry">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Country.html">GeoIP2\Record\Country</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Omni.html#29-32" title="Go to source code"><var>$registeredCountry</var></a>
</td>
<td class="description"><div>
<a href="#m$registeredCountry" class="anchor">#</a>
<div class="description short">
<p>Registered country data for the requested IP address. This record represents
the country where the ISP has registered a given IP block in and may differ from
the user's country.</p>
</div>
<div class="description detailed hidden">
<p>Registered country data for the requested IP address. This record represents
the country where the ISP has registered a given IP block in and may differ from
the user's country.</p>
</div>
</div></td>
</tr>
<tr data-order="representedCountry" id="m$representedCountry">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.RepresentedCountry.html">GeoIP2\Record\RepresentedCountry</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Omni.html#34-37" title="Go to source code"><var>$representedCountry</var></a>
</td>
<td class="description"><div>
<a href="#m$representedCountry" class="anchor">#</a>
<div class="description short">
<p>Represented country data for the requested IP address. The represented
country is used for things like military bases or embassies. It is only present
when the represented country differs from the country.</p>
</div>
<div class="description detailed hidden">
<p>Represented country data for the requested IP address. The represented
country is used for things like military bases or embassies. It is only present
when the represented country differs from the country.</p>
</div>
</div></td>
</tr>
<tr data-order="subdivisions" id="m$subdivisions">
<td class="attributes"><code>
public
array
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Omni.html#39-45" title="Go to source code"><var>$subdivisions</var></a>
</td>
<td class="description"><div>
<a href="#m$subdivisions" class="anchor">#</a>
<div class="description short">
<p>An array of <code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code> objects representing the
country subdivisions for the requested IP address. The number and type of
subdivisions varies by country, but a subdivision is typically a state,
province, county, etc. Subdivisions are ordered from most general (largest) to
most specific (smallest). If the response did not contain any subdivisions, this
method returns an empty array.</p>
</div>
<div class="description detailed hidden">
<p>An array of <code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code> objects representing the
country subdivisions for the requested IP address. The number and type of
subdivisions varies by country, but a subdivision is typically a state,
province, county, etc. Subdivisions are ordered from most general (largest) to
most specific (smallest). If the response did not contain any subdivisions, this
method returns an empty array.</p>
</div>
</div></td>
</tr>
<tr data-order="mostSpecificSubdivision" id="m$mostSpecificSubdivision">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Omni.html#47-50" title="Go to source code"><var>$mostSpecificSubdivision</var></a>
</td>
<td class="description"><div>
<a href="#m$mostSpecificSubdivision" class="anchor">#</a>
<div class="description short">
<p>An object representing the most specific subdivision returned. If the
response did not contain any subdivisions, this method returns an empty <code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code> object.</p>
</div>
<div class="description detailed hidden">
<p>An object representing the most specific subdivision returned. If the
response did not contain any subdivisions, this method returns an empty <code><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></code> object.</p>
</div>
</div></td>
</tr>
<tr data-order="traits" id="m$traits">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Record.Traits.html">GeoIP2\Record\Traits</a></code>
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Model.Omni.html#52-53" title="Go to source code"><var>$traits</var></a>
</td>
<td class="description"><div>
<a href="#m$traits" class="anchor">#</a>
<div class="description short">
<p>Data for the traits of the requested IP address.</p>
</div>
<div class="description detailed hidden">
<p>Data for the traits of the requested IP address.</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
GeoIP2 PHP API v0.1.1 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,176 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Record\AbstractPlaceRecord | GeoIP2 PHP API v0.1.1</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li class="active"><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
<li>
<a href="geoip2-php-api-v0-1-1-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
</li>
</ul>
</div>
<div id="content" class="class">
<h1>Class AbstractPlaceRecord</h1>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-GeoIP2.Record.AbstractRecord.html"><span>GeoIP2\Record\AbstractRecord</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Record\AbstractPlaceRecord</span></b>
</dd>
</dl>
<div>
<h4>Direct known subclasses</h4>
<a href="class-GeoIP2.Record.City.html">GeoIP2\Record\City</a>,
<a href="class-GeoIP2.Record.Continent.html">GeoIP2\Record\Continent</a>,
<a href="class-GeoIP2.Record.Country.html">GeoIP2\Record\Country</a>,
<a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a>
</div>
<div>
<h4>Indirect known subclasses</h4>
<a href="class-GeoIP2.Record.RepresentedCountry.html">GeoIP2\Record\RepresentedCountry</a>
</div>
<div class="info">
<b>Abstract</b><br />
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Record.html">Record</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Record.AbstractPlaceRecord.html#5-38" title="Go to source code">GeoIP2/Record/AbstractPlaceRecord.php</a><br />
</div>
</div>
<div id="footer">
GeoIP2 PHP API v0.1.1 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,167 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Record\AbstractRecord | GeoIP2 PHP API v0.1.1</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li class="active"><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
<li>
<a href="geoip2-php-api-v0-1-1-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
</li>
</ul>
</div>
<div id="content" class="class">
<h1>Class AbstractRecord</h1>
<div>
<h4>Direct known subclasses</h4>
<a href="class-GeoIP2.Record.AbstractPlaceRecord.html">GeoIP2\Record\AbstractPlaceRecord</a>,
<a href="class-GeoIP2.Record.Location.html">GeoIP2\Record\Location</a>,
<a href="class-GeoIP2.Record.MaxMind.html">GeoIP2\Record\MaxMind</a>,
<a href="class-GeoIP2.Record.Postal.html">GeoIP2\Record\Postal</a>,
<a href="class-GeoIP2.Record.Traits.html">GeoIP2\Record\Traits</a>
</div>
<div>
<h4>Indirect known subclasses</h4>
<a href="class-GeoIP2.Record.City.html">GeoIP2\Record\City</a>,
<a href="class-GeoIP2.Record.Continent.html">GeoIP2\Record\Continent</a>,
<a href="class-GeoIP2.Record.Country.html">GeoIP2\Record\Country</a>,
<a href="class-GeoIP2.Record.RepresentedCountry.html">GeoIP2\Record\RepresentedCountry</a>,
<a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a>
</div>
<div class="info">
<b>Abstract</b><br />
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Record.html">Record</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Record.AbstractRecord.html#5-34" title="Go to source code">GeoIP2/Record/AbstractRecord.php</a><br />
</div>
</div>
<div id="footer">
GeoIP2 PHP API v0.1.1 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,295 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Record\City | GeoIP2 PHP API v0.1.1</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li class="active"><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
<li>
<a href="geoip2-php-api-v0-1-1-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
</li>
</ul>
</div>
<div id="content" class="class">
<h1>Class City</h1>
<div class="description">
<p>City-level data associated with an IP address.</p>
<p>This record is returned by all the end points except the Country end
point.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-GeoIP2.Record.AbstractRecord.html"><span>GeoIP2\Record\AbstractRecord</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<a href="class-GeoIP2.Record.AbstractPlaceRecord.html"><span>GeoIP2\Record\AbstractPlaceRecord</span></a>
</dd>
<dd style="padding-left:60px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Record\City</span></b>
</dd>
</dl>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Record.html">Record</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Record.City.html#5-29" title="Go to source code">GeoIP2/Record/City.php</a><br />
</div>
<table class="summary" id="magicProperties">
<caption>Magic properties summary</caption>
<tr data-order="confidence" id="m$confidence">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.City.html#10-12" title="Go to source code"><var>$confidence</var></a>
</td>
<td class="description"><div>
<a href="#m$confidence" class="anchor">#</a>
<div class="description short">
<p>A value from 0-100 indicating MaxMind's confidence that the city is correct.
This attribute is only available from the Omni end point.</p>
</div>
<div class="description detailed hidden">
<p>A value from 0-100 indicating MaxMind's confidence that the city is correct.
This attribute is only available from the Omni end point.</p>
</div>
</div></td>
</tr>
<tr data-order="geonameId" id="m$geonameId">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.City.html#14-15" title="Go to source code"><var>$geonameId</var></a>
</td>
<td class="description"><div>
<a href="#m$geonameId" class="anchor">#</a>
<div class="description short">
<p>The GeoName ID for the city. This attribute is returned by all end
points.</p>
</div>
<div class="description detailed hidden">
<p>The GeoName ID for the city. This attribute is returned by all end
points.</p>
</div>
</div></td>
</tr>
<tr data-order="name" id="m$name">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.City.html#17-18" title="Go to source code"><var>$name</var></a>
</td>
<td class="description"><div>
<a href="#m$name" class="anchor">#</a>
<div class="description short">
<p>The name of the city based on the languages list passed to the constructor.
This attribute is returned by all end points.</p>
</div>
<div class="description detailed hidden">
<p>The name of the city based on the languages list passed to the constructor.
This attribute is returned by all end points.</p>
</div>
</div></td>
</tr>
<tr data-order="names" id="m$names">
<td class="attributes"><code>
public
array
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.City.html#20-21" title="Go to source code"><var>$names</var></a>
</td>
<td class="description"><div>
<a href="#m$names" class="anchor">#</a>
<div class="description short">
<p>A array map where the keys are language codes and the values are names. This
attribute is returned by all end points.</p>
</div>
<div class="description detailed hidden">
<p>A array map where the keys are language codes and the values are names. This
attribute is returned by all end points.</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
GeoIP2 PHP API v0.1.1 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,294 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Record\Continent | GeoIP2 PHP API v0.1.1</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li class="active"><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
<li>
<a href="geoip2-php-api-v0-1-1-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
</li>
</ul>
</div>
<div id="content" class="class">
<h1>Class Continent</h1>
<div class="description">
<p>Contains data for the continent record associated with an IP address</p>
<p>This record is returned by all the end points.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-GeoIP2.Record.AbstractRecord.html"><span>GeoIP2\Record\AbstractRecord</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<a href="class-GeoIP2.Record.AbstractPlaceRecord.html"><span>GeoIP2\Record\AbstractPlaceRecord</span></a>
</dd>
<dd style="padding-left:60px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Record\Continent</span></b>
</dd>
</dl>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Record.html">Record</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Record.Continent.html#5-33" title="Go to source code">GeoIP2/Record/Continent.php</a><br />
</div>
<table class="summary" id="magicProperties">
<caption>Magic properties summary</caption>
<tr data-order="code" id="m$code">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Continent.html#10-11" title="Go to source code"><var>$code</var></a>
</td>
<td class="description"><div>
<a href="#m$code" class="anchor">#</a>
<div class="description short">
<p>A two character continent code like "NA" (North America) or "OC" (Oceania).
This attribute is returned by all end points.</p>
</div>
<div class="description detailed hidden">
<p>A two character continent code like "NA" (North America) or "OC" (Oceania).
This attribute is returned by all end points.</p>
</div>
</div></td>
</tr>
<tr data-order="geonameId" id="m$geonameId">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Continent.html#13-14" title="Go to source code"><var>$geonameId</var></a>
</td>
<td class="description"><div>
<a href="#m$geonameId" class="anchor">#</a>
<div class="description short">
<p>The GeoName ID for the continent. This attribute is returned by all end
points.</p>
</div>
<div class="description detailed hidden">
<p>The GeoName ID for the continent. This attribute is returned by all end
points.</p>
</div>
</div></td>
</tr>
<tr data-order="name" id="m$name">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Continent.html#16-18" title="Go to source code"><var>$name</var></a>
</td>
<td class="description"><div>
<a href="#m$name" class="anchor">#</a>
<div class="description short">
<p>Returns the name of the continent based on the languages list passed to the
constructor. This attribute is returned by all end points.</p>
</div>
<div class="description detailed hidden">
<p>Returns the name of the continent based on the languages list passed to the
constructor. This attribute is returned by all end points.</p>
</div>
</div></td>
</tr>
<tr data-order="names" id="m$names">
<td class="attributes"><code>
public
array
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Continent.html#20-21" title="Go to source code"><var>$names</var></a>
</td>
<td class="description"><div>
<a href="#m$names" class="anchor">#</a>
<div class="description short">
<p>An array map where the keys are language codes and the values are names. This
attribute is returned by all end points.</p>
</div>
<div class="description detailed hidden">
<p>An array map where the keys are language codes and the values are names. This
attribute is returned by all end points.</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
GeoIP2 PHP API v0.1.1 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,326 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Record\Country | GeoIP2 PHP API v0.1.1</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li class="active"><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
<li>
<a href="geoip2-php-api-v0-1-1-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
</li>
</ul>
</div>
<div id="content" class="class">
<h1>Class Country</h1>
<div class="description">
<p>Contains data for the country record associated with an IP address</p>
<p>This record is returned by all the end points.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-GeoIP2.Record.AbstractRecord.html"><span>GeoIP2\Record\AbstractRecord</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<a href="class-GeoIP2.Record.AbstractPlaceRecord.html"><span>GeoIP2\Record\AbstractPlaceRecord</span></a>
</dd>
<dd style="padding-left:60px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Record\Country</span></b>
</dd>
</dl>
<div>
<h4>Direct known subclasses</h4>
<a href="class-GeoIP2.Record.RepresentedCountry.html">GeoIP2\Record\RepresentedCountry</a>
</div>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Record.html">Record</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Record.Country.html#5-38" title="Go to source code">GeoIP2/Record/Country.php</a><br />
</div>
<table class="summary" id="magicProperties">
<caption>Magic properties summary</caption>
<tr data-order="confidence" id="m$confidence">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Country.html#10-12" title="Go to source code"><var>$confidence</var></a>
</td>
<td class="description"><div>
<a href="#m$confidence" class="anchor">#</a>
<div class="description short">
<p>A value from 0-100 indicating MaxMind's confidence that the country is
correct. This attribute is only available from the Omni end point.</p>
</div>
<div class="description detailed hidden">
<p>A value from 0-100 indicating MaxMind's confidence that the country is
correct. This attribute is only available from the Omni end point.</p>
</div>
</div></td>
</tr>
<tr data-order="geonameId" id="m$geonameId">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Country.html#14-15" title="Go to source code"><var>$geonameId</var></a>
</td>
<td class="description"><div>
<a href="#m$geonameId" class="anchor">#</a>
<div class="description short">
<p>The GeoName ID for the country. This attribute is returned by all end
points.</p>
</div>
<div class="description detailed hidden">
<p>The GeoName ID for the country. This attribute is returned by all end
points.</p>
</div>
</div></td>
</tr>
<tr data-order="isoCode" id="m$isoCode">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Country.html#17-19" title="Go to source code"><var>$isoCode</var></a>
</td>
<td class="description"><div>
<a href="#m$isoCode" class="anchor">#</a>
<div class="description short">
<p>The <a href="http://en.wikipedia.org/wiki/ISO_3166-1">two-character ISO 3166-1 alpha code</a> for the country. This attribute is returned
by all end points.</p>
</div>
<div class="description detailed hidden">
<p>The <a href="http://en.wikipedia.org/wiki/ISO_3166-1">two-character ISO 3166-1 alpha code</a> for the country. This attribute is returned
by all end points.</p>
</div>
</div></td>
</tr>
<tr data-order="name" id="m$name">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Country.html#21-22" title="Go to source code"><var>$name</var></a>
</td>
<td class="description"><div>
<a href="#m$name" class="anchor">#</a>
<div class="description short">
<p>The name of the country based on the languages list passed to the
constructor. This attribute is returned by all end points.</p>
</div>
<div class="description detailed hidden">
<p>The name of the country based on the languages list passed to the
constructor. This attribute is returned by all end points.</p>
</div>
</div></td>
</tr>
<tr data-order="names" id="m$names">
<td class="attributes"><code>
public
array
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Country.html#24-25" title="Go to source code"><var>$names</var></a>
</td>
<td class="description"><div>
<a href="#m$names" class="anchor">#</a>
<div class="description short">
<p>An array map where the keys are language codes and the values are names. This
attribute is returned by all end points.</p>
</div>
<div class="description detailed hidden">
<p>An array map where the keys are language codes and the values are names. This
attribute is returned by all end points.</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
GeoIP2 PHP API v0.1.1 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,320 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Record\Location | GeoIP2 PHP API v0.1.1</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li class="active"><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
<li>
<a href="geoip2-php-api-v0-1-1-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
</li>
</ul>
</div>
<div id="content" class="class">
<h1>Class Location</h1>
<div class="description">
<p>Contains data for the location record associated with an IP address</p>
<p>This record is returned by all the end points except the Country end
point.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-GeoIP2.Record.AbstractRecord.html"><span>GeoIP2\Record\AbstractRecord</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Record\Location</span></b>
</dd>
</dl>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Record.html">Record</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Record.Location.html#5-48" title="Go to source code">GeoIP2/Record/Location.php</a><br />
</div>
<table class="summary" id="magicProperties">
<caption>Magic properties summary</caption>
<tr data-order="accuracyRadius" id="m$accuracyRadius">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Location.html#10-12" title="Go to source code"><var>$accuracyRadius</var></a>
</td>
<td class="description"><div>
<a href="#m$accuracyRadius" class="anchor">#</a>
<div class="description short">
<p>The radius in kilometers around the specified location where the IP address
is likely to be. This attribute is only available from the Omni end point.</p>
</div>
<div class="description detailed hidden">
<p>The radius in kilometers around the specified location where the IP address
is likely to be. This attribute is only available from the Omni end point.</p>
</div>
</div></td>
</tr>
<tr data-order="latitude" id="m$latitude">
<td class="attributes"><code>
public
float
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Location.html#14-16" title="Go to source code"><var>$latitude</var></a>
</td>
<td class="description"><div>
<a href="#m$latitude" class="anchor">#</a>
<div class="description short">
<p>The latitude of the location as a floating point number. This attribute is
returned by all end points except the Country end point.</p>
</div>
<div class="description detailed hidden">
<p>The latitude of the location as a floating point number. This attribute is
returned by all end points except the Country end point.</p>
</div>
</div></td>
</tr>
<tr data-order="longitude" id="m$longitude">
<td class="attributes"><code>
public
float
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Location.html#18-20" title="Go to source code"><var>$longitude</var></a>
</td>
<td class="description"><div>
<a href="#m$longitude" class="anchor">#</a>
<div class="description short">
<p>The longitude of the location as a floating point number. This attribute is
returned by all end points except the Country end point.</p>
</div>
<div class="description detailed hidden">
<p>The longitude of the location as a floating point number. This attribute is
returned by all end points except the Country end point.</p>
</div>
</div></td>
</tr>
<tr data-order="metroCode" id="m$metroCode">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Location.html#22-27" title="Go to source code"><var>$metroCode</var></a>
</td>
<td class="description"><div>
<a href="#m$metroCode" class="anchor">#</a>
<div class="description short">
<p>The metro code of the location if the location is in the US. MaxMind returns
the same metro codes as the <a href="https://developers.google.com/adwords/api/docs/appendix/cities-DMAregions">Google AdWords API</a>. This attribute is returned by all end points except the
Country end point.</p>
</div>
<div class="description detailed hidden">
<p>The metro code of the location if the location is in the US. MaxMind returns
the same metro codes as the <a href="https://developers.google.com/adwords/api/docs/appendix/cities-DMAregions">Google AdWords API</a>. This attribute is returned by all end points except the
Country end point.</p>
</div>
</div></td>
</tr>
<tr data-order="timeZone" id="m$timeZone">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Location.html#29-32" title="Go to source code"><var>$timeZone</var></a>
</td>
<td class="description"><div>
<a href="#m$timeZone" class="anchor">#</a>
<div class="description short">
<p>The time zone associated with location, as specified by the <a href="http://www.iana.org/time-zones">IANA
Time Zone Database</a>, e.g., "America/New_York". This attribute is returned by all
end points except the Country end point.</p>
</div>
<div class="description detailed hidden">
<p>The time zone associated with location, as specified by the <a href="http://www.iana.org/time-zones">IANA
Time Zone Database</a>, e.g., "America/New_York". This attribute is returned by all
end points except the Country end point.</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
GeoIP2 PHP API v0.1.1 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,203 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Record\MaxMind | GeoIP2 PHP API v0.1.1</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li class="active"><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
<li>
<a href="geoip2-php-api-v0-1-1-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
</li>
</ul>
</div>
<div id="content" class="class">
<h1>Class MaxMind</h1>
<div class="description">
<p>Contains data about your account.</p>
<p>This record is returned by all the end points.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-GeoIP2.Record.AbstractRecord.html"><span>GeoIP2\Record\AbstractRecord</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Record\MaxMind</span></b>
</dd>
</dl>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Record.html">Record</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Record.MaxMind.html#5-19" title="Go to source code">GeoIP2/Record/MaxMind.php</a><br />
</div>
<table class="summary" id="magicProperties">
<caption>Magic properties summary</caption>
<tr data-order="queriesRemaining" id="m$queriesRemaining">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.MaxMind.html#10-11" title="Go to source code"><var>$queriesRemaining</var></a>
</td>
<td class="description"><div>
<a href="#m$queriesRemaining" class="anchor">#</a>
<div class="description short">
<p>The number of remaining queries you have for the end point you are
calling.</p>
</div>
<div class="description detailed hidden">
<p>The number of remaining queries you have for the end point you are
calling.</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
GeoIP2 PHP API v0.1.1 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,234 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Record\Postal | GeoIP2 PHP API v0.1.1</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li class="active"><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
<li>
<a href="geoip2-php-api-v0-1-1-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
</li>
</ul>
</div>
<div id="content" class="class">
<h1>Class Postal</h1>
<div class="description">
<p>Contains data for the postal record associated with an IP address</p>
<p>This record is returned by all the end points except the Country end
point.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-GeoIP2.Record.AbstractRecord.html"><span>GeoIP2\Record\AbstractRecord</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Record\Postal</span></b>
</dd>
</dl>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Record.html">Record</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Record.Postal.html#5-25" title="Go to source code">GeoIP2/Record/Postal.php</a><br />
</div>
<table class="summary" id="magicProperties">
<caption>Magic properties summary</caption>
<tr data-order="code" id="m$code">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Postal.html#10-13" title="Go to source code"><var>$code</var></a>
</td>
<td class="description"><div>
<a href="#m$code" class="anchor">#</a>
<div class="description short">
<p>The postal code of the location. Postal codes are not available for all
countries. In some countries, this will only contain part of the postal code.
This attribute is returned by all end points except the Country end point.</p>
</div>
<div class="description detailed hidden">
<p>The postal code of the location. Postal codes are not available for all
countries. In some countries, this will only contain part of the postal code.
This attribute is returned by all end points except the Country end point.</p>
</div>
</div></td>
</tr>
<tr data-order="confidence" id="m$confidence">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Postal.html#15-17" title="Go to source code"><var>$confidence</var></a>
</td>
<td class="description"><div>
<a href="#m$confidence" class="anchor">#</a>
<div class="description short">
<p>A value from 0-100 indicating MaxMind's confidence that the postal code is
correct. This attribute is only available from the Omni end point.</p>
</div>
<div class="description detailed hidden">
<p>A value from 0-100 indicating MaxMind's confidence that the postal code is
correct. This attribute is only available from the Omni end point.</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
GeoIP2 PHP API v0.1.1 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,365 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Record\RepresentedCountry | GeoIP2 PHP API v0.1.1</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li class="active"><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
<li>
<a href="geoip2-php-api-v0-1-1-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
</li>
</ul>
</div>
<div id="content" class="class">
<h1>Class RepresentedCountry</h1>
<div class="description">
<p>Contains data for the represented country associated with an IP address</p>
<p>This class contains the country-level data associated with an IP address for
the IP's represented country. The represented country is the country represented
by something like a military base or embassy.</p>
<p>This record is returned by all the end points.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-GeoIP2.Record.AbstractRecord.html"><span>GeoIP2\Record\AbstractRecord</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<a href="class-GeoIP2.Record.AbstractPlaceRecord.html"><span>GeoIP2\Record\AbstractPlaceRecord</span></a>
</dd>
<dd style="padding-left:60px">
<img src="resources/inherit.png" alt="Extended by" />
<a href="class-GeoIP2.Record.Country.html"><span>GeoIP2\Record\Country</span></a>
</dd>
<dd style="padding-left:90px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Record\RepresentedCountry</span></b>
</dd>
</dl>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Record.html">Record</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Record.RepresentedCountry.html#5-45" title="Go to source code">GeoIP2/Record/RepresentedCountry.php</a><br />
</div>
<table class="summary" id="magicProperties">
<caption>Magic properties summary</caption>
<tr data-order="confidence" id="m$confidence">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.RepresentedCountry.html#14-16" title="Go to source code"><var>$confidence</var></a>
</td>
<td class="description"><div>
<a href="#m$confidence" class="anchor">#</a>
<div class="description short">
<p>A value from 0-100 indicating MaxMind's confidence that the country is
correct. This attribute is only available from the Omni end point.</p>
</div>
<div class="description detailed hidden">
<p>A value from 0-100 indicating MaxMind's confidence that the country is
correct. This attribute is only available from the Omni end point.</p>
</div>
</div></td>
</tr>
<tr data-order="geonameId" id="m$geonameId">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.RepresentedCountry.html#18-19" title="Go to source code"><var>$geonameId</var></a>
</td>
<td class="description"><div>
<a href="#m$geonameId" class="anchor">#</a>
<div class="description short">
<p>The GeoName ID for the country. This attribute is returned by all end
points.</p>
</div>
<div class="description detailed hidden">
<p>The GeoName ID for the country. This attribute is returned by all end
points.</p>
</div>
</div></td>
</tr>
<tr data-order="isoCode" id="m$isoCode">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.RepresentedCountry.html#21-23" title="Go to source code"><var>$isoCode</var></a>
</td>
<td class="description"><div>
<a href="#m$isoCode" class="anchor">#</a>
<div class="description short">
<p>The <a href="http://en.wikipedia.org/wiki/ISO_3166-1">two-character ISO 3166-1 alpha code</a> for the country. This attribute is returned
by all end points.</p>
</div>
<div class="description detailed hidden">
<p>The <a href="http://en.wikipedia.org/wiki/ISO_3166-1">two-character ISO 3166-1 alpha code</a> for the country. This attribute is returned
by all end points.</p>
</div>
</div></td>
</tr>
<tr data-order="name" id="m$name">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.RepresentedCountry.html#25-26" title="Go to source code"><var>$name</var></a>
</td>
<td class="description"><div>
<a href="#m$name" class="anchor">#</a>
<div class="description short">
<p>The name of the country based on the languages list passed to the
constructor. This attribute is returned by all end points.</p>
</div>
<div class="description detailed hidden">
<p>The name of the country based on the languages list passed to the
constructor. This attribute is returned by all end points.</p>
</div>
</div></td>
</tr>
<tr data-order="names" id="m$names">
<td class="attributes"><code>
public
array
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.RepresentedCountry.html#28-29" title="Go to source code"><var>$names</var></a>
</td>
<td class="description"><div>
<a href="#m$names" class="anchor">#</a>
<div class="description short">
<p>An array map where the keys are language codes and the values are names. This
attribute is returned by all end points.</p>
</div>
<div class="description detailed hidden">
<p>An array map where the keys are language codes and the values are names. This
attribute is returned by all end points.</p>
</div>
</div></td>
</tr>
<tr data-order="type" id="m$type">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.RepresentedCountry.html#31-34" title="Go to source code"><var>$type</var></a>
</td>
<td class="description"><div>
<a href="#m$type" class="anchor">#</a>
<div class="description short">
<p>A string indicating the type of entity that is representing the country.
Currently we only return <code>military</code> but this could expand to include
other types such as <code>embassy</code> in the future. Returned by all
endpoints.</p>
</div>
<div class="description detailed hidden">
<p>A string indicating the type of entity that is representing the country.
Currently we only return <code>military</code> but this could expand to include
other types such as <code>embassy</code> in the future. Returned by all
endpoints.</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
GeoIP2 PHP API v0.1.1 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,327 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Record\Subdivision | GeoIP2 PHP API v0.1.1</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li class="active"><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
<li>
<a href="geoip2-php-api-v0-1-1-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
</li>
</ul>
</div>
<div id="content" class="class">
<h1>Class Subdivision</h1>
<div class="description">
<p>Contains data for the subdivisions associated with an IP address</p>
<p>This record is returned by all the end points except the Country end
point.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-GeoIP2.Record.AbstractRecord.html"><span>GeoIP2\Record\AbstractRecord</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<a href="class-GeoIP2.Record.AbstractPlaceRecord.html"><span>GeoIP2\Record\AbstractPlaceRecord</span></a>
</dd>
<dd style="padding-left:60px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Record\Subdivision</span></b>
</dd>
</dl>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Record.html">Record</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Record.Subdivision.html#5-42" title="Go to source code">GeoIP2/Record/Subdivision.php</a><br />
</div>
<table class="summary" id="magicProperties">
<caption>Magic properties summary</caption>
<tr data-order="confidence" id="m$confidence">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Subdivision.html#11-13" title="Go to source code"><var>$confidence</var></a>
</td>
<td class="description"><div>
<a href="#m$confidence" class="anchor">#</a>
<div class="description short">
<p>This is a value from 0-100 indicating MaxMind's confidence that the
subdivision is correct. This attribute is only available from the Omni end
point.</p>
</div>
<div class="description detailed hidden">
<p>This is a value from 0-100 indicating MaxMind's confidence that the
subdivision is correct. This attribute is only available from the Omni end
point.</p>
</div>
</div></td>
</tr>
<tr data-order="geonameId" id="m$geonameId">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Subdivision.html#15-16" title="Go to source code"><var>$geonameId</var></a>
</td>
<td class="description"><div>
<a href="#m$geonameId" class="anchor">#</a>
<div class="description short">
<p>This is a GeoName ID for the subdivision. This attribute is returned by all
end points except Country.</p>
</div>
<div class="description detailed hidden">
<p>This is a GeoName ID for the subdivision. This attribute is returned by all
end points except Country.</p>
</div>
</div></td>
</tr>
<tr data-order="isoCode" id="m$isoCode">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Subdivision.html#18-21" title="Go to source code"><var>$isoCode</var></a>
</td>
<td class="description"><div>
<a href="#m$isoCode" class="anchor">#</a>
<div class="description short">
<p>This is a string up to three characters long contain the subdivision portion
of the <a href="http://en.wikipedia.org/wiki/ISO_3166-2">ISO 3166-2 code</a>. This attribute is returned by all end points except
Country.</p>
</div>
<div class="description detailed hidden">
<p>This is a string up to three characters long contain the subdivision portion
of the <a href="http://en.wikipedia.org/wiki/ISO_3166-2">ISO 3166-2 code</a>. This attribute is returned by all end points except
Country.</p>
</div>
</div></td>
</tr>
<tr data-order="name" id="m$name">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Subdivision.html#23-25" title="Go to source code"><var>$name</var></a>
</td>
<td class="description"><div>
<a href="#m$name" class="anchor">#</a>
<div class="description short">
<p>The name of the subdivision based on the languages list passed to the
constructor. This attribute is returned by all end points except Country.</p>
</div>
<div class="description detailed hidden">
<p>The name of the subdivision based on the languages list passed to the
constructor. This attribute is returned by all end points except Country.</p>
</div>
</div></td>
</tr>
<tr data-order="names" id="m$names">
<td class="attributes"><code>
public
array
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Subdivision.html#27-29" title="Go to source code"><var>$names</var></a>
</td>
<td class="description"><div>
<a href="#m$names" class="anchor">#</a>
<div class="description short">
<p>An array map where the keys are language codes and the values are names. This
attribute is returned by all end points except Country.</p>
</div>
<div class="description detailed hidden">
<p>An array map where the keys are language codes and the values are names. This
attribute is returned by all end points except Country.</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
GeoIP2 PHP API v0.1.1 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,503 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\Record\Traits | GeoIP2 PHP API v0.1.1</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li class="active"><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.Record.html" title="Summary of GeoIP2\Record"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
<li>
<a href="geoip2-php-api-v0-1-1-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
</li>
</ul>
</div>
<div id="content" class="class">
<h1>Class Traits</h1>
<div class="description">
<p>Contains data for the traits record associated with an IP address</p>
<p>This record is returned by all the end points.</p>
</div>
<dl class="tree">
<dd style="padding-left:0px">
<a href="class-GeoIP2.Record.AbstractRecord.html"><span>GeoIP2\Record\AbstractRecord</span></a>
</dd>
<dd style="padding-left:30px">
<img src="resources/inherit.png" alt="Extended by" />
<b><span>GeoIP2\Record\Traits</span></b>
</dd>
</dl>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.Record.html">Record</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.Record.Traits.html#5-87" title="Go to source code">GeoIP2/Record/Traits.php</a><br />
</div>
<table class="summary" id="magicProperties">
<caption>Magic properties summary</caption>
<tr data-order="autonomousSystemNumber" id="m$autonomousSystemNumber">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Traits.html#11-14" title="Go to source code"><var>$autonomousSystemNumber</var></a>
</td>
<td class="description"><div>
<a href="#m$autonomousSystemNumber" class="anchor">#</a>
<div class="description short">
<p>The <a href="http://en.wikipedia.org/wiki/Autonomous_system_(Internet)">autonomous system number</a> associated with the IP address. This attribute is only
available from the City/ISP/Org and Omni end points.</p>
</div>
<div class="description detailed hidden">
<p>The <a href="http://en.wikipedia.org/wiki/Autonomous_system_(Internet)">autonomous system number</a> associated with the IP address. This attribute is only
available from the City/ISP/Org and Omni end points.</p>
</div>
</div></td>
</tr>
<tr data-order="autonomousSystemOrganization" id="m$autonomousSystemOrganization">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Traits.html#16-20" title="Go to source code"><var>$autonomousSystemOrganization</var></a>
</td>
<td class="description"><div>
<a href="#m$autonomousSystemOrganization" class="anchor">#</a>
<div class="description short">
<p>The organization associated with the registered <a href="http://en.wikipedia.org/wiki/Autonomous_system_(Internet)">autonomous system number</a> for the IP address. This attribute is only available
from the City/ISP/Org and Omni end points.</p>
</div>
<div class="description detailed hidden">
<p>The organization associated with the registered <a href="http://en.wikipedia.org/wiki/Autonomous_system_(Internet)">autonomous system number</a> for the IP address. This attribute is only available
from the City/ISP/Org and Omni end points.</p>
</div>
</div></td>
</tr>
<tr data-order="domain" id="m$domain">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Traits.html#22-25" title="Go to source code"><var>$domain</var></a>
</td>
<td class="description"><div>
<a href="#m$domain" class="anchor">#</a>
<div class="description short">
<p>The second level domain associated with the IP address. This will be
something like "example.com" or "example.co.uk", not "foo.example.com". This
attribute is only available from the City/ISP/Org and Omni end points.</p>
</div>
<div class="description detailed hidden">
<p>The second level domain associated with the IP address. This will be
something like "example.com" or "example.co.uk", not "foo.example.com". This
attribute is only available from the City/ISP/Org and Omni end points.</p>
</div>
</div></td>
</tr>
<tr data-order="ipAddress" id="m$ipAddress">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Traits.html#27-32" title="Go to source code"><var>$ipAddress</var></a>
</td>
<td class="description"><div>
<a href="#m$ipAddress" class="anchor">#</a>
<div class="description short">
<p>The IP address that the data in the model is for. If you performed a "me"
lookup against the web service, this will be the externally routable IP address
for the system the code is running on. If the system is behind a NAT, this may
differ from the IP address locally assigned to it. This attribute is returned by
all end points.</p>
</div>
<div class="description detailed hidden">
<p>The IP address that the data in the model is for. If you performed a "me"
lookup against the web service, this will be the externally routable IP address
for the system the code is running on. If the system is behind a NAT, this may
differ from the IP address locally assigned to it. This attribute is returned by
all end points.</p>
</div>
</div></td>
</tr>
<tr data-order="isAnonymousProxy" id="m$isAnonymousProxy">
<td class="attributes"><code>
public
boolean
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Traits.html#34-36" title="Go to source code"><var>$isAnonymousProxy</var></a>
</td>
<td class="description"><div>
<a href="#m$isAnonymousProxy" class="anchor">#</a>
<div class="description short">
<p>This is true if the IP is an anonymous proxy. See <a href="http://dev.maxmind.com/faq/geoip#anonproxy">http://dev.maxmind.com/faq/geoip#anonproxy</a>
for further details. This attribute is returned by all end points.</p>
</div>
<div class="description detailed hidden">
<p>This is true if the IP is an anonymous proxy. See <a href="http://dev.maxmind.com/faq/geoip#anonproxy">http://dev.maxmind.com/faq/geoip#anonproxy</a>
for further details. This attribute is returned by all end points.</p>
</div>
</div></td>
</tr>
<tr data-order="isSatelliteProvider" id="m$isSatelliteProvider">
<td class="attributes"><code>
public
boolean
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Traits.html#38-40" title="Go to source code"><var>$isSatelliteProvider</var></a>
</td>
<td class="description"><div>
<a href="#m$isSatelliteProvider" class="anchor">#</a>
<div class="description short">
<p>This is true if the IP belongs to a satellite Internet provider. This
attribute is returned by all end points.</p>
</div>
<div class="description detailed hidden">
<p>This is true if the IP belongs to a satellite Internet provider. This
attribute is returned by all end points.</p>
</div>
</div></td>
</tr>
<tr data-order="isp" id="m$isp">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Traits.html#42-44" title="Go to source code"><var>$isp</var></a>
</td>
<td class="description"><div>
<a href="#m$isp" class="anchor">#</a>
<div class="description short">
<p>The name of the ISP associated the IP address. This attribute is only
available from the City/ISP/Org and Omni end points.</p>
</div>
<div class="description detailed hidden">
<p>The name of the ISP associated the IP address. This attribute is only
available from the City/ISP/Org and Omni end points.</p>
</div>
</div></td>
</tr>
<tr data-order="organization" id="m$organization">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Traits.html#46-48" title="Go to source code"><var>$organization</var></a>
</td>
<td class="description"><div>
<a href="#m$organization" class="anchor">#</a>
<div class="description short">
<p>The name of the organization associated the IP address. This attribute is
only available from the City/ISP/Org and Omni end points.</p>
</div>
<div class="description detailed hidden">
<p>The name of the organization associated the IP address. This attribute is
only available from the City/ISP/Org and Omni end points.</p>
</div>
</div></td>
</tr>
<tr data-order="userType" id="m$userType">
<td class="attributes"><code>
public
string
</code></td>
<td class="name">
<a href="source-class-GeoIP2.Record.Traits.html#50-69" title="Go to source code"><var>$userType</var></a>
</td>
<td class="description"><div>
<a href="#m$userType" class="anchor">#</a>
<div class="description short">
<p>The user type associated with the IP address. This can be one of the
following values:</p>
<ul>
<li>business</li>
<li>cafe</li>
<li>cellular</li>
<li>college</li>
<li>content_delivery_network</li>
<li>dialup</li>
<li>government</li>
<li>hosting</li>
<li>library</li>
<li>military</li>
<li>residential</li>
<li>router</li>
<li>school</li>
<li>search_engine_spider</li>
<li>traveler</li>
</ul>
<p>This attribute is only available from the Omni end point.</p>
</div>
<div class="description detailed hidden">
<p>The user type associated with the IP address. This can be one of the
following values:</p>
<ul>
<li>business</li>
<li>cafe</li>
<li>cellular</li>
<li>college</li>
<li>content_delivery_network</li>
<li>dialup</li>
<li>government</li>
<li>hosting</li>
<li>library</li>
<li>military</li>
<li>residential</li>
<li>router</li>
<li>school</li>
<li>search_engine_spider</li>
<li>traveler</li>
</ul>
<p>This attribute is only available from the Omni end point.</p>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
GeoIP2 PHP API v0.1.1 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,439 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class GeoIP2\WebService\Client | GeoIP2 PHP API v0.1.1</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li class="active"><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li class="active"><a href="class-GeoIP2.WebService.Client.html">Client</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-GeoIP2.WebService.html" title="Summary of GeoIP2\WebService"><span>Namespace</span></a>
</li>
<li class="active">
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
<li>
<a href="geoip2-php-api-v0-1-1-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
</li>
</ul>
</div>
<div id="content" class="class">
<h1>Class Client</h1>
<div class="description">
<p>This class provides a client API for all the GeoIP2 web service's end points.
The end points are Country, City, City/ISP/Org, and Omni. Each end point returns
a different set of data about an IP address, with Country returning the least
data and Omni the most.</p>
<p>Each web service end point is represented by a different model class, and
these model classes in turn contain multiple Record classes. The record classes
have attributes which contain data about the IP address.</p>
<p>If the web service does not return a particular piece of data for an IP
address, the associated attribute is not populated.</p>
<p>The web service may not return any information for an entire record, in which
case all of the attributes for that record class will be empty.</p>
<p><strong>Usage</strong></p>
<p>The basic API for this class is the same for all of the web service end
points. First you create a web service object with your MaxMind <code>&lt;span
class="php-var"&gt;$userId&lt;/span&gt;</code> and <code>&lt;span
class="php-var"&gt;$licenseKey&lt;/span&gt;</code>, then you call the method
corresponding to a specific end point, passing it the IP address you want to
look up.</p>
<p>If the request succeeds, the method call will return a model class for the
end point you called. This model in turn contains multiple record classes, each
of which represents part of the data returned by the web service.</p>
<p>If the request fails, the client class throws an exception.</p>
<p><strong>Exceptions</strong></p>
<p>For details on the possible errors returned by the web service itself, see
<a href="http://dev.maxmind.com/geoip2/geoip/web-services">the GeoIP2 web service docs</a>.</p>
<p>If the web service returns an explicit error document, this is thrown as a
<code><a href="class-GeoIP2.Exception.WebServiceException.html">GeoIP2\Exception\WebServiceException</a></code>. If some other sort of transport
error occurs, this is thrown as a <code><a href="class-GeoIP2.Exception.HttpException.html">GeoIP2\Exception\HttpException</a></code>. The
difference is that the web service error includes an error message and error
code delivered by the web service. The latter is thrown when some sort of
unanticipated error occurs, such as the web service returning a 500 or an
invalid error document.</p>
<p>If the web service returns any status code besides 200, 4xx, or 5xx, this
also becomes a <code><a href="class-GeoIP2.Exception.HttpException.html">GeoIP2\Exception\HttpException</a></code>.</p>
<p>Finally, if the web service returns a 200 but the body is invalid, the client
throws a <code><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2\Exception\GeoIP2Exception</a></code>.</p>
</div>
<div class="info">
<b>Namespace:</b> <a href="namespace-GeoIP2.html">GeoIP2</a>\<a href="namespace-GeoIP2.WebService.html">WebService</a><br />
<b>Located at</b> <a href="source-class-GeoIP2.WebService.Client.html#17-312" title="Go to source code">GeoIP2/WebService/Client.php</a><br />
</div>
<table class="summary" id="methods">
<caption>Methods summary</caption>
<tr data-order="__construct" id="___construct">
<td class="attributes"><code>
public
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#___construct">#</a>
<code><a href="source-class-GeoIP2.WebService.Client.html#76-100" title="Go to source code">__construct</a>( <span>integer <var>$userId</var></span>, <span>string <var>$licenseKey</var></span>, <span>array <var>$languages</var> = <span class="php-keyword1">array</span>(<span class="php-quote">'en'</span>)</span>, <span>string <var>$host</var> = <span class="php-quote">'geoip.maxmind.com'</span></span>, <span>object <var>$guzzleClient</var> = <span class="php-keyword1">null</span> </span> )</code>
<div class="description short">
<p>Constructor.</p>
</div>
<div class="description detailed hidden">
<p>Constructor.</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$userId</var></dt>
<dd><code>integer</code><br>$userId Your MaxMind user ID</dd>
<dt><var>$licenseKey</var></dt>
<dd><code>string</code><br>$licenseKey Your MaxMind license key</dd>
<dt><var>$languages</var></dt>
<dd><code>array</code><br>$languages List of language codes to use in name property from most preferred to
least preferred.</dd>
<dt><var>$host</var></dt>
<dd><code>string</code><br>$host Optional host parameter</dd>
<dt><var>$guzzleClient</var></dt>
<dd><code>object</code><br>$guzzleClient Optional Guzzle client to use (to facilitate unit testing).</dd>
</dl></div>
</div>
</div></td>
</tr>
<tr data-order="city" id="_city">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Model.City.html">GeoIP2\Model\City</a></code>
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_city">#</a>
<code><a href="source-class-GeoIP2.WebService.Client.html#102-121" title="Go to source code">city</a>( <span>string <var>$ipAddress</var> = <span class="php-quote">'me'</span></span> )</code>
<div class="description short">
<p>This method calls the GeoIP2 City endpoint.</p>
</div>
<div class="description detailed hidden">
<p>This method calls the GeoIP2 City endpoint.</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$ipAddress</var></dt>
<dd><code>string</code><br>$ipAddress IPv4 or IPv6 address as a string. If no address is provided, the
address that the web service is called from will be used.</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code><code><a href="class-GeoIP2.Model.City.html">GeoIP2\Model\City</a></code></code><br />
</div>
<h4>Throws</h4>
<div class="list">
<code><code><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2\Exception\GeoIP2Exception</a></code></code><br>if there was a generic error processing your request.<br />
<code><code><a href="class-GeoIP2.Exception.HttpException.html">GeoIP2\Exception\HttpException</a></code></code><br>if there was an HTTP transport error.<br />
<code><code><a href="class-GeoIP2.Exception.WebServiceException.html">GeoIP2\Exception\WebServiceException</a></code></code><br>if an error was returned by MaxMind's GeoIP2 web service.<br />
</div>
</div>
</div></td>
</tr>
<tr data-order="country" id="_country">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Model.Country.html">GeoIP2\Model\Country</a></code>
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_country">#</a>
<code><a href="source-class-GeoIP2.WebService.Client.html#123-142" title="Go to source code">country</a>( <span>string <var>$ipAddress</var> = <span class="php-quote">'me'</span></span> )</code>
<div class="description short">
<p>This method calls the GeoIP2 Country endpoint.</p>
</div>
<div class="description detailed hidden">
<p>This method calls the GeoIP2 Country endpoint.</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$ipAddress</var></dt>
<dd><code>string</code><br>$ipAddress IPv4 or IPv6 address as a string. If no address is provided, the
address that the web service is called from will be used.</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code><code><a href="class-GeoIP2.Model.Country.html">GeoIP2\Model\Country</a></code></code><br />
</div>
<h4>Throws</h4>
<div class="list">
<code><code><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2\Exception\GeoIP2Exception</a></code></code><br>if there was a generic error processing your request.<br />
<code><code><a href="class-GeoIP2.Exception.HttpException.html">GeoIP2\Exception\HttpException</a></code></code><br>if there was an HTTP transport error.<br />
<code><code><a href="class-GeoIP2.Exception.WebServiceException.html">GeoIP2\Exception\WebServiceException</a></code></code><br>if an error was returned by MaxMind's GeoIP2 web service.<br />
</div>
</div>
</div></td>
</tr>
<tr data-order="cityIspOrg" id="_cityIspOrg">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Model.CityIspOrg.html">GeoIP2\Model\CityIspOrg</a></code>
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_cityIspOrg">#</a>
<code><a href="source-class-GeoIP2.WebService.Client.html#144-163" title="Go to source code">cityIspOrg</a>( <span>string <var>$ipAddress</var> = <span class="php-quote">'me'</span></span> )</code>
<div class="description short">
<p>This method calls the GeoIP2 City/ISP/Org endpoint.</p>
</div>
<div class="description detailed hidden">
<p>This method calls the GeoIP2 City/ISP/Org endpoint.</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$ipAddress</var></dt>
<dd><code>string</code><br>$ipAddress IPv4 or IPv6 address as a string. If no address is provided, the
address that the web service is called from will be used.</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code><code><a href="class-GeoIP2.Model.CityIspOrg.html">GeoIP2\Model\CityIspOrg</a></code></code><br />
</div>
<h4>Throws</h4>
<div class="list">
<code><code><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2\Exception\GeoIP2Exception</a></code></code><br>if there was a generic error processing your request.<br />
<code><code><a href="class-GeoIP2.Exception.HttpException.html">GeoIP2\Exception\HttpException</a></code></code><br>if there was an HTTP transport error.<br />
<code><code><a href="class-GeoIP2.Exception.WebServiceException.html">GeoIP2\Exception\WebServiceException</a></code></code><br>if an error was returned by MaxMind's GeoIP2 web service.<br />
</div>
</div>
</div></td>
</tr>
<tr data-order="omni" id="_omni">
<td class="attributes"><code>
public
<code><a href="class-GeoIP2.Model.Omni.html">GeoIP2\Model\Omni</a></code>
</code>
</td>
<td class="name"><div>
<a class="anchor" href="#_omni">#</a>
<code><a href="source-class-GeoIP2.WebService.Client.html#165-184" title="Go to source code">omni</a>( <span>string <var>$ipAddress</var> = <span class="php-quote">'me'</span></span> )</code>
<div class="description short">
<p>This method calls the GeoIP2 Omni endpoint.</p>
</div>
<div class="description detailed hidden">
<p>This method calls the GeoIP2 Omni endpoint.</p>
<h4>Parameters</h4>
<div class="list"><dl>
<dt><var>$ipAddress</var></dt>
<dd><code>string</code><br>$ipAddress IPv4 or IPv6 address as a string. If no address is provided, the
address that the web service is called from will be used.</dd>
</dl></div>
<h4>Returns</h4>
<div class="list">
<code><code><a href="class-GeoIP2.Model.Omni.html">GeoIP2\Model\Omni</a></code></code><br />
</div>
<h4>Throws</h4>
<div class="list">
<code><code><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2\Exception\GeoIP2Exception</a></code></code><br>if there was a generic error processing your request.<br />
<code><code><a href="class-GeoIP2.Exception.HttpException.html">GeoIP2\Exception\HttpException</a></code></code><br>if there was an HTTP transport error.<br />
<code><code><a href="class-GeoIP2.Exception.WebServiceException.html">GeoIP2\Exception\WebServiceException</a></code></code><br>if an error was returned by MaxMind's GeoIP2 web service.<br />
</div>
</div>
</div></td>
</tr>
</table>
</div>
<div id="footer">
GeoIP2 PHP API v0.1.1 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,3 @@
var ApiGen = ApiGen || {};
ApiGen.elements = [["c","Exception"],["c","GeoIP2\\Exception\\GeoIP2Exception"],["c","GeoIP2\\Exception\\HttpException"],["c","GeoIP2\\Exception\\WebServiceException"],["c","GeoIP2\\Model\\City"],["c","GeoIP2\\Model\\CityIspOrg"],["c","GeoIP2\\Model\\Country"],["c","GeoIP2\\Model\\Omni"],["c","GeoIP2\\Record\\AbstractPlaceRecord"],["c","GeoIP2\\Record\\AbstractRecord"],["c","GeoIP2\\Record\\City"],["c","GeoIP2\\Record\\Continent"],["c","GeoIP2\\Record\\Country"],["c","GeoIP2\\Record\\Location"],["c","GeoIP2\\Record\\MaxMind"],["c","GeoIP2\\Record\\Postal"],["c","GeoIP2\\Record\\RepresentedCountry"],["c","GeoIP2\\Record\\Subdivision"],["c","GeoIP2\\Record\\Traits"],["c","GeoIP2\\WebService\\Client"]];

Binary file not shown.

145
doc/v0.1.1/index.html Normal file
View File

@ -0,0 +1,145 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>GeoIP2 PHP API v0.1.1</title>
<script type="text/javascript" src="resources/combined.js"></script>
<script type="text/javascript" src="elementlist.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<span>Overview</span>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Model.City.html">GeoIP2\Model\City</a></li>
<li><a href="class-GeoIP2.Model.CityIspOrg.html">GeoIP2\Model\CityIspOrg</a></li>
<li><a href="class-GeoIP2.Model.Country.html">GeoIP2\Model\Country</a></li>
<li><a href="class-GeoIP2.Model.Omni.html">GeoIP2\Model\Omni</a></li>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">GeoIP2\Record\AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">GeoIP2\Record\AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">GeoIP2\Record\City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">GeoIP2\Record\Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">GeoIP2\Record\Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">GeoIP2\Record\Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">GeoIP2\Record\MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">GeoIP2\Record\Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">GeoIP2\Record\RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">GeoIP2\Record\Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">GeoIP2\Record\Traits</a></li>
<li><a href="class-GeoIP2.WebService.Client.html">GeoIP2\WebService\Client</a></li>
</ul>
<h3>Exceptions</h3>
<ul>
<li><a href="class-Exception.html">Exception</a></li>
<li><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2\Exception\GeoIP2Exception</a></li>
<li><a href="class-GeoIP2.Exception.HttpException.html">GeoIP2\Exception\HttpException</a></li>
<li><a href="class-GeoIP2.Exception.WebServiceException.html">GeoIP2\Exception\WebServiceException</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" autofocus />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li class="active">
<span>Overview</span> </li>
<li>
<span>Namespace</span> </li>
<li>
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
<li>
<a href="geoip2-php-api-v0-1-1-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
</li>
</ul>
</div>
<div id="content">
<h1>GeoIP2 PHP API v0.1.1</h1>
<table class="summary" id="namespaces">
<caption>Namespaces summary</caption>
<tr>
<td class="name"><a href="namespace-GeoIP2.html">GeoIP2</a></td>
</tr>
<tr>
<td class="name"><a href="namespace-GeoIP2.Exception.html">GeoIP2\Exception</a></td>
</tr>
<tr>
<td class="name"><a href="namespace-GeoIP2.Model.html">GeoIP2\Model</a></td>
</tr>
<tr>
<td class="name"><a href="namespace-GeoIP2.Record.html">GeoIP2\Record</a></td>
</tr>
<tr>
<td class="name"><a href="namespace-GeoIP2.WebService.html">GeoIP2\WebService</a></td>
</tr>
<tr>
<td class="name"><a href="namespace-PHP.html">PHP</a></td>
</tr>
</table>
</div>
<div id="footer">
GeoIP2 PHP API v0.1.1 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,126 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Namespace GeoIP2\Exception | GeoIP2 PHP API v0.1.1</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li class="active"><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Exceptions</h3>
<ul>
<li><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2Exception</a></li>
<li><a href="class-GeoIP2.Exception.HttpException.html">HttpException</a></li>
<li><a href="class-GeoIP2.Exception.WebServiceException.html">WebServiceException</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li class="active">
<span>Namespace</span> </li>
<li>
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
<li>
<a href="geoip2-php-api-v0-1-1-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
</li>
</ul>
</div>
<div id="content" class="namespace">
<h1>Namespace <a href="namespace-GeoIP2.html">GeoIP2</a>\Exception</h1>
<table class="summary" id="exceptions">
<caption>Exceptions summary</caption>
<tr>
<td class="name"><a href="class-GeoIP2.Exception.GeoIP2Exception.html">GeoIP2Exception</a></td>
<td>This class represents a generic error.
<!-- by Texy2! --></td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Exception.HttpException.html">HttpException</a></td>
<td>This class represents an HTTP transport error.</td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Exception.WebServiceException.html">WebServiceException</a></td>
<td>This class represents an error returned by MaxMind's GeoIP2 web service.</td>
</tr>
</table>
</div>
<div id="footer">
GeoIP2 PHP API v0.1.1 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,132 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Namespace GeoIP2\Model | GeoIP2 PHP API v0.1.1</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Model.City.html">City</a></li>
<li><a href="class-GeoIP2.Model.CityIspOrg.html">CityIspOrg</a></li>
<li><a href="class-GeoIP2.Model.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Model.Omni.html">Omni</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li class="active">
<span>Namespace</span> </li>
<li>
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
<li>
<a href="geoip2-php-api-v0-1-1-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
</li>
</ul>
</div>
<div id="content" class="namespace">
<h1>Namespace <a href="namespace-GeoIP2.html">GeoIP2</a>\Model</h1>
<table class="summary" id="classes">
<caption>Classes summary</caption>
<tr>
<td class="name"><a href="class-GeoIP2.Model.City.html">City</a></td>
<td>This class provides a model for the data returned by the GeoIP2 City end point.</td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Model.CityIspOrg.html">CityIspOrg</a></td>
<td>This class provides a model for the data returned by the GeoIP2 City/ISP/Org end
point.</td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Model.Country.html">Country</a></td>
<td>This class provides a model for the data returned by the GeoIP2 Country end
point.</td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Model.Omni.html">Omni</a></td>
<td>This class provides a model for the data returned by the GeoIP2 Omni end point.</td>
</tr>
</table>
</div>
<div id="footer">
GeoIP2 PHP API v0.1.1 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,165 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Namespace GeoIP2\Record | GeoIP2 PHP API v0.1.1</title>
<script type="text/javascript" src="resources/combined.js?394153670"></script>
<script type="text/javascript" src="elementlist.js?1245801536"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-GeoIP2.html">GeoIP2<span></span></a>
<ul>
<li><a href="namespace-GeoIP2.Exception.html">Exception</a>
</li>
<li><a href="namespace-GeoIP2.Model.html">Model</a>
</li>
<li class="active"><a href="namespace-GeoIP2.Record.html">Record</a>
</li>
<li><a href="namespace-GeoIP2.WebService.html">WebService</a>
</li>
</ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></li>
<li><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></li>
<li><a href="class-GeoIP2.Record.City.html">City</a></li>
<li><a href="class-GeoIP2.Record.Continent.html">Continent</a></li>
<li><a href="class-GeoIP2.Record.Country.html">Country</a></li>
<li><a href="class-GeoIP2.Record.Location.html">Location</a></li>
<li><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></li>
<li><a href="class-GeoIP2.Record.Postal.html">Postal</a></li>
<li><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></li>
<li><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></li>
<li><a href="class-GeoIP2.Record.Traits.html">Traits</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li class="active">
<span>Namespace</span> </li>
<li>
<span>Class</span> </li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
<li>
<a href="geoip2-php-api-v0-1-1-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
</li>
</ul>
</div>
<div id="content" class="namespace">
<h1>Namespace <a href="namespace-GeoIP2.html">GeoIP2</a>\Record</h1>
<table class="summary" id="classes">
<caption>Classes summary</caption>
<tr>
<td class="name"><a href="class-GeoIP2.Record.AbstractPlaceRecord.html">AbstractPlaceRecord</a></td>
<td></td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Record.AbstractRecord.html">AbstractRecord</a></td>
<td></td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Record.City.html">City</a></td>
<td>City-level data associated with an IP address.</td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Record.Continent.html">Continent</a></td>
<td>Contains data for the continent record associated with an IP address</td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Record.Country.html">Country</a></td>
<td>Contains data for the country record associated with an IP address</td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Record.Location.html">Location</a></td>
<td>Contains data for the location record associated with an IP address</td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Record.MaxMind.html">MaxMind</a></td>
<td>Contains data about your account.</td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Record.Postal.html">Postal</a></td>
<td>Contains data for the postal record associated with an IP address</td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Record.RepresentedCountry.html">RepresentedCountry</a></td>
<td>Contains data for the represented country associated with an IP address</td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Record.Subdivision.html">Subdivision</a></td>
<td></td>
</tr>
<tr>
<td class="name"><a href="class-GeoIP2.Record.Traits.html">Traits</a></td>
<td></td>
</tr>
</table>
</div>
<div id="footer">
GeoIP2 PHP API v0.1.1 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More