3namespace Bitrix\Sale\Delivery\Services;
5use Bitrix\Main\Application;
7use Bitrix\Main\Localization\Loc;
8use Bitrix\Main\ORM\Data\DeleteResult;
9use Bitrix\Sale\Delivery\Services;
11Loc::loadMessages(__FILE__);
48class Table extends Entity\DataManager
57 return 'b_sale_delivery_srv';
64 'data_type' =>
'integer',
66 'autocomplete' =>
true,
67 'title' => Loc::getMessage(
'DELIVERY_SERVICE_ENTITY_ID_FIELD'),
70 'data_type' =>
'string',
71 'validation' =>
array(__CLASS__,
'validateCode'),
72 'title' => Loc::getMessage(
'DELIVERY_SERVICE_ENTITY_CODE_FIELD'),
75 'data_type' =>
'integer',
76 'title' => Loc::getMessage(
'DELIVERY_SERVICE_ENTITY_PARENT_ID_FIELD'),
79 'data_type' =>
'\Bitrix\Sale\Delivery\Services\Table',
81 '=this.PARENT_ID' =>
'ref.ID'
85 'data_type' =>
'string',
87 'validation' =>
array(__CLASS__,
'validateName'),
88 'title' => Loc::getMessage(
'DELIVERY_SERVICE_ENTITY_NAME_FIELD'),
91 'data_type' =>
'boolean',
92 'values' =>
array(
'N',
'Y'),
94 'title' => Loc::getMessage(
'DELIVERY_SERVICE_ENTITY_ACTIVE_FIELD'),
96 'DESCRIPTION' =>
array(
97 'data_type' =>
'string',
98 'title' => Loc::getMessage(
'DELIVERY_SERVICE_ENTITY_DESCRIPTION_FIELD'),
101 'data_type' =>
'integer',
102 'default_value' => 100,
103 'title' => Loc::getMessage(
'DELIVERY_SERVICE_ENTITY_SORT_FIELD'),
106 'data_type' =>
'integer',
107 'title' => Loc::getMessage(
'DELIVERY_SERVICE_ENTITY_LOGOTIP_FIELD'),
110 'data_type' =>
'text',
111 'serialized' =>
true,
112 'title' => Loc::getMessage(
'DELIVERY_SERVICE_ENTITY_CONFIG_FIELD'),
114 'CLASS_NAME' =>
array(
115 'data_type' =>
'string',
116 'validation' =>
array(__CLASS__,
'validateClassName'),
117 'title' => Loc::getMessage(
'DELIVERY_SERVICE_ENTITY_CLASS_NAME_FIELD'),
120 'data_type' =>
'string',
121 'validation' =>
array(__CLASS__,
'validateCurrency'),
122 'title' => Loc::getMessage(
'DELIVERY_SERVICE_ENTITY_CURRENCY_FIELD'),
124 'TRACKING_PARAMS' =>
array(
125 'data_type' =>
'text',
126 'serialized' =>
true,
127 'title' => Loc::getMessage(
'DELIVERY_SERVICE_ENTITY_TRACKING_PARAMS_FIELD'),
129 'ALLOW_EDIT_SHIPMENT' =>
array(
130 'data_type' =>
'boolean',
131 'values' =>
array(
'N',
'Y'),
132 'default_value' =>
'Y',
133 'title' => Loc::getMessage(
'DELIVERY_SERVICE_ENTITY_ALLOW_EDIT_SHIPMENT_FIELD')
136 'data_type' =>
'integer',
137 'title' => Loc::getMessage(
'DELIVERY_SERVICE_ENTITY_VAT_ID_FIELD')
140 'data_type' =>
'string',
193 public static function delete($primary)
197 $cacheManager = Application::getInstance()->getManagedCache();
201 return parent::delete($primary);
static getEmptyDeliveryServiceId()
static getIdByCode($code)
static getIdByCode($code)
static validateCurrency()
static validateClassName()
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
if(!is_null($config))($config as $configItem)(! $configItem->isVisible()) $code