Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
feature.php
1<?php
9
11
12/*
13create table b_sonet_features
14(
15 ID int not null auto_increment,
16 ENTITY_TYPE char(1) not null default 'G',
17 ENTITY_ID int not null,
18 FEATURE varchar(50) not null,
19 FEATURE_NAME varchar(250) null,
20 ACTIVE char(1) not null default 'Y',
21 DATE_CREATE datetime not null,
22 DATE_UPDATE datetime not null,
23 primary key (ID),
24 unique IX_SONET_GROUP_FEATURES_1(ENTITY_TYPE, ENTITY_ID, FEATURE)
25);
26
27*/
44class FeatureTable extends Entity\DataManager
45{
48
49 public static function getTableName()
50 {
51 return 'b_sonet_features';
52 }
53
54 public static function getMap()
55 {
56 $fieldsMap = [
57 'ID' => [
58 'data_type' => 'integer',
59 'primary' => true,
60 'autocomplete' => true
61 ],
62 'ENTITY_TYPE' => [
63 'data_type' => 'string'
64 ],
65 'ENTITY_ID' => [
66 'data_type' => 'integer'
67 ],
68 'FEATURE' => [
69 'data_type' => 'string'
70 ],
71 'FEATURE_NAME' => [
72 'data_type' => 'string'
73 ],
74 'ACTIVE' => [
75 'data_type' => 'string'
76 ],
77 'DATE_CREATE' => [
78 'data_type' => 'datetime'
79 ],
80 'DATE_UPDATE' => [
81 'data_type' => 'datetime'
82 ]
83 ];
84
85 return $fieldsMap;
86 }
87
88}