Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
optionaccesstable.php
1
<?php
2
3
namespace
Bitrix\Im\Model
;
4
5
use
Bitrix\Main\ArgumentTypeException
,
6
Bitrix\Main\ORM\Data\DataManager
,
7
Bitrix\Main\ORM\Fields\IntegerField
,
8
Bitrix\Main\ORM\Fields\StringField
,
9
Bitrix\Main\ORM\Fields\Validators\LengthValidator
,
10
Bitrix\Main\SystemException
;
11
12
26
class
OptionAccessTable
extends
DataManager
27
{
33
public
static
function
getTableName
(): string
34
{
35
return
'b_im_option_access'
;
36
}
37
44
public
static
function
getMap
(): array
45
{
46
return
[
47
'ID'
=> (
new
IntegerField
(
'ID'
, [
48
'primary'
=>
true
,
49
'autocomplete'
=>
true
,
50
])),
51
'GROUP_ID'
=> (
new
IntegerField
(
'GROUP_ID'
, [
52
'required'
=>
true
,
53
])),
54
'ACCESS_CODE'
=> (
new
StringField
(
'ACCESS_CODE'
, [
55
'validation'
=> [__CLASS__,
'validateAccessCode'
],
56
])),
57
];
58
}
59
66
public
static
function
validateAccessCode
(): array
67
{
68
return
[
69
new
LengthValidator
(
null
, 100),
70
];
71
}
72
}
Bitrix\Im\Model\OptionAccessTable
Definition
optionaccesstable.php:27
Bitrix\Im\Model\OptionAccessTable\getMap
static getMap()
Definition
optionaccesstable.php:44
Bitrix\Im\Model\OptionAccessTable\validateAccessCode
static validateAccessCode()
Definition
optionaccesstable.php:66
Bitrix\Im\Model\OptionAccessTable\getTableName
static getTableName()
Definition
optionaccesstable.php:33
Bitrix\Main\ArgumentTypeException
Definition
exception.php:114
Bitrix\Main\ORM\Data\DataManager
Definition
datamanager.php:33
Bitrix\Main\ORM\Fields\IntegerField
Definition
integerfield.php:20
Bitrix\Main\ORM\Fields\StringField
Definition
stringfield.php:20
Bitrix\Main\ORM\Fields\Validators\LengthValidator
Definition
lengthvalidator.php:19
Bitrix\Main\SystemException
Definition
exception.php:8
Bitrix\Im\Model
Definition
alias.php:2
modules
im
lib
model
optionaccesstable.php
Создано системой
1.10.0