| @@ 40-51 (lines=12) @@ | ||
| 37 | } |
|
| 38 | } |
|
| 39 | ||
| 40 | private function xmlAttributesToArray($attributes) |
|
| 41 | { |
|
| 42 | $attributesArray = array(); |
|
| 43 | ||
| 44 | if (count($attributes)) { |
|
| 45 | foreach ($attributes as $key => $value) { |
|
| 46 | $attributesArray[(string)$key] = (string)$value; |
|
| 47 | } |
|
| 48 | } |
|
| 49 | ||
| 50 | return $attributesArray; |
|
| 51 | } |
|
| 52 | } |
|
| 53 | ||
| @@ 57-68 (lines=12) @@ | ||
| 54 | ); |
|
| 55 | } |
|
| 56 | ||
| 57 | private function xmlAttributesToArray($attributes) |
|
| 58 | { |
|
| 59 | $attributesArray = array(); |
|
| 60 | ||
| 61 | if (count($attributes)) { |
|
| 62 | foreach ($attributes as $key => $value) { |
|
| 63 | $attributesArray[(string)$key] = (string)$value; |
|
| 64 | } |
|
| 65 | } |
|
| 66 | ||
| 67 | return $attributesArray; |
|
| 68 | } |
|
| 69 | } |
|
| 70 | ||