Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
company.php
1<?php
2
3namespace Bitrix\Sale;
4
6
7
8class CompanyTable extends Entity\DataManager
9{
10 public static function getTableName()
11 {
12 return 'b_sale_company';
13 }
14
15 public static function getMap()
16 {
17 return array(
18 'ID' => array(
19 'data_type' => 'integer',
20 'primary' => true,
21 'autocomplete' => true
22 ),
23 'NAME' => array(
24 'data_type' => 'string',
25 'required' => true
26 ),
27 'LOCATION_ID' => array(
28 'data_type' => 'string',
29 'required' => true
30 ),
31 'LOCATION' => array(
32 'data_type' => 'Bitrix\Sale\Location\Location',
33 'reference' => array(
34 '=this.LOCATION_ID' => 'ref.CODE'
35 )
36 ),
37 'CODE' => array(
38 'data_type' => 'string'
39 ),
40 'XML_ID' => array(
41 'data_type' => 'string'
42 ),
43 'ACTIVE' => array(
44 'data_type' => 'string'
45 ),
46 'DATE_CREATE' => array(
47 'data_type' => 'datetime'
48 ),
49 'DATE_MODIFY' => array(
50 'data_type' => 'datetime'
51 ),
52 'CREATED_BY' => array(
53 'data_type' => 'integer',
54 ),
55 'CREATED' => array(
56 'data_type' => 'Bitrix\Main\User',
57 'reference' => array(
58 '=this.CREATED_BY' => 'ref.ID'
59 )
60 ),
61 'MODIFIED_BY' => array(
62 'data_type' => 'integer'
63 ),
64 'MODIFIED' => array(
65 'data_type' => 'Bitrix\Main\User',
66 'reference' => array(
67 '=this.MODIFIED_BY' => 'ref.ID'
68 )
69 ),
70 'ADDRESS' => array(
71 'data_type' => 'string'
72 )
73 );
74 }
75
76 public static function getUfId()
77 {
78 return 'SALE_COMPANY';
79 }
80
81}