@@ 363-369 (lines=7) @@ | ||
360 | while ($xml->read()) { |
|
361 | // Разбор Классификатора |
|
362 | if (\XMLReader::ELEMENT === $xml->nodeType && static::NODE_CLASSIFICATOR === $xml->name) { |
|
363 | while ($xml->read()) { |
|
364 | if (\XMLReader::END_ELEMENT === $xml->nodeType && static::NODE_CLASSIFICATOR === $xml->name) { |
|
365 | break; |
|
366 | } elseif (\XMLReader::ELEMENT === $xml->nodeType && static::NODE_GRUPPY === $xml->name) { |
|
367 | $result['categories'] = $this->parseGruppa($this->rootCategoryCache); |
|
368 | } |
|
369 | } |
|
370 | // Разбор Каталога |
|
371 | } elseif (\XMLReader::ELEMENT === $xml->nodeType && static::NODE_CATALOG === $xml->name) { |
|
372 | while ($xml->read()) { |
|
@@ 372-378 (lines=7) @@ | ||
369 | } |
|
370 | // Разбор Каталога |
|
371 | } elseif (\XMLReader::ELEMENT === $xml->nodeType && static::NODE_CATALOG === $xml->name) { |
|
372 | while ($xml->read()) { |
|
373 | if (\XMLReader::END_ELEMENT === $xml->nodeType && static::NODE_CATALOG === $xml->name) { |
|
374 | break; |
|
375 | } elseif (\XMLReader::ELEMENT === $xml->nodeType && static::NODE_TOVARY === $xml->name) { |
|
376 | $this->parseProduct(); |
|
377 | } |
|
378 | } |
|
379 | // Разбор Предложений |
|
380 | } elseif (\XMLReader::ELEMENT === $xml->nodeType && static::NODE_PAKET_PREDLOZHENIY === $xml->name) { |
|
381 | while ($xml->read()) { |
|
@@ 381-387 (lines=7) @@ | ||
378 | } |
|
379 | // Разбор Предложений |
|
380 | } elseif (\XMLReader::ELEMENT === $xml->nodeType && static::NODE_PAKET_PREDLOZHENIY === $xml->name) { |
|
381 | while ($xml->read()) { |
|
382 | if (\XMLReader::END_ELEMENT === $xml->nodeType && static::NODE_PAKET_PREDLOZHENIY === $xml->name) { |
|
383 | break; |
|
384 | } elseif (\XMLReader::ELEMENT === $xml->nodeType && static::NODE_PREDLOZHENIYA === $xml->name) { |
|
385 | $this->parseOffers(); |
|
386 | } |
|
387 | } |
|
388 | } |
|
389 | } |
|
390 | } |