Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
alias.php
1<?php
3
5use Bitrix\Main\ORM\Data\Internal\DeleteByFilterTrait;
7
35class 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}
static deleteBatch(array $filter, $limit=0)
Definition alias.php:113