| @@ 19-26 (lines=8) @@ | ||
| 16 | { |
|
| 17 | $this->data = array(); |
|
| 18 | $this->auth = $auth; |
|
| 19 | if($data !== false) |
|
| 20 | { |
|
| 21 | $this->data = $data; |
|
| 22 | if(isset($data['extended'])) |
|
| 23 | { |
|
| 24 | $this->data = $data['extended']; |
|
| 25 | } |
|
| 26 | } |
|
| 27 | } |
|
| 28 | ||
| 29 | public function isInGroupNamed($name) |
|
| @@ 21-32 (lines=12) @@ | ||
| 18 | $this->profilesUrl = $this->settings->getGlobalSetting('profiles_url', 'https://profiles.burningflipside.com/'); |
|
| 19 | $this->apiUrl = $this->profilesUrl.'api/v1'; |
|
| 20 | ||
| 21 | if(($data !== false) && !isset($data['extended'])) |
|
| 22 | { |
|
| 23 | //Generic user object |
|
| 24 | //TODO get from API |
|
| 25 | } |
|
| 26 | else |
|
| 27 | { |
|
| 28 | if(isset($data['extended'])) |
|
| 29 | { |
|
| 30 | $this->userData = $data['extended']; |
|
| 31 | } |
|
| 32 | } |
|
| 33 | if($apiUrl !== false) |
|
| 34 | { |
|
| 35 | $this->apiUrl = $apiUrl; |
|