1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
b24integrationtokentable.php
См. документацию.
1
<?php
2
namespace
Bitrix\Sale\Exchange\Integration\Entity;
3
4
5
use Bitrix\Main;
6
use Bitrix\Main\ORM\Fields;
7
use Bitrix\Main\Type\DateTime;
8
use Bitrix\Sale\Exchange\Integration\Entity;
9
26
class
B24integrationTokenTable
extends
Main\ORM\Data\DataManager
27
{
28
public
static
function
getTableName
()
29
{
30
return
'b_sale_b24integration_token'
;
31
}
32
33
public
static
function
getObjectClass
()
34
{
35
return
Entity\Token::class;
36
}
37
41
public
static
function
getMap
()
42
{
43
return
[
44
new
Fields\IntegerField
(
"ID"
, [
45
"primary"
=>
true
,
46
"autocomplete"
=>
true
47
]),
48
new
Fields\StringField
(
"GUID"
, [
49
"required"
=>
false
50
]),
51
new
Fields\StringField
(
"ACCESS_TOKEN"
, [
52
"required"
=>
true
53
]),
54
new
Fields\StringField
(
"REFRESH_TOKEN"
, [
55
"required"
=>
true
56
]),
57
new
Fields\StringField
(
"REST_ENDPOINT"
, [
58
"required"
=>
true
59
]),
60
new
Fields\StringField
(
"PORTAL_ID"
, [
61
"required"
=>
true
62
]),
63
new
Fields\DatetimeField
(
"CREATED"
, [
64
"required"
=>
true
,
65
"default_value"
=>
new
DateTime
()
66
]),
67
new
Fields\DatetimeField
(
"CHANGED"
, [
68
"required"
=>
true
,
69
"default_value"
=>
new
DateTime
()
70
]),
71
new
Fields\DatetimeField
(
"EXPIRES"
, [
72
"required"
=>
true
,
73
"default_value"
=> (
new
DateTime
())->
add
(
"1 hour"
)
74
])
75
];
76
}
77
}
Bitrix\Main\ORM\Data\DataManager
Определения
datamanager.php:35
Bitrix\Main\ORM\Data\DataManager\add
static add(array $data)
Определения
datamanager.php:877
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\Type\DateTime
Определения
datetime.php:9
Bitrix\Sale\Exchange\Integration\Entity\B24integrationTokenTable
Определения
b24integrationtokentable.php:27
Bitrix\Sale\Exchange\Integration\Entity\B24integrationTokenTable\getMap
static getMap()
Определения
b24integrationtokentable.php:41
Bitrix\Sale\Exchange\Integration\Entity\B24integrationTokenTable\getObjectClass
static getObjectClass()
Определения
b24integrationtokentable.php:33
Bitrix\Sale\Exchange\Integration\Entity\B24integrationTokenTable\getTableName
static getTableName()
Определения
b24integrationtokentable.php:28
bitrix
modules
sale
lib
exchange
integration
entity
b24integrationtokentable.php
Создано системой
1.14.0