Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
channeltable.php
1
<?php
2
namespace
Bitrix\Pull\Model
;
3
4
use
Bitrix\Main
;
5
36
class
ChannelTable
extends
Main\Entity\DataManager
37
{
43
public
static
function
getTableName
()
44
{
45
return
'b_pull_channel'
;
46
}
47
53
public
static
function
getMap
()
54
{
55
return
array(
56
'ID'
=> array(
57
'data_type'
=>
'integer'
,
58
'primary'
=>
true
,
59
'autocomplete'
=>
true
,
60
),
61
'USER_ID'
=> array(
62
'data_type'
=>
'integer'
,
63
'required'
=>
true
,
64
),
65
'CHANNEL_TYPE'
=> array(
66
'data_type'
=>
'string'
,
67
'validation'
=> array(__CLASS__,
'validateChannelType'
),
68
),
69
'CHANNEL_ID'
=> array(
70
'data_type'
=>
'string'
,
71
'required'
=>
true
,
72
'validation'
=> array(__CLASS__,
'validateChannelId'
),
73
),
74
'CHANNEL_PUBLIC_ID'
=> array(
75
'data_type'
=>
'string'
,
76
'validation'
=> array(__CLASS__,
'validateChannelId'
),
77
),
78
'LAST_ID'
=> array(
79
'data_type'
=>
'integer'
,
80
),
81
'DATE_CREATE'
=> array(
82
'data_type'
=>
'datetime'
,
83
'required'
=>
true
,
84
'default_value'
=> array(__CLASS__,
'getCurrentDate'
),
85
),
86
'USER'
=> array(
87
'data_type'
=>
'Bitrix\Main\UserTable'
,
88
'reference'
=> array(
'=this.USER_ID'
=>
'ref.ID'
),
89
'join_type'
=>
'INNER'
,
90
),
91
);
92
}
98
public
static
function
validateChannelType
()
99
{
100
return
array(
101
new
Main\
Entity
\Validator\Length(
null
, 50),
102
);
103
}
109
public
static
function
validateChannelId
()
110
{
111
return
array(
112
new
Main\
Entity
\Validator\Length(
null
, 50),
113
);
114
}
115
121
public
static
function
getCurrentDate
()
122
{
123
return
new \Bitrix\Main\Type\DateTime();
124
}
125
}
126
127
class_alias(
"Bitrix\\Pull\\Model\\ChannelTable"
,
"Bitrix\\Pull\\ChannelTable"
,
false
);
Bitrix\Main\ORM\Entity
Definition
entity.php:26
Bitrix\Pull\Model\ChannelTable
Definition
channeltable.php:37
Bitrix\Pull\Model\ChannelTable\getCurrentDate
static getCurrentDate()
Definition
channeltable.php:121
Bitrix\Pull\Model\ChannelTable\getMap
static getMap()
Definition
channeltable.php:53
Bitrix\Pull\Model\ChannelTable\validateChannelType
static validateChannelType()
Definition
channeltable.php:98
Bitrix\Pull\Model\ChannelTable\validateChannelId
static validateChannelId()
Definition
channeltable.php:109
Bitrix\Pull\Model\ChannelTable\getTableName
static getTableName()
Definition
channeltable.php:43
Bitrix\Main
Bitrix\Pull\Model
Definition
channel.php:3
modules
pull
lib
model
channeltable.php
Создано системой
1.10.0