Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
userfieldconfirm.php
1
<?php
2
namespace
Bitrix\Main
;
3
4
use
Bitrix\Main\Entity
;
5
34
class
UserFieldConfirmTable
extends
Entity\DataManager
35
{
36
const
MAX_ATTEMPTS_COUNT
= 3;
37
public
static
function
getTableName
()
38
{
39
return
'b_user_field_confirm'
;
40
}
41
42
public
static
function
getMap
()
43
{
44
return
array(
45
'ID'
=> array(
46
'data_type'
=>
'integer'
,
47
'primary'
=>
true
,
48
'autocomplete'
=>
true
,
49
),
50
'USER_ID'
=> array(
51
'data_type'
=>
'integer'
,
52
'required'
=>
true
,
53
),
54
'DATE_CHANGE'
=> array(
55
'data_type'
=>
'datetime'
,
56
),
57
'FIELD'
=> array(
58
'data_type'
=>
'string'
,
59
'required'
=>
true
,
60
),
61
'FIELD_VALUE'
=> array(
62
'data_type'
=>
'string'
,
63
'required'
=>
true
,
64
),
65
'CONFIRM_CODE'
=> array(
66
'data_type'
=>
'string'
,
67
'required'
=>
true
,
68
'validation'
=> array(__CLASS__,
'validateConfirmCode'
),
69
),
70
"ATTEMPTS"
=> array(
71
'data_type'
=>
'integer'
,
72
"default_value"
=> 0,
73
),
74
);
75
}
76
77
public
static
function
validateConfirmCode
()
78
{
79
return
array(
80
new
Entity
\Validator\Length(
null
, 32),
81
);
82
}
83
}
Bitrix\Main\ORM\Entity
Definition
entity.php:26
Bitrix\Main\UserFieldConfirmTable
Definition
userfieldconfirm.php:35
Bitrix\Main\UserFieldConfirmTable\getMap
static getMap()
Definition
userfieldconfirm.php:42
Bitrix\Main\UserFieldConfirmTable\validateConfirmCode
static validateConfirmCode()
Definition
userfieldconfirm.php:77
Bitrix\Main\UserFieldConfirmTable\MAX_ATTEMPTS_COUNT
const MAX_ATTEMPTS_COUNT
Definition
userfieldconfirm.php:36
Bitrix\Main\UserFieldConfirmTable\getTableName
static getTableName()
Definition
userfieldconfirm.php:37
Bitrix\Main
modules
main
lib
userfieldconfirm.php
Создано системой
1.10.0