| @@ 250-257 (lines=8) @@ | ||
| 247 | return $this->reUser->getValue('country'); |
|
| 248 | } |
|
| 249 | ||
| 250 | public function setCountryCode($value) |
|
| 251 | { |
|
| 252 | if ($value !== null && (sql_value("SELECT COUNT(*) FROM countries WHERE short='&1'", 0, $value) == 0)) { |
|
| 253 | return false; |
|
| 254 | } else { |
|
| 255 | return $this->reUser->setValue('country', $value); |
|
| 256 | } |
|
| 257 | } |
|
| 258 | ||
| 259 | public function getLanguageCode() |
|
| 260 | { |
|
| @@ 264-271 (lines=8) @@ | ||
| 261 | return $this->reUser->getValue('language'); |
|
| 262 | } |
|
| 263 | ||
| 264 | public function setLanguageCode($value) |
|
| 265 | { |
|
| 266 | if ($value !== null && (sql_value("SELECT COUNT(*) FROM languages WHERE short='&1'", 0, $value) == 0)) { |
|
| 267 | return false; |
|
| 268 | } else { |
|
| 269 | return $this->reUser->setValue('language', $value); |
|
| 270 | } |
|
| 271 | } |
|
| 272 | ||
| 273 | public function getLatitude() |
|
| 274 | { |
|