Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
grouptask.php
1<?php
2
3namespace Bitrix\Main;
4
7use Bitrix\Main\ORM\Data\Internal\DeleteByFilterTrait;
8
9Loc::loadMessages(__FILE__);
10
39class GroupTaskTable extends Main\Entity\DataManager
40{
41 use DeleteByFilterTrait;
42
48 public static function getTableName()
49 {
50 return 'b_group_task';
51 }
52
58 public static function getMap()
59 {
60 return array(
61 'GROUP_ID' => array(
62 'data_type' => 'integer',
63 'primary' => true,
64 ),
65 'TASK_ID' => array(
66 'data_type' => 'integer',
67 'primary' => true,
68 ),
69 'EXTERNAL_ID' => array(
70 'data_type' => 'string',
71 'validation' => array(__CLASS__, 'validateExternalId'),
72 ),
73 'GROUP' => array(
74 'data_type' => 'Bitrix\Main\GroupTable',
75 'reference' => array('=this.GROUP_ID' => 'ref.ID'),
76 ),
77 'TASK' => array(
78 'data_type' => 'Bitrix\Main\TaskTable',
79 'reference' => array('=this.TASK_ID' => 'ref.ID'),
80 ),
81 );
82 }
88 public static function validateExternalId()
89 {
90 return array(
91 new Main\Entity\Validator\Length(null, 50),
92 );
93 }
94}
static loadMessages($file)
Definition loc.php:64