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
1191 changed files with 251392 additions and 2777 deletions

3
.gitignore vendored
View File

@ -1,4 +1,7 @@
_site/
bin/ bin/
apigen.neon
apigen.phar
composer.lock composer.lock
composer.phar composer.phar
phpunit.xml phpunit.xml

View File

@ -1,14 +0,0 @@
CHANGELOG
=========
0.1.1 (2013-05-14)
------------------
* Updated Guzzle version requirement
* Fixed Composer example in README.md
0.1.0 (2013-05-13)
------------------
* Initial release

504
LICENSE
View File

@ -1,504 +0,0 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the Lesser GPL. It also counts
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Lesser General Public License, applies to some
specially designated software packages--typically libraries--of the
Free Software Foundation and other authors who decide to use it. You
can use it too, but we suggest you first think carefully about whether
this license or the ordinary General Public License is the better
strategy to use in any particular case, based on the explanations below.
When we speak of free software, we are referring to freedom of use,
not price. Our General Public Licenses are designed to make sure that
you have the freedom to distribute copies of free software (and charge
for this service if you wish); that you receive source code or can get
it if you want it; that you can change the software and use pieces of
it in new free programs; and that you are informed that you can do
these things.
To protect your rights, we need to make restrictions that forbid
distributors to deny you these rights or to ask you to surrender these
rights. These restrictions translate to certain responsibilities for
you if you distribute copies of the library or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link other code with the library, you must provide
complete object files to the recipients, so that they can relink them
with the library after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
We protect your rights with a two-step method: (1) we copyright the
library, and (2) we offer you this license, which gives you legal
permission to copy, distribute and/or modify the library.
To protect each distributor, we want to make it very clear that
there is no warranty for the free library. Also, if the library is
modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.
Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
restrictive license from a patent holder. Therefore, we insist that
any patent license obtained for a version of the library must be
consistent with the full freedom of use specified in this license.
Most GNU software, including some libraries, is covered by the
ordinary GNU General Public License. This license, the GNU Lesser
General Public License, applies to certain designated libraries, and
is quite different from the ordinary General Public License. We use
this license for certain libraries in order to permit linking those
libraries into non-free programs.
When a program is linked with a library, whether statically or using
a shared library, the combination of the two is legally speaking a
combined work, a derivative of the original library. The ordinary
General Public License therefore permits such linking only if the
entire combination fits its criteria of freedom. The Lesser General
Public License permits more lax criteria for linking other code with
the library.
We call this license the "Lesser" General Public License because it
does Less to protect the user's freedom than the ordinary General
Public License. It also provides other free software developers Less
of an advantage over competing non-free programs. These disadvantages
are the reason we use the ordinary General Public License for many
libraries. However, the Lesser license provides advantages in certain
special circumstances.
For example, on rare occasions, there may be a special need to
encourage the widest possible use of a certain library, so that it becomes
a de-facto standard. To achieve this, non-free programs must be
allowed to use the library. A more frequent case is that a free
library does the same job as widely used non-free libraries. In this
case, there is little to gain by limiting the free library to free
software only, so we use the Lesser General Public License.
In other cases, permission to use a particular library in non-free
programs enables a greater number of people to use a large body of
free software. For example, permission to use the GNU C Library in
non-free programs enables many more people to use the whole GNU
operating system, as well as its variant, the GNU/Linux operating
system.
Although the Lesser General Public License is Less protective of the
users' freedom, it does ensure that the user of a program that is
linked with the Library has the freedom and the wherewithal to run
that program using a modified version of the Library.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library or other
program which contains a notice placed by the copyright holder or
other authorized party saying it may be distributed under the terms of
this Lesser General Public License (also called "this License").
Each licensee is addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.
If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:
a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (1) uses at run time a
copy of the library already present on the user's computer system,
rather than copying library functions into the executable, and (2)
will operate properly with a modified version of the library, if
the user installs one, as long as the modified version is
interface-compatible with the version that the work was made with.
c) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
d) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
e) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the materials to be distributed need not include anything that is
normally distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Lesser General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this. Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
possible use to the public, we recommend making it free software that
everyone can redistribute and change. You can do so by permitting
redistribution under these terms (or, alternatively, under the terms of the
ordinary General Public License).
To apply these terms, attach the following notices to the library. It is
safest to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
<one line to give the library's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Also add information on how to contact you by electronic and paper mail.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the library, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
<signature of Ty Coon>, 1 April 1990
Ty Coon, President of Vice
That's all there is to it!

187
README.md
View File

