Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
activity.php
1<?php
3
4
6
7class Activity extends Proxy
8{
9 public function init($params)
10 {
11 foreach($params as $index=>$item)
12 {
13 $this->collection->addItem(
14 Integration\Service\Internal\Container\Item::create(
15 Integration\Service\Internal\Entity\Factory::create($this->getDstEntityTypeId())
16 ->setOriginId($index)
17 ->setOriginatorId(static::ANALITICS_ORIGINATOR_ID)
18 ->setSubject($item['SUBJECT'])
19 ->setOwnerTypeId($item['OWNER_TYPE_ID'])
20 ->setOwnerId($item['OWNER_ID']))
21 ->setInternalIndex($index)
22 );
23 }
24 return $this;
25 }
26
27 static protected function getProxy()
28 {
30 }
31
32 public function getSrcEntityTypeId()
33 {
34 return Integration\EntityType::ORDER;
35 }
36 public function getDstEntityTypeId()
37 {
38 return Integration\CRM\EntityType::ACTIVITY;
39 }
40}