web/ckfinder/core/connector/php/vendor/microsoft/azure-storage/src/Common/Internal/Serialization/XmlSerializer.php 1 location
|
@@ 57-68 (lines=12) @@
|
| 54 |
|
* |
| 55 |
|
* @return array |
| 56 |
|
*/ |
| 57 |
|
private function _sxml2arr($sxml, array $arr = null) |
| 58 |
|
{ |
| 59 |
|
foreach ((array) $sxml as $key => $value) { |
| 60 |
|
if (is_object($value) || (is_array($value))) { |
| 61 |
|
$arr[$key] = $this->_sxml2arr($value); |
| 62 |
|
} else { |
| 63 |
|
$arr[$key] = $value; |
| 64 |
|
} |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
return $arr; |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
/** |
| 71 |
|
* Takes an array and produces XML based on it. |
web/ckfinder/core/connector/php/vendor/microsoft/azure-storage/src/Common/Internal/Utilities.php 1 location
|
@@ 232-243 (lines=12) @@
|
| 229 |
|
* |
| 230 |
|
* @return array |
| 231 |
|
*/ |
| 232 |
|
private static function _sxml2arr($sxml, array $arr = null) |
| 233 |
|
{ |
| 234 |
|
foreach ((array) $sxml as $key => $value) { |
| 235 |
|
if (is_object($value) || (is_array($value))) { |
| 236 |
|
$arr[$key] = self::_sxml2arr($value); |
| 237 |
|
} else { |
| 238 |
|
$arr[$key] = $value; |
| 239 |
|
} |
| 240 |
|
} |
| 241 |
|
|
| 242 |
|
return $arr; |
| 243 |
|
} |
| 244 |
|
|
| 245 |
|
/** |
| 246 |
|
* Serializes given array into xml. The array indices must be string to use |