Moodle PHP Documentation 4.5
Moodle 4.5.5+ (Build: 20250711) (ce34e8ff087)
GeoIp2\Model\Enterprise Class Reference
Inheritance diagram for GeoIp2\Model\Enterprise:
GeoIp2\Model\City GeoIp2\Model\Country

Public Member Functions

 jsonSerialize ()
 

Public Attributes

GeoIp2 Record City readonly GeoIp2 Record City $city
 city data for the requested IP address
 
GeoIp2 Record Continent readonly GeoIp2 Record Continent $continent
 continent data for the requested IP address
 
GeoIp2 Record Country readonly GeoIp2 Record Country $country
 Country data for the requested IP address.
 
GeoIp2 Record Location readonly GeoIp2 Record Location $location
 location data for the requested IP address
 
GeoIp2 Record MaxMind readonly GeoIp2 Record MaxMind $maxmind
 data related to your MaxMind account
 
GeoIp2 Record Subdivision readonly GeoIp2 Record Subdivision $mostSpecificSubdivision
 An object representing the most specific subdivision returned.
 
GeoIp2 Record Postal readonly GeoIp2 Record Postal $postal
 postal data for the requested IP address
 
GeoIp2 Record Country readonly GeoIp2 Record Country $registeredCountry
 Registered country data for the requested IP address.
 
GeoIp2 Record RepresentedCountry readonly GeoIp2 Record RepresentedCountry $representedCountry
 
array<\GeoIp2\Record\Subdivision > readonly array $subdivisions
 An array of GeoIp2\Record\Subdivision objects representing the country subdivisions for the requested IP address.
 
GeoIp2 Record Traits readonly GeoIp2 Record Traits $traits
 data for the traits of the requested IP address
 

Member Function Documentation

◆ jsonSerialize()

GeoIp2\Model\City::jsonSerialize ( )
inherited

Reimplemented from GeoIp2\Model\Country.

Member Data Documentation

◆ $country

GeoIp2 Record Country readonly GeoIp2 Record Country GeoIp2\Model\Country::$country
inherited

Country data for the requested IP address.

This object represents the country where MaxMind believes the end user is located.

◆ $mostSpecificSubdivision

GeoIp2 Record Subdivision readonly GeoIp2 Record Subdivision GeoIp2\Model\City::$mostSpecificSubdivision
inherited

An object representing the most specific subdivision returned.

If the response did not contain any subdivisions, this method returns an empty GeoIp2\Record\Subdivision object.

◆ $registeredCountry

GeoIp2 Record Country readonly GeoIp2 Record Country GeoIp2\Model\Country::$registeredCountry
inherited

Registered country data for the requested IP address.

This record represents the country where the ISP has registered a given IP block and may differ from the user's country.

◆ $representedCountry

GeoIp2 Record RepresentedCountry readonly GeoIp2 Record RepresentedCountry GeoIp2\Model\Country::$representedCountry
inherited
  • Represented country data for the requested IP address. The represented country is used for things like military bases. It is only present when the represented country differs from the country.

◆ $subdivisions

array<\GeoIp2\Record\Subdivision> readonly array GeoIp2\Model\City::$subdivisions
inherited

An array of GeoIp2\Record\Subdivision 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.


The documentation for this class was generated from the following file: