Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
agreement.php
1
<?php
2
3
namespace
Bitrix\Sender\Internals\Model
;
4
5
use
Bitrix\Main\Entity
;
6
use
Bitrix\Main\Type\DateTime
;
7
8
26
class
AgreementTable
extends
Entity\DataManager
27
{
33
public
static
function
getTableName
()
34
{
35
return
'b_sender_agreement'
;
36
}
37
43
public
static
function
getMap
()
44
{
45
return
array(
46
new
Entity
\
IntegerField
(
'ID'
, array(
47
'primary'
=>
true
,
48
'autocomplete'
=>
true
49
)),
50
new
Entity
\
IntegerField
(
'USER_ID'
, array(
51
'required'
=>
true
52
)),
53
new
Entity
\
StringField
(
'NAME'
, array(
54
'validation'
=>
function
()
55
{
56
return
array(
57
new
Entity
\
Validator
\Length(
null
, 100),
58
);
59
}
60
)),
61
new
Entity\StringField
(
'EMAIL'
, array(
62
'required'
=>
false
,
63
'validation'
=>
function
()
64
{
65
return
array(
66
new
Entity
\
Validator
\Length(
null
, 255),
67
);
68
}
69
)),
70
new
Entity\DatetimeField
(
'DATE'
, array(
71
'required'
=>
true
,
72
'default_value'
=>
new
DateTime
()
73
)),
74
new
Entity\StringField
(
'IP_ADDRESS'
, array(
75
'required'
=>
true
,
76
'validation'
=>
function
()
77
{
78
return
array(
79
new
Entity
\
Validator
\Length(
null
, 39),
80
);
81
}
82
)),
83
);
84
}
85
}
Bitrix\Main\ORM\Entity
Definition
entity.php:26
Bitrix\Main\ORM\Fields\DatetimeField
Definition
datetimefield.php:22
Bitrix\Main\ORM\Fields\IntegerField
Definition
integerfield.php:20
Bitrix\Main\ORM\Fields\StringField
Definition
stringfield.php:20
Bitrix\Main\Type\DateTime
Definition
datetime.php:9
Bitrix\Sender\Internals\Model\AgreementTable
Definition
agreement.php:27
Bitrix\Sender\Internals\Model\AgreementTable\getMap
static getMap()
Definition
agreement.php:43
Bitrix\Sender\Internals\Model\AgreementTable\getTableName
static getTableName()
Definition
agreement.php:33
Bitrix\Sender\Recipient\Validator
Definition
validator.php:19
Bitrix\Sender\Internals\Model
Definition
abuse.php:3
modules
sender
lib
internals
model
agreement.php
Создано системой
1.10.0