Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
post.php
1
<?php
8
namespace
Bitrix\Blog
;
9
10
use
Bitrix\Main\Entity
;
11
use
Bitrix\Main\Localization\Loc
;
12
use
Bitrix\Main\NotImplementedException
;
13
14
Loc::loadMessages
(__FILE__);
15
32
class
PostTable
extends
Entity\DataManager
33
{
34
public
static
function
getTableName
()
35
{
36
return
'b_blog_post'
;
37
}
38
39
public
static
function
getUfId
()
40
{
41
return
'BLOG_POST'
;
42
}
43
44
public
static
function
getMap
()
45
{
46
$fieldsMap = array(
47
'ID'
=> array(
48
'data_type'
=>
'integer'
,
49
'primary'
=>
true
,
50
'autocomplete'
=>
true
,
51
),
52
'BLOG_ID'
=> array(
53
'data_type'
=>
'integer'
54
),
55
'AUTHOR_ID'
=> array(
56
'data_type'
=>
'integer'
57
),
58
'CODE'
=> array(
59
'data_type'
=>
'string'
60
),
61
'MICRO'
=> array(
62
'data_type'
=>
'string'
,
63
'values'
=> array(
'N'
,
'Y'
)
64
),
65
'DATE_CREATE'
=> array(
66
'data_type'
=>
'datetime'
67
),
68
'DATE_PUBLISH'
=> array(
69
'data_type'
=>
'datetime'
70
),
71
'PUBLISH_STATUS'
=> array(
72
'data_type'
=>
'string'
,
73
'values'
=> array(BLOG_PUBLISH_STATUS_DRAFT, BLOG_PUBLISH_STATUS_READY, BLOG_PUBLISH_STATUS_PUBLISH)
74
),
75
'ENABLE_COMMENTS'
=> array(
76
'data_type'
=>
'string'
,
77
'values'
=> array(
'N'
,
'Y'
)
78
),
79
'NUM_COMMENTS'
=> array(
80
'data_type'
=>
'integer'
81
),
82
'NUM_COMMENTS_ALL'
=> array(
83
'data_type'
=>
'integer'
84
),
85
'VIEWS'
=> array(
86
'data_type'
=>
'integer'
87
),
88
'HAS_SOCNET_ALL'
=> array(
89
'data_type'
=>
'string'
,
90
'values'
=> array(
'N'
,
'Y'
)
91
),
92
'HAS_TAGS'
=> array(
93
'data_type'
=>
'string'
,
94
'values'
=> array(
'N'
,
'Y'
)
95
),
96
'HAS_IMAGES'
=> array(
97
'data_type'
=>
'string'
,
98
'values'
=> array(
'N'
,
'Y'
)
99
),
100
'HAS_PROPS'
=> array(
101
'data_type'
=>
'string'
,
102
'values'
=> array(
'N'
,
'Y'
)
103
),
104
'HAS_COMMENT_IMAGES'
=> array(
105
'data_type'
=>
'string'
,
106
'values'
=> array(
'N'
,
'Y'
)
107
),
108
'TITLE'
=> array(
109
'data_type'
=>
'string'
,
110
'save_data_modification'
=> array(
'\Bitrix\Main\Text\Emoji'
,
'getSaveModificator'
),
111
'fetch_data_modification'
=> array(
'\Bitrix\Main\Text\Emoji'
,
'getFetchModificator'
),
112
),
113
'DETAIL_TEXT'
=> array(
114
'data_type'
=>
'text'
,
115
'save_data_modification'
=> array(
'\Bitrix\Main\Text\Emoji'
,
'getSaveModificator'
),
116
'fetch_data_modification'
=> array(
'\Bitrix\Main\Text\Emoji'
,
'getFetchModificator'
),
117
),
118
'CATEGORY_ID'
=> array(
119
'data_type'
=>
'string'
,
120
),
121
'BACKGROUND_CODE'
=> [
122
'data_type'
=>
'string'
123
],
124
);
125
126
return
$fieldsMap;
127
}
128
129
public
static
function
add
(array $data)
130
{
131
throw
new
NotImplementedException
(
"Use CBlogPost class."
);
132
}
133
134
public
static
function
update
($primary, array $data)
135
{
136
throw
new
NotImplementedException
(
"Use CBlogPost class."
);
137
}
138
139
public
static
function
delete
($primary)
140
{
141
throw
new
NotImplementedException
(
"Use CBlogPost class."
);
142
}
143
}
Bitrix\Blog\PostTable
Definition
post.php:33
Bitrix\Blog\PostTable\getMap
static getMap()
Definition
post.php:44
Bitrix\Blog\PostTable\getUfId
static getUfId()
Definition
post.php:39
Bitrix\Blog\PostTable\add
static add(array $data)
Definition
post.php:129
Bitrix\Blog\PostTable\update
static update($primary, array $data)
Definition
post.php:134
Bitrix\Blog\PostTable\getTableName
static getTableName()
Definition
post.php:34
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\NotImplementedException
Definition
exception.php:147
Bitrix\Main\ORM\Entity
Definition
entity.php:26
Bitrix\Blog
Definition
bloguser.php:9
modules
blog
lib
post.php
Создано системой
1.10.0