1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
bloguser.php
См. документацию.
1
<?php
2
namespace
Bitrix\Blog\Internals
;
3
4
use
Bitrix\Main\Entity
;
5
use
Bitrix\Main\Localization\Loc
;
6
use \Bitrix\Main\NotImplementedException;
7
8
Loc::loadMessages(__FILE__);
9
10
27
class
BlogUserTable
extends
Entity\DataManager
28
{
29
public
static
function
getTableName
()
30
{
31
return
'b_blog_user'
;
32
}
33
34
public
static
function
getMap
()
35
{
36
return
array
(
37
new
Entity
\
IntegerField
(
'ID'
,
array
(
38
'primary'
=>
true
,
39
'autocomplete'
=>
true
,
40
)),
41
42
new
Entity
\
IntegerField
(
'USER_ID'
,
array
(
43
'required'
=>
true
,
44
)),
45
46
new
Entity
\
StringField
(
'ALIAS'
,
array
(
47
'required'
=>
false
,
48
'validation'
=>
array
(__CLASS__,
'validateAlias'
),
49
)),
50
51
new
Entity
\
TextField
(
'DESCRIPTION'
,
array
(
52
'required'
=>
false
,
53
)),
54
55
new
Entity
\
IntegerField
(
'AVATAR'
,
array
(
56
'required'
=>
false
,
57
)),
58
59
new
Entity
\
StringField
(
'INTERESTS'
,
array
(
60
'required'
=>
false
,
61
'validation'
=>
array
(__CLASS__,
'validateInterests'
),
62
)),
63
64
new
Entity
\
DatetimeField
(
'LAST_VISIT'
,
array
(
65
'required'
=>
false
,
66
)),
67
68
new
Entity
\
DatetimeField
(
'DATE_REG'
,
array
(
69
'required'
=>
true
,
70
)),
71
72
new
Entity
\
BooleanField
(
'ALLOW_POST'
,
array
(
73
'required'
=>
true
,
74
'values'
=>
array
(
'N'
,
'Y'
),
75
)),
76
77
new
Entity
\ReferenceField(
78
'USER'
,
79
'Bitrix\Main\UserTable'
,
80
array
(
'=this.USER_ID'
=>
'ref.ID'
)
81
),
82
);
83
}
84
90
public
static
function
validateAlias
()
91
{
92
return
array
(
93
new
Entity
\Validator\Length(NULL, 255),
94
);
95
}
96
102
public
static
function
validateInterests
()
103
{
104
return
array
(
105
new
Entity
\Validator\Length(NULL, 255),
106
);
107
}
108
109
public
static
function
add
(
array
$data
)
110
{
111
throw
new
NotImplementedException
(
"Use CBlogUser class."
);
112
}
113
114
public
static
function
update
($primary,
array
$data
)
115
{
116
throw
new
NotImplementedException
(
"Use CBlogUser class."
);
117
}
118
119
public
static
function
delete
($primary)
120
{
121
throw
new
NotImplementedException
(
"Use CBlogUser class."
);
122
}
123
}
Bitrix\Blog\Internals\BlogUserTable
Определения
bloguser.php:28
Bitrix\Blog\Internals\BlogUserTable\getMap
static getMap()
Определения
bloguser.php:34
Bitrix\Blog\Internals\BlogUserTable\validateInterests
static validateInterests()
Определения
bloguser.php:102
Bitrix\Blog\Internals\BlogUserTable\add
static add(array $data)
Определения
bloguser.php:109
Bitrix\Blog\Internals\BlogUserTable\validateAlias
static validateAlias()
Определения
bloguser.php:90
Bitrix\Blog\Internals\BlogUserTable\update
static update($primary, array $data)
Определения
bloguser.php:114
Bitrix\Blog\Internals\BlogUserTable\getTableName
static getTableName()
Определения
bloguser.php:29
Bitrix\Main\Localization\Loc
Определения
loc.php:12
Bitrix\Main\NotImplementedException
Определения
NotImplementedException.php:9
Bitrix\Main\ORM\Fields\BooleanField
Определения
booleanfield.php:20
Bitrix\Main\ORM\Fields\DatetimeField
Определения
datetimefield.php:22
Bitrix\Main\ORM\Fields\IntegerField
Определения
integerfield.php:20
Bitrix\Main\ORM\Fields\StringField
Определения
stringfield.php:20
Bitrix\Main\ORM\Fields\TextField
Определения
textfield.php:20
$data
$data['IS_AVAILABLE']
Определения
.description.php:13
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Blog\Internals
Определения
bloguser.php:2
Bitrix\Main\Entity
Определения
ufield.php:9
bitrix
modules
blog
lib
internals
bloguser.php
Создано системой
1.14.0