Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
grouptask.php
1
<?php
2
3
namespace
Bitrix\Main
;
4
5
use
Bitrix\Main
;
6
use
Bitrix\Main\Localization\Loc
;
7
use Bitrix\Main\ORM\Data\Internal\DeleteByFilterTrait;
8
9
Loc::loadMessages
(__FILE__);
10
39
class
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
}
Bitrix\Main\GroupTaskTable
Definition
grouptask.php:40
Bitrix\Main\GroupTaskTable\getMap
static getMap()
Definition
grouptask.php:58
Bitrix\Main\GroupTaskTable\validateExternalId
static validateExternalId()
Definition
grouptask.php:88
Bitrix\Main\GroupTaskTable\getTableName
static getTableName()
Definition
grouptask.php:48
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\ORM\Entity
Definition
entity.php:26
Bitrix\Main
modules
main
lib
grouptask.php
Создано системой
1.10.0