@ -1,187 +0,0 @@
# GeoIP2 PHP API #
**NOTE**: This is an alpha release. The API may change before the final
production release.
## Description ##
Currently, this distribution provides an API for the GeoIP2 web services
(as documented at http://dev.maxmind.com/geoip/geoip2/web-services).
In the future, this distribution will also provide the same API for the
GeoIP2 downloadable databases. These databases have not yet been
released as a downloadable product.
See GeoIP2\WebService\Client for details on the web service client
API.
## Installation ##
### Define Your Dependencies ###
We recommend installing this package with [Composer](http://getcomposer.org/).
To do this, add ```geoip2/geoip2``` to your ```composer.json``` file.
```json
{
"require": {
"geoip2/geoip2": "0.1.*"
}
}
```
### Install Composer ###
Run in your project root:
```
curl -s http://getcomposer.org/installer | php
```
### Install Dependencies ###
Run in your project root:
```
php composer.phar install
```
### Require Autoloader ###
You can autoload all dependencies by adding this to your code:
```
require 'vendor/autoload.php';
```
## Usage ##
To use this API, you must create a new ``\GeoIP2\WebService\Client``
object with your ``$userId`` and ``$licenseKey``, then you call the method
corresponding to a specific end point, passing it the IP address you want to
look up.
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.
See the API documentation for more details.
## Example ##
```php
<?php
require_once 'vendor/autoload.php';
use \GeoIP2\WebService\Client;
$client = new Client(42, 'abcdef123456');
$omni = $client->omni('24.24.24.24');
echo $omni->country->isoCode;
```
## Exceptions ##
For details on the possible errors returned by the web service itself, see
http://dev.maxmind.com/geoip2/geoip/web-services for the GeoIP2 web service
docs.
If the web service returns an explicit error document, this is thrown as a
```\GeoIP2\Exception\WebServiceException```. If some other sort of transport
error occurs, this is thrown as a ```\GeoIP2\Exception\HttpException```.
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.
If the web service returns any status code besides 200, 4xx, or 5xx, this also
becomes a ```\GeoIP2\Exception\HttpException```.
Finally, if the web service returns a 200 but the body is invalid, the client
throws a ```\GeoIP2\Exception\GeoIP2Exception```.
## What data is returned? ##
While many of the end points return the same basic records, the attributes
which can be populated vary between end points. In addition, while an end
point may offer a particular piece of data, MaxMind does not always have every
piece of data for any given IP address.
Because of these factors, it is possible for any end point to return a record
where some or all of the attributes are unpopulated.
See http://dev.maxmind.com/geoip/geoip2/web-services for details on what data
each end point may return.
The only piece of data which is always returned is the ```ipAddress```
attribute in the ``GeoIP2\Record\Traits`` record.
Every record class attribute has a corresponding predicate method so you can
check to see if the attribute is set.
## Integration with GeoNames ##
[GeoNames](http://www.geonames.org/) offers web services and downloadable
databases with data on geographical features around the world, including
populated places. They offer both free and paid premium data. Each
feature is unique identified by a ```geonameId```, which is an integer.
Many of the records returned by the GeoIP2 web services and databases
include a ```geonameId``` property. This is the ID of a geographical feature
(city, region, country, etc.) in the GeoNames database.
Some of the data that MaxMind provides is also sourced from GeoNames. We
source things like place names, ISO codes, and other similar data from
the GeoNames premium data set.
## Reporting data problems ##
If the problem you find is that an IP address is incorrectly mapped,
please submit your correction to MaxMind at
http://www.maxmind.com/en/correction.
If you find some other sort of mistake, like an incorrect spelling,
please check the GeoNames site (http://www.geonames.org/) first. Once
you've searched for a place and found it on the GeoNames map view, there
are a number of links you can use to correct data ("move", "edit",
"alternate names", etc.). Once the correction is part of the GeoNames
data set, it will be automatically incorporated into future MaxMind
releases.
If you are a paying MaxMind customer and you're not sure where to submit
a correction, please contact MaxMind support at
http://www.maxmind.com/en/support for help.
## Other Support ##
Please report all issues with this code using the GitHub issue tracker
at https://github.com/maxmind/GeoIP2-php/issues
If you are having an issue with a MaxMind service that is not specific
to the client API please see http://www.maxmind.com/en/support for
details.
## Requirements ##
This code requires PHP 5.3 or greater. Older versions of PHP are not
supported.
This library also relies on the [Guzzle HTTP client](http://guzzlephp.org/).
## Contributing ##
Patches and pull requests are encouraged. All code should follow the
PSR-2 style guidelines. Please include unit tests whenever possible.
## Versioning ##
The GeoIP2 PHP API uses [Semantic Versioning](http://semver.org/).
## Author ##
[Gregory Oschwald](mailto:goschwald@maxmind.com)
## Copyright and License ##
This software is Copyright (c) 2013 by MaxMind, Inc.
This is free software, licensed under the GNU Lesser General Public License
version 2.1 or later.

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 @@
{
"name": "geoip2/geoip2",
"description": "MaxMind GeoIP2 PHP API",
"keywords": [ "geoip", "geolocation", "maxmind" ],
"homepage": "https://github.com/maxmind/GeoIP2-php",
"type": "library",
"license": "LGPL-2.1+",
"authors": [
{
"name": "Gregory J. Oschwald",
"email": "goschwald@maxmind.com",
"homepage": "http://www.maxmind.com/"
}
],
"require": {
"guzzle/guzzle": "3.*",
"php": ">=5.3.1"
},
"require-dev": {
"phpunit/phpunit": "3.7.*",
"satooshi/php-coveralls": "dev-master"
},
"autoload": {
"psr-0": { "GeoIP2": "src/" }
}
}

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>

View File

@ -0,0 +1,118 @@
<!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 | 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><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>
<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>\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">
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,118 @@
<!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 | 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><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>
<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 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">
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,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 PHP | 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><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>
<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 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">
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>

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

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