public function Timezone::__construct in Geo Time Zone 8
Same name and namespace in other branches
- 8.3 src/Timezone.php \Drupal\geotimezone\Timezone::__construct()
- 8.2 src/Timezone.php \Drupal\geotimezone\Timezone::__construct()
- 6.2 src/Timezone.php \Drupal\geotimezone\Timezone::__construct()
- 6 src/Timezone.php \Drupal\geotimezone\Timezone::__construct()
- 7.2 src/Timezone.php \Drupal\geotimezone\Timezone::__construct()
- 7 src/Timezone.php \Drupal\geotimezone\Timezone::__construct()
Timezone constructor.
Parameters
int $index: Timezone list index.
File
- src/
Timezone.php, line 36 - Contains \Drupal\geotimezone\Timezone.
Class
- Timezone
- Holds the list of timezone names and offset.
Namespace
Drupal\geotimezoneCode
public function __construct($index = 0) {
$this->index = $index;
static::$list = $this
->loadList();
}