Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
externalservice.php
1<?php
9
10use Bitrix\Main;
13
14Loc::loadMessages(__FILE__);
15
32class ExternalServiceTable extends Entity\DataManager
33{
34 public static function getFilePath()
35 {
36 return __FILE__;
37 }
38
39 public static function getTableName()
40 {
41 return 'b_sale_loc_ext_srv';
42 }
43
44 public static function getMap()
45 {
46 return array(
47
48 'ID' => array(
49 'data_type' => 'integer',
50 'primary' => true,
51 'autocomplete' => true,
52 ),
53
54 'CODE' => array(
55 'data_type' => 'string',
56 'required' => true,
57 'title' => Loc::getMessage('SALE_LOCATION_EXTERNAL_SERVICE_ENTITY_CODE_FIELD')
58 ),
59
60 // virtual
61 'EXTERNAL' => array(
62 'data_type' => '\Bitrix\Sale\Location\External',
63 'reference' => array(
64 '=this.ID' => 'ref.SERVICE_ID'
65 )
66 ),
67 );
68 }
69}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29