Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
taskusertable.php
1<?php
2
4
5use Bitrix\Main\Entity\DataManager;
6use Bitrix\Main\Entity\DatetimeField;
7use Bitrix\Main\Entity\IntegerField;
10
28{
32 public static function getTableName()
33 {
34 return 'b_bp_task_user';
35 }
36
37 public static function getMap()
38 {
39 return [
40 (new IntegerField('ID'))
41 ->configurePrimary()
42 ->configureAutocomplete()
43 ,
44 (new IntegerField('USER_ID'))
45 ->configureNullable(false)
46 ,
47 (new IntegerField('TASK_ID'))
48 ->configureNullable(false)
49 ,
50 (new IntegerField('STATUS'))
51 ->configureNullable(false)
52 ->configureDefaultValue(0)
53 ,
54 (new DatetimeField('DATE_UPDATE'))
55 ->configureNullable()
56 ,
57 (new IntegerField('ORIGINAL_USER_ID'))
58 ->configureNullable(false)
59 ->configureDefaultValue(0)
60 ,
61 new \Bitrix\Main\ORM\Fields\Relations\Reference(
62 'USER_TASKS',
63 TaskTable::class,
64 Join::on('this.TASK_ID', 'ref.ID')
65 ),
66 ];
67 }
68
74 public static function add(array $data)
75 {
76 throw new NotImplementedException('Use CBPTaskService class.');
77 }
78
85 public static function update($primary, array $data)
86 {
87 throw new NotImplementedException('Use CBPTaskService class.');
88 }
89
95 public static function delete($primary)
96 {
97 throw new NotImplementedException('Use CBPTaskService class.');
98 }
99}
static update($primary, array $data)