Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
orderdeliveryreq.php
1<?php
3
4
6
7Main\Localization\Loc::loadMessages(__FILE__);
8
37class OrderDeliveryReqTable extends Main\Entity\DataManager
38{
39 public static function getTableName()
40 {
41 return 'b_sale_order_delivery_req';
42 }
43
44 public static function getMap()
45 {
46 return array(
47 'ID' => array(
48 'data_type' => 'integer',
49 'primary' => true,
50 'autocomplete' => true,
51 'title' => Main\Localization\Loc::getMessage('ORDERDELIVERY_ENTITY_ID_FIELD'),
52 ),
53 'ORDER_ID' => array(
54 'data_type' => 'integer',
55 'required' => true,
56 'title' => Main\Localization\Loc::getMessage('ORDERDELIVERY_ENTITY_ORDER_ID_FIELD'),
57 ),
58 'DELIVERY_LOCATION' => array(
59 'data_type' => 'string',
60 'validation' => array(__CLASS__, 'validateLocation'),
61 'title' => Main\Localization\Loc::getMessage('ORDERDELIVERY_ENTITY_HID_FIELD'),
62 ),
63 'DATE_REQUEST' => array(
64 'data_type' => 'datetime',
65 'title' => Main\Localization\Loc::getMessage('ORDERDELIVERY_ENTITY_DATE_REQUEST_FIELD'),
66 ),
67 'PARAMS' => array(
68 'data_type' => 'text',
69 'serialized' => true,
70 'title' => Main\Localization\Loc::getMessage('ORDERDELIVERY_ENTITY_PARAMS_FIELD'),
71 ),
72 'SHIPMENT_ID' => array(
73 'data_type' => 'integer',
74 'title' => Main\Localization\Loc::getMessage('ORDERDELIVERY_ENTITY_SHIPMENT_ID_FIELD'),
75 )
76 );
77 }
78
79 public static function validateLocation()
80 {
81 return array(
82 new Main\Entity\Validator\Length(null, 50),
83 );
84 }
85}
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29