Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
useraccess.php
1
<?php
2
3
namespace
Bitrix\Main
;
4
5
use
Bitrix\Main\Entity
;
6
23
class
UserAccessTable
extends
Entity\DataManager
24
{
25
public
static
function
getTableName
()
26
{
27
return
'b_user_access'
;
28
}
29
30
public
static
function
getMap
()
31
{
32
return
array(
33
'USER_ID'
=> array(
34
'data_type'
=>
'integer'
,
35
'primary'
=>
true
,
36
),
37
'PROVIDER_ID'
=> array(
38
'data_type'
=>
'string'
,
39
'primary'
=>
true
,
40
'validation'
=> array(__CLASS__,
'validateProviderId'
),
41
),
42
'ACCESS_CODE'
=> array(
43
'data_type'
=>
'string'
,
44
'primary'
=>
true
,
45
'validation'
=> array(__CLASS__,
'validateAccessCode'
),
46
),
47
);
48
}
49
50
public
static
function
validateProviderId
()
51
{
52
return
array(
53
new
Entity
\Validator\Length(
null
, 50),
54
);
55
}
56
57
public
static
function
validateAccessCode
()
58
{
59
return
array(
60
new
Entity
\Validator\Length(
null
, 100),
61
);
62
}
63
}
Bitrix\Main\ORM\Entity
Definition
entity.php:26
Bitrix\Main\UserAccessTable
Definition
useraccess.php:24
Bitrix\Main\UserAccessTable\getMap
static getMap()
Definition
useraccess.php:30
Bitrix\Main\UserAccessTable\validateAccessCode
static validateAccessCode()
Definition
useraccess.php:57
Bitrix\Main\UserAccessTable\validateProviderId
static validateProviderId()
Definition
useraccess.php:50
Bitrix\Main\UserAccessTable\getTableName
static getTableName()
Definition
useraccess.php:25
Bitrix\Main
modules
main
lib
useraccess.php
Создано системой
1.10.0