| 1 | <?php |
||
| 20 | class ModuleOptions extends AbstractOptions |
||
| 21 | { |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Used geo location plugin. Possible values: |
||
| 25 | * - photon |
||
| 26 | * - geo |
||
| 27 | * |
||
| 28 | * @var string $plugin |
||
| 29 | */ |
||
| 30 | protected $plugin = "photon"; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Used geo coder url. Take one of these URLs |
||
| 34 | * - http://photon.yawik.org/api |
||
| 35 | * - http://api.cross-solution.de/geo |
||
| 36 | * |
||
| 37 | * @var string |
||
| 38 | */ |
||
| 39 | protected $geoCoderUrl = "http://photon.yawik.org/api"; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Country currectly only affects the "geo" plugin. Possible values "DE","CH","FR","AT","IT" |
||
| 43 | * |
||
| 44 | * @var string |
||
| 45 | */ |
||
| 46 | protected $country = "DE"; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param $plugin |
||
| 50 | * |
||
| 51 | * @return self |
||
| 52 | */ |
||
| 53 | public function setPlugin($plugin) |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return mixed |
||
| 62 | */ |
||
| 63 | public function getPlugin() |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @param mixed $geoCoderUrl |
||
| 70 | * |
||
| 71 | * @return self |
||
| 72 | */ |
||
| 73 | public function setGeoCoderUrl($geoCoderUrl) |
||
| 79 | |||
| 80 | /** |
||
| 81 | * @return mixed |
||
| 82 | */ |
||
| 83 | public function getGeoCoderUrl() |
||
| 87 | |||
| 88 | /** |
||
| 89 | * @param mixed $country |
||
| 90 | * |
||
| 91 | * @return self |
||
| 92 | */ |
||
| 93 | public function setCountry($country) |
||
| 99 | |||
| 100 | /** |
||
| 101 | * @return mixed |
||
| 102 | */ |
||
| 103 | public function getCountry() |
||
| 107 | } |