| @@ 219-230 (lines=12) @@ | ||
| 216 | case 'overflowId': |
|
| 217 | $this->addNewXmlElement($dom, $blockNode, 'overflow_id', $attrValue); |
|
| 218 | break; |
|
| 219 | case 'rotation': |
|
| 220 | if ($attrValue === null) { |
|
| 221 | continue 2; |
|
| 222 | } |
|
| 223 | ||
| 224 | $node = $dom->createElement($attrName); |
|
| 225 | $blockNode->appendChild($node); |
|
| 226 | ||
| 227 | foreach ($attrValue as $arrayItemKey => $arrayItemValue) { |
|
| 228 | $this->addNewXmlElement($dom, $node, $arrayItemKey, $arrayItemValue); |
|
| 229 | } |
|
| 230 | break; |
|
| 231 | case 'customAttributes': |
|
| 232 | if ($attrValue === null) { |
|
| 233 | continue 2; |
|
| @@ 231-242 (lines=12) @@ | ||
| 228 | $this->addNewXmlElement($dom, $node, $arrayItemKey, $arrayItemValue); |
|
| 229 | } |
|
| 230 | break; |
|
| 231 | case 'customAttributes': |
|
| 232 | if ($attrValue === null) { |
|
| 233 | continue 2; |
|
| 234 | } |
|
| 235 | ||
| 236 | $node = $dom->createElement('custom_attributes'); |
|
| 237 | $blockNode->appendChild($node); |
|
| 238 | ||
| 239 | foreach ($attrValue as $arrayItemKey => $arrayItemValue) { |
|
| 240 | $this->addNewXmlElement($dom, $node, $arrayItemKey, $arrayItemValue); |
|
| 241 | } |
|
| 242 | break; |
|
| 243 | case 'attributes': |
|
| 244 | foreach ($attrValue as $arrayItemKey => $arrayItemValue) { |
|
| 245 | $this->addNewXmlElement($dom, $blockNode, $arrayItemKey, $arrayItemValue); |
|