Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 310 and 311] [Versions 311 and 402] [Versions 311 and 403] [Versions 39 and 311]

   1  <?php
   2  
   3  declare(strict_types=1);
   4  
   5  namespace GeoIp2\Record;
   6  
   7  /**
   8   * Contains data for the continent record associated with an IP address.
   9   *
  10   * This record is returned by all location services and databases.
  11   *
  12   * @property-read string|null $code A two character continent code like "NA" (North
  13   * America) or "OC" (Oceania). This attribute is returned by all location
  14   * services and databases.
  15   * @property-read int|null $geonameId The GeoName ID for the continent. This
  16   * attribute is returned by all location services and databases.
  17   * @property-read string|null $name Returns the name of the continent based on the
  18   * locales list passed to the constructor. This attribute is returned by all location
  19   * services and databases.
  20   * @property-read array|null $names An array map where the keys are locale codes
  21   * and the values are names. This attribute is returned by all location
  22   * services and databases.
  23   */
  24  class Continent extends AbstractPlaceRecord
  25  {
  26      /**
  27       * @ignore
  28       */
  29      protected $validAttributes = [
  30          'code',
  31          'geonameId',
  32          'names',
  33      ];
  34  }