@@ -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 | ?> |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | { |
| 87 | 87 | $xml->startElement($key); |
| 88 | 88 | $this->object2XML($xml, $value); |
| 89 | - $xml->endElement(); |
|
| 89 | + $xml->endElement(); |
|
| 90 | 90 | } |
| 91 | 91 | else |
| 92 | 92 | { |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | { |
| 115 | 115 | foreach($data as $key => $value) |
| 116 | 116 | { |
| 117 | - if(is_string($value)) |
|
| 117 | + if(is_string($value)) |
|
| 118 | 118 | { |
| 119 | 119 | $xml->writeElement($keyParent, $value); |
| 120 | 120 | continue; |
@@ -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 | } |