Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
alias.php
1
<?php
2
namespace
Bitrix\Im\Model
;
3
4
use
Bitrix\Main
;
5
use Bitrix\Main\ORM\Data\Internal\DeleteByFilterTrait;
6
use
Bitrix\Main\ORM\Fields\ExpressionField
;
7
35
class
AliasTable
extends
Main\Entity\DataManager
36
{
37
use DeleteByFilterTrait;
38
44
public
static
function
getTableName
()
45
{
46
return
'b_im_alias'
;
47
}
48
54
public
static
function
getMap
()
55
{
56
return
array(
57
'ID'
=> array(
58
'data_type'
=>
'integer'
,
59
'primary'
=>
true
,
60
'autocomplete'
=>
true
,
61
//'title' => Loc::getMessage('ALIAS_ENTITY_ID_FIELD'),
62
),
63
'ALIAS'
=> array(
64
'data_type'
=>
'string'
,
65
'required'
=>
true
,
66
'validation'
=> array(__CLASS__,
'validateAlias'
),
67
//'title' => Loc::getMessage('ALIAS_ENTITY_ALIAS_FIELD'),
68
),
69
'DATE_CREATE'
=> array(
70
'data_type'
=>
'datetime'
,
71
'required'
=>
true
,
72
//'title' => Loc::getMessage('ALIAS_ENTITY_ENTITY_DATE_CREATE_FIELD'),
73
),
74
'ENTITY_TYPE'
=> array(
75
'data_type'
=>
'string'
,
76
'required'
=>
true
,
77
'validation'
=> array(__CLASS__,
'validateEntityType'
),
78
//'title' => Loc::getMessage('ALIAS_ENTITY_ENTITY_TYPE_FIELD'),
79
),
80
'ENTITY_ID'
=> array(
81
'data_type'
=>
'integer'
,
82
'required'
=>
true
,
83
//'title' => Loc::getMessage('ALIAS_ENTITY_ENTITY_ID_FIELD'),
84
),
85
);
86
}
92
public
static
function
validateAlias
()
93
{
94
return
array(
95
new
Main\
Entity
\Validator\Length(
null
, 255),
96
);
97
}
103
public
static
function
validateEntityType
()
104
{
105
return
array(
106
new
Main\
Entity
\Validator\Length(
null
, 255),
107
);
108
}
109
113
public
static
function
deleteBatch
(array $filter, $limit = 0)
114
{
115
static::deleteByFilter($filter);
116
}
117
}
Bitrix\Im\Model\AliasTable
Definition
alias.php:36
Bitrix\Im\Model\AliasTable\deleteBatch
static deleteBatch(array $filter, $limit=0)
Definition
alias.php:113
Bitrix\Im\Model\AliasTable\getMap
static getMap()
Definition
alias.php:54
Bitrix\Im\Model\AliasTable\validateEntityType
static validateEntityType()
Definition
alias.php:103
Bitrix\Im\Model\AliasTable\validateAlias
static validateAlias()
Definition
alias.php:92
Bitrix\Im\Model\AliasTable\getTableName
static getTableName()
Definition
alias.php:44
Bitrix\Main\ORM\Fields\ExpressionField
Definition
expressionfield.php:25
Bitrix\Im\V2\Sync\Entity
Definition
Entity.php:6
Bitrix\Im\Model
Definition
alias.php:2
Bitrix\Main
modules
im
lib
model
alias.php
Создано системой
1.10.0