Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
cmdactivityadd.php
1<?php
3
4
6{
7 const ACTIVITY_PRIORITY_MEDIUM = 2; //\CCrmActivityPriority::Medium,
8 const ACTIVITY_PROVIDER_ID = 'REST_APP';
9 const ACTIVITY_PROVIDER_TYPE_ID = 'ESHOP';
11 const CONTENT_TYPE_PLAIN_TEXT = 1; //\CCrmContentType::PlainText,
12 const ACTIVITY_NOTIFY_TYPE_NONE = 0; //\CCrmActivityNotifyType::None,
13
14 public function fill()
15 {
16 parent::fill();
17
18 $fields = $this->query->get('fields');
19
20 $fields['PROVIDER_ID'] = static::ACTIVITY_PROVIDER_ID;
21 $fields['PROVIDER_TYPE_ID'] = static::ACTIVITY_PROVIDER_TYPE_ID;
22 //$fields['TYPE_ID'] = static::ACTIVITY_TYPE_ID;
23 $fields['START_TIME'] = new \Bitrix\Main\Type\DateTime;
24 $fields['COMPLETED'] = 'Y';
25 $fields['PRIORITY'] = static::ACTIVITY_PRIORITY_MEDIUM;
26 $fields['DESCRIPTION_TYPE'] = static::CONTENT_TYPE_PLAIN_TEXT;
27 $fields['NOTIFY_TYPE'] = static::ACTIVITY_NOTIFY_TYPE_NONE;
28 $fields['IS_RETURN_CUSTOMER'] = 'N';
29
30 $this->query->setValues(['fields'=>$fields]);
31
32 return $this;
33 }
34
35 protected function getCmdName()
36 {
38 }
39}