1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
itemcollection.php
См. документацию.
1<?php
2
3
4namespace Bitrix\Sale\Exchange\Integration\Rest\Cmd\Batch;
5
6
8{
9 protected $collection;
11
12 public function addItem(Item $item)
13 {
14 $index = $item->getInternalIndex() == '' ? 'n'.static::$internalIndex++ : $item->getInternalIndex();
15
16 $this->collection[$index] = $item;
17 }
18
19 public function toArray()
20 {
21 $result = [];
22 if(count($this->collection)>0)
23 {
27 foreach ($this->collection as $index=>$item)
28 {
29 $result[$index] = $item->getCmd()->build();
30 }
31 }
32 return $result;
33 }
34
35 public function toArrayRaw()
36 {
37 $result = [];
38 if(count($this->collection)>0)
39 {
43 foreach ($this->collection as $index=>$item)
44 {
45 $result[$index] = $item->getCmd()->getFieldsValues();
46 }
47 }
48 return $result;
49 }
50}
$result
Определения get_property_values.php:14
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"
Определения waybill.php:936