Source of file TimezoneDropdown.php
Size: 0,680 Bytes - Last Modified: 2021-12-23T10:01:17+00:00
/var/www/docs.ssmods.com/process/src/src/Fields/TimezoneDropdown.php
123456789101112131415161718192021222324252627 | <?php namespace LeKoala\GeoTools\Fields; use SilverStripe\Forms\DropdownField; use SilverStripe\ORM\ArrayLib; /** * A timezone dropdown */ class TimezoneDropdown extends DropdownField { /** * @param string $name The field name * @param string $title The field title * @param array|ArrayAccess $source A map of the dropdown items * @param mixed $value The current value */ public function __construct($name, $title = null, $source = array(), $value = null) { if (empty($source)) { $source = ArrayLib::valuekey(timezone_identifiers_list()); } parent::__construct($name, $title, $source, $value); } } |