1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
client.php
См. документацию.
1<?php
2namespace Bitrix\Sale\Exchange\Integration\Service\Batchable;
3
4
5use Bitrix\Main\Error;
6use Bitrix\Sale\Exchange\Integration;
7use Bitrix\Sale\Order;
8
9abstract class Client extends Proxy
10{
12 {
13 $indexes = static::getIndexesFromParams($params);
14 $list = static::getUsersFieldsValues($indexes);
15
16 return count($list)>0 ? static::collapseUserList($list):[];
17 }
19 {
20 $indexes = static::getIndexesFromParams($params);
21 return static::loadUserCollection($indexes);
22 }
23
24 static protected function collapseUserList(array $list)
25 {
26 $result = [];
27 foreach($list as $item)
28 {
29 $result[$item['ID']] = $item;
30 }
31 return $result;
32 }
33
34 abstract static protected function getUsersFieldsValues(array $indexes);
35
36 //resolveClients
37
38 static protected function loadUserCollection($indexes)
39 {
41 foreach ($indexes as $index)
42 {
43 $order = Order::load($index);
44
46 $clients->addItem(
47 Integration\Service\User\Container\Item::create(
49 Integration\Service\User\EntityType::resolveId($typeName))
50 ->load($order))->setInternalIndex($index));
51 }
52 return $clients;
53 }
54 static protected function getUserCollectionByTypeId(Integration\Service\User\Container\Collection $collection, $typeId)
55 {
58 foreach ($collection as $item)
59 {
60 if($item->getEntity()->getType() == $typeId)
61 {
62 $clients->addItem($item);
63 }
64 }
65 return $clients;
66 }
67}
static create($type, $fields)
Определения factory.php:9
static getUserCollectionFromOrderList(array $params)
Определения client.php:18
static collapseUserList(array $list)
Определения client.php:24
static resolveFieldsValuesFromOrderList(array $params)
Определения client.php:11
static resolveNamePersonDomain($personTypeId)
Определения base.php:69
static load($id)
Определения orderbase.php:245
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$result
Определения get_property_values.php:14
$order
Определения payment.php:8
</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
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']
Определения template.php:799