Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
orderprops_variant.php
1<?php
2
4
5use Bitrix\Main\Entity\DataManager,
6 Bitrix\Main\Entity\StringField,
7 Bitrix\Main\Entity\IntegerField;
8
26{
27 public static function getFilePath()
28 {
29 return __FILE__;
30 }
31
32 public static function getTableName()
33 {
34 return 'b_sale_order_props_variant';
35 }
36
37 public static function getMap()
38 {
39 return array(
40 new IntegerField('ID', array('primary' => true, 'autocomplete' => true)),
41 new IntegerField('ORDER_PROPS_ID', array('required' => true)),
42 new StringField ('NAME', array('required' => true)),
43 new StringField ('VALUE'),
44 new IntegerField('SORT', array('default_value' => 100)),
45 new StringField ('DESCRIPTION'),
46 new StringField ('XML_ID'),
47 );
48 }
49
50 public static function generateXmlId()
51 {
52 return uniqid('bx_');
53 }
54}