@@ -3,19 +3,19 @@ discard block |
||
| 3 | 3 | |
| 4 | 4 | class LDAPObject extends \SerializableObject |
| 5 | 5 | { |
| 6 | - public $server; |
|
| 6 | + public $server; |
|
| 7 | 7 | |
| 8 | - function __construct($array=false, $server=false) |
|
| 9 | - { |
|
| 10 | - parent::__construct($array); |
|
| 11 | - $this->server = $server; |
|
| 12 | - } |
|
| 8 | + function __construct($array=false, $server=false) |
|
| 9 | + { |
|
| 10 | + parent::__construct($array); |
|
| 11 | + $this->server = $server; |
|
| 12 | + } |
|
| 13 | 13 | |
| 14 | - public function jsonSerialize() |
|
| 15 | - { |
|
| 16 | - $ret = array(); |
|
| 17 | - foreach ($this as $key => $value) |
|
| 18 | - { |
|
| 14 | + public function jsonSerialize() |
|
| 15 | + { |
|
| 16 | + $ret = array(); |
|
| 17 | + foreach ($this as $key => $value) |
|
| 18 | + { |
|
| 19 | 19 | if($key === 'server' || $key === 'count') continue; |
| 20 | 20 | if(is_numeric($key)) continue; |
| 21 | 21 | if($key === 'jpegphoto') |
@@ -31,9 +31,9 @@ discard block |
||
| 31 | 31 | { |
| 32 | 32 | $ret[$key] = $value; |
| 33 | 33 | } |
| 34 | - } |
|
| 35 | - return $ret; |
|
| 36 | - } |
|
| 34 | + } |
|
| 35 | + return $ret; |
|
| 36 | + } |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | ?> |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | { |
| 38 | 38 | if(isset($this->data['mail'])) |
| 39 | 39 | { |
| 40 | - return $this->data['mail']; |
|
| 40 | + return $this->data['mail']; |
|
| 41 | 41 | } |
| 42 | 42 | return $this->getUid(); |
| 43 | 43 | } |