| @@ 278-285 (lines=8) @@ | ||
| 275 | return $this->reUser->getValue('latitude'); |
|
| 276 | } |
|
| 277 | ||
| 278 | public function setLatitude($value) |
|
| 279 | { |
|
| 280 | if (($value + 0) > 90 || ($value + 0) < - 90) { |
|
| 281 | return false; |
|
| 282 | } |
|
| 283 | ||
| 284 | return $this->reUser->setValue('latitude', $value + 0); |
|
| 285 | } |
|
| 286 | ||
| 287 | public function getLongitude() |
|
| 288 | { |
|
| @@ 292-299 (lines=8) @@ | ||
| 289 | return $this->reUser->getValue('longitude'); |
|
| 290 | } |
|
| 291 | ||
| 292 | public function setLongitude($value) |
|
| 293 | { |
|
| 294 | if (($value + 0) > 180 || ($value + 0) < - 180) { |
|
| 295 | return false; |
|
| 296 | } |
|
| 297 | ||
| 298 | return $this->reUser->setValue('longitude', $value + 0); |
|
| 299 | } |
|
| 300 | ||
| 301 | public function getNotifyRadius() |
|
| 302 | { |
|
| @@ 306-313 (lines=8) @@ | ||
| 303 | return $this->reUser->getValue('notify_radius'); |
|
| 304 | } |
|
| 305 | ||
| 306 | public function setNotifyRadius($value) |
|
| 307 | { |
|
| 308 | if (($value + 0) < 0 || ($value + 0) > 150) { |
|
| 309 | return false; |
|
| 310 | } |
|
| 311 | ||
| 312 | return $this->reUser->setValue('notify_radius', $value + 0); |
|
| 313 | } |
|
| 314 | ||
| 315 | public function getNotifyOconly() |
|
| 316 | { |
|