@@ 383-395 (lines=13) @@ | ||
380 | * |
|
381 | * @throws Exception |
|
382 | */ |
|
383 | protected function appendDeliveryOptions(&$string) { |
|
384 | if(count($this->deliveryOptions) < 1) { |
|
385 | return; |
|
386 | } |
|
387 | $string .= '<delivery-options>' . PHP_EOL; |
|
388 | $deliveryOptionBase = new DeliveryOption(); |
|
389 | ||
390 | foreach($this->deliveryOptions as $deliveryOption) { |
|
391 | $deliveryOptionBase->loadAndValidate($deliveryOption); |
|
392 | $string .= $deliveryOptionBase->getYml(); |
|
393 | } |
|
394 | $string .= '</delivery-options>' . PHP_EOL; |
|
395 | } |
|
396 | ||
397 | /** |
|
398 | * Добавляет теги ддля опций доставки |
|
@@ 404-417 (lines=14) @@ | ||
401 | * |
|
402 | * @throws Exception |
|
403 | */ |
|
404 | protected function appendOutletOptions(&$string) { |
|
405 | if(count($this->outlets) < 1) { |
|
406 | return; |
|
407 | } |
|
408 | ||
409 | $string .= '<outlet>' . PHP_EOL; |
|
410 | $outletOptionBase = new OutletOption(); |
|
411 | ||
412 | foreach($this->outlets as $outletOption) { |
|
413 | $outletOptionBase->loadAndValidate($outletOption); |
|
414 | $string .= $outletOptionBase->getYml(); |
|
415 | } |
|
416 | $string .= '</outlet>' . PHP_EOL; |
|
417 | } |
|
418 | ||
419 | /** |
|
420 | * @param string $attribute |