Bitrix-D7  20.0.0
sale/lib/registry.php
См. документацию.
1 <?php
2 namespace Bitrix\Sale;
3 
4 use Bitrix\Main;
5 
7 
8 /**
9  * Class Registry
10  * @package Bitrix\Sale
11  */
12 final class Registry
13 {
14  const EVENT_ON_INIT_REGISTRY_LIST = 'OnInitRegistryList';
15 
16  const REGISTRY_TYPE_ORDER = 'ORDER';
17  const REGISTRY_TYPE_ARCHIVE_ORDER = 'ARCHIVE_ORDER';
18 
19  const ENTITY_SHIPMENT = 'SHIPMENT';
20  const ENTITY_ORDER = 'ORDER';
21  const ENTITY_PAYMENT = 'PAYMENT';
22  const ENTITY_PAYMENT_COLLECTION = 'PAYMENT_COLLECTION';
23  const ENTITY_SHIPMENT_COLLECTION = 'SHIPMENT_COLLECTION';
24  const ENTITY_PROPERTY_VALUE = 'PROPERTY_VALUE';
25  const ENTITY_BUNDLE_COLLECTION = 'BUNDLE_COLLECTION';
26  const ENTITY_BASKET = 'BASKET';
27  const ENTITY_TAX = 'TAX';
28  const ENTITY_BASKET_ITEM = 'BASKET_ITEM';
29  const ENTITY_BASKET_PROPERTIES_COLLECTION = 'BASKET_PROPERTIES_COLLECTION';
30  const ENTITY_BASKET_PROPERTY_ITEM = 'BASKET_PROPERTY_ITEM';
31  const ENTITY_SHIPMENT_ITEM = 'SHIPMENT_ITEM';
32  const ENTITY_SHIPMENT_ITEM_COLLECTION = 'SHIPMENT_ITEM_COLLECTION';
33  const ENTITY_SHIPMENT_ITEM_STORE = 'SHIPMENT_ITEM_STORE';
34  const ENTITY_SHIPMENT_ITEM_STORE_COLLECTION = 'SHIPMENT_ITEM_STORE_COLLECTION';
35  const ENTITY_PROPERTY_VALUE_COLLECTION = 'PROPERTY_VALUE_COLLECTION';
36  const ENTITY_OPTIONS = 'CONFIG_OPTION';
37  const ENTITY_DISCOUNT = 'DISCOUNT';
38  const ENTITY_DISCOUNT_COUPON = 'DISCOUNT_COUPON';
39  const ENTITY_ORDER_DISCOUNT = 'ORDER_DISCOUNT';
40  const ENTITY_PERSON_TYPE = 'PERSON_TYPE';
41  const ENTITY_ORDER_STATUS = 'ORDER_STATUS';
42  const ENTITY_DELIVERY_STATUS = 'DELIVERY_STATUS';
43  const ENTITY_ENTITY_MARKER = 'ENTITY_MARKER';
44  const ENTITY_ORDER_HISTORY = 'ORDER_HISTORY';
45  const ENTITY_PROPERTY = 'PROPERTIES';
46  const ENTITY_NOTIFY = 'NOTIFY';
47  const ENTITY_TRADE_BINDING_COLLECTION = 'TRADE_BINDING_COLLECTION';
48  const ENTITY_TRADE_BINDING_ENTITY = 'TRADE_BINDING_ENTITY';
49 
50  private static $registryMap = array();
51  private static $registryObjects = array();
52 
53  private $type = '';
54 
55  /**
56  * @return void
57  */
58  private static function initRegistry()
59  {
60  static::$registryMap = array(
61  static::REGISTRY_TYPE_ORDER => array(
62  Registry::ENTITY_ORDER => '\Bitrix\Sale\Order',
63  Registry::ENTITY_PAYMENT => '\Bitrix\Sale\Payment',
64  Registry::ENTITY_PAYMENT_COLLECTION => '\Bitrix\Sale\PaymentCollection',
65  Registry::ENTITY_SHIPMENT => '\Bitrix\Sale\Shipment',
66  Registry::ENTITY_SHIPMENT_COLLECTION => '\Bitrix\Sale\ShipmentCollection',
67  Registry::ENTITY_SHIPMENT_ITEM => '\Bitrix\Sale\ShipmentItem',
68  Registry::ENTITY_SHIPMENT_ITEM_COLLECTION => '\Bitrix\Sale\ShipmentItemCollection',
69  Registry::ENTITY_SHIPMENT_ITEM_STORE => '\Bitrix\Sale\ShipmentItemStore',
70  Registry::ENTITY_SHIPMENT_ITEM_STORE_COLLECTION => '\Bitrix\Sale\ShipmentItemStoreCollection',
71  Registry::ENTITY_PROPERTY_VALUE_COLLECTION => '\Bitrix\Sale\PropertyValueCollection',
72  Registry::ENTITY_PROPERTY_VALUE => '\Bitrix\Sale\PropertyValue',
73  Registry::ENTITY_PROPERTY => 'Bitrix\Sale\Property',
74  Registry::ENTITY_TAX => '\Bitrix\Sale\Tax',
75  Registry::ENTITY_BASKET_PROPERTY_ITEM => '\Bitrix\Sale\BasketPropertyItem',
76  Registry::ENTITY_BUNDLE_COLLECTION => '\Bitrix\Sale\BundleCollection',
77  Registry::ENTITY_BASKET => '\Bitrix\Sale\Basket',
78  Registry::ENTITY_BASKET_ITEM => '\Bitrix\Sale\BasketItem',
79  Registry::ENTITY_BASKET_PROPERTIES_COLLECTION => '\Bitrix\Sale\BasketPropertiesCollection',
80  Registry::ENTITY_DISCOUNT => '\Bitrix\Sale\Discount',
81  Registry::ENTITY_DISCOUNT_COUPON => '\Bitrix\Sale\DiscountCouponsManager',
82  Registry::ENTITY_ORDER_DISCOUNT => '\Bitrix\Sale\OrderDiscount',
83  Registry::ENTITY_OPTIONS => 'Bitrix\Main\Config\Option',
84  Registry::ENTITY_PERSON_TYPE => 'Bitrix\Sale\PersonType',
85  Registry::ENTITY_ORDER_STATUS => 'Bitrix\Sale\OrderStatus',
86  Registry::ENTITY_DELIVERY_STATUS => 'Bitrix\Sale\DeliveryStatus',
87  Registry::ENTITY_ENTITY_MARKER => '\Bitrix\Sale\EntityMarker',
88  Registry::ENTITY_ORDER_HISTORY => 'Bitrix\Sale\OrderHistory',
89  Registry::ENTITY_NOTIFY => 'Bitrix\Sale\Notify',
90  Registry::ENTITY_TRADE_BINDING_COLLECTION => 'Bitrix\Sale\TradeBindingCollection',
91  Registry::ENTITY_TRADE_BINDING_ENTITY => 'Bitrix\Sale\TradeBindingEntity',
92  ),
93  static::REGISTRY_TYPE_ARCHIVE_ORDER => array(
94  Registry::ENTITY_ORDER => '\Bitrix\Sale\Archive\Order',
95  Registry::ENTITY_PAYMENT => '\Bitrix\Sale\Payment',
96  Registry::ENTITY_PAYMENT_COLLECTION => '\Bitrix\Sale\PaymentCollection',
97  Registry::ENTITY_SHIPMENT => '\Bitrix\Sale\Shipment',
98  Registry::ENTITY_SHIPMENT_COLLECTION => '\Bitrix\Sale\ShipmentCollection',
99  Registry::ENTITY_SHIPMENT_ITEM => '\Bitrix\Sale\ShipmentItem',
100  Registry::ENTITY_SHIPMENT_ITEM_COLLECTION => '\Bitrix\Sale\ShipmentItemCollection',
101  Registry::ENTITY_SHIPMENT_ITEM_STORE => '\Bitrix\Sale\ShipmentItemStore',
102  Registry::ENTITY_SHIPMENT_ITEM_STORE_COLLECTION => '\Bitrix\Sale\ShipmentItemStoreCollection',
103  Registry::ENTITY_PROPERTY_VALUE_COLLECTION => '\Bitrix\Sale\PropertyValueCollection',
104  Registry::ENTITY_PROPERTY_VALUE => '\Bitrix\Sale\PropertyValue',
105  Registry::ENTITY_PROPERTY => 'Bitrix\Sale\Property',
106  Registry::ENTITY_TAX => '\Bitrix\Sale\Tax',
107  Registry::ENTITY_BASKET_PROPERTY_ITEM => '\Bitrix\Sale\BasketPropertyItem',
108  Registry::ENTITY_BUNDLE_COLLECTION => '\Bitrix\Sale\BundleCollection',
109  Registry::ENTITY_BASKET => '\Bitrix\Sale\Basket',
110  Registry::ENTITY_BASKET_ITEM => '\Bitrix\Sale\BasketItem',
111  Registry::ENTITY_BASKET_PROPERTIES_COLLECTION => '\Bitrix\Sale\BasketPropertiesCollection',
112  Registry::ENTITY_DISCOUNT => '\Bitrix\Sale\Discount',
113  Registry::ENTITY_DISCOUNT_COUPON => '\Bitrix\Sale\DiscountCouponsManager',
114  Registry::ENTITY_ORDER_DISCOUNT => '\Bitrix\Sale\OrderDiscount',
115  Registry::ENTITY_OPTIONS => 'Bitrix\Main\Config\Option',
116  Registry::ENTITY_PERSON_TYPE => 'Bitrix\Sale\PersonType',
117  Registry::ENTITY_ORDER_STATUS => 'Bitrix\Sale\OrderStatus',
118  Registry::ENTITY_DELIVERY_STATUS => 'Bitrix\Sale\DeliveryStatus',
119  Registry::ENTITY_ENTITY_MARKER => '\Bitrix\Sale\EntityMarker',
120  Registry::ENTITY_ORDER_HISTORY => 'Bitrix\Sale\OrderHistory',
121  Registry::ENTITY_TRADE_BINDING_COLLECTION => 'Bitrix\Sale\TradeBindingCollection',
122  Registry::ENTITY_TRADE_BINDING_ENTITY => 'Bitrix\Sale\TradeBindingEntity',
123  Registry::ENTITY_NOTIFY => 'Bitrix\Sale\Notify',
124  ),
125  );
126 
127  $event = new Main\Event('sale', static::EVENT_ON_INIT_REGISTRY_LIST);
128  $event->send();
129  $resultList = $event->getResults();
130 
131  if (is_array($resultList) && !empty($resultList))
132  {
133  foreach ($resultList as $eventResult)
134  {
135  /** @var Main\EventResult $eventResult */
136  if ($eventResult->getType() === Main\EventResult::SUCCESS)
137  {
138  $params = $eventResult->getParameters();
139  if (!empty($params) && is_array($params))
140  {
141  static::$registryMap = array_merge(static::$registryMap, $params);
142  }
143  }
144  }
145  }
146  }
147 
148  /**
149  * @return string
150  */
151  public function getType()
152  {
153  return $this->type;
154  }
155 
156  /**
157  * @param $type
158  * @return Registry
159  * @throws Main\ArgumentException
160  */
161  public static function getInstance($type)
162  {
163  if (!static::$registryMap)
164  static::initRegistry();
165 
166  if (!isset(static::$registryObjects[$type]))
167  {
168  if (isset(static::$registryMap[$type]))
169  static::$registryObjects[$type] = new static($type);
170  else
171  throw new Main\ArgumentException();
172  }
173 
174  return static::$registryObjects[$type];
175  }
176 
177  /**
178  * @param $code
179  * @param $registryItem
180  * @return void
181  */
182  public static function setRegistry($code, $registryItem)
183  {
184  if (!static::$registryMap)
185  static::initRegistry();
186 
187  static::$registryMap[$code] = $registryItem;
188  }
189 
190  /**
191  * Registry constructor.
192  * @param $type
193  */
194  private function __construct($type)
195  {
196  $this->type = $type;
197  }
198 
199  /**
200  * @param $code
201  * @param $className
202  */
203  public function set($code, $className)
204  {
205  static::$registryMap[$this->type][$code] = $className;
206  }
207 
208  /**
209  * @param $code
210  * @return mixed
211  * @throws Main\SystemException
212  */
213  public function get($code)
214  {
215  if (isset(static::$registryMap[$this->type][$code]))
216  {
217  return static::$registryMap[$this->type][$code];
218  }
219 
220  throw new Main\SystemException(
221  Main\Localization\Loc::getMessage(
222  'SALE_REGISTRY_CODE_VALUE_NO_EXISTS',
223  ['#TYPE#' => $this->getType(), '#CODE#' => $code]
224  )
225  );
226  }
227 
228  /**
229  * @return mixed
230  * @throws Main\ArgumentException
231  */
232  public function getOrderClassName()
233  {
234  return $this->get(static::ENTITY_ORDER);
235  }
236 
237  /**
238  * @return mixed
239  * @throws Main\ArgumentException
240  */
241  public function getPaymentClassName()
242  {
243  return $this->get(static::ENTITY_PAYMENT);
244  }
245 
246  /**
247  * @return mixed
248  * @throws Main\ArgumentException
249  */
250  public function getShipmentClassName()
251  {
252  return $this->get(static::ENTITY_SHIPMENT);
253  }
254 
255  /**
256  * @return mixed
257  * @throws Main\ArgumentException
258  */
260  {
261  return $this->get(static::ENTITY_SHIPMENT_ITEM_COLLECTION);
262  }
263 
264  /**
265  * @return mixed
266  * @throws Main\ArgumentException
267  */
268  public function getShipmentItemClassName()
269  {
270  return $this->get(static::ENTITY_SHIPMENT_ITEM);
271  }
272 
273  /**
274  * @return mixed
275  * @throws Main\ArgumentException
276  */
278  {
279  return $this->get(static::ENTITY_SHIPMENT_ITEM_STORE);
280  }
281 
282  /**
283  * @return mixed
284  * @throws Main\ArgumentException
285  */
287  {
288  return $this->get(static::ENTITY_SHIPMENT_ITEM_STORE_COLLECTION);
289  }
290 
291  /**
292  * @return mixed
293  * @throws Main\ArgumentException
294  */
295  public function getBasketItemClassName()
296  {
297  return $this->get(static::ENTITY_BASKET_ITEM);
298  }
299 
300  /**
301  * @return mixed
302  * @throws Main\ArgumentException
303  */
305  {
306  return $this->get(static::ENTITY_SHIPMENT_COLLECTION);
307  }
308 
309  /**
310  * @return mixed
311  * @throws Main\ArgumentException
312  */
314  {
315  return $this->get(static::ENTITY_PAYMENT_COLLECTION);
316  }
317 
318  /**
319  * @return mixed
320  * @throws Main\ArgumentException
321  */
323  {
324  return $this->get(static::ENTITY_PROPERTY_VALUE_COLLECTION);
325  }
326 
327  /**
328  * @return mixed
329  * @throws Main\ArgumentException
330  */
331  public function getPropertyValueClassName()
332  {
333  return $this->get(static::ENTITY_PROPERTY_VALUE);
334  }
335 
336  /**
337  * @return mixed
338  * @throws Main\ArgumentException
339  */
340  public function getBasketClassName()
341  {
342  return $this->get(static::ENTITY_BASKET);
343  }
344 
345  /**
346  * @return mixed
347  * @throws Main\ArgumentException
348  */
350  {
351  return $this->get(static::ENTITY_BUNDLE_COLLECTION);
352  }
353 
354  /**
355  * @return mixed
356  * @throws Main\ArgumentException
357  */
358  public function getDiscountClassName()
359  {
360  return $this->get(static::ENTITY_DISCOUNT);
361  }
362 
363  /**
364  * @return mixed
365  * @throws Main\ArgumentException
366  */
367  public function getDiscountCouponClassName()
368  {
369  return $this->get(static::ENTITY_DISCOUNT_COUPON);
370  }
371 
372  /**
373  * @return mixed
374  * @throws Main\ArgumentException
375  */
376  public function getOrderDiscountClassName()
377  {
378  return $this->get(static::ENTITY_ORDER_DISCOUNT);
379  }
380 
381  /**
382  * @return mixed
383  * @throws Main\ArgumentException
384  */
385  public function getTaxClassName()
386  {
387  return $this->get(static::ENTITY_TAX);
388  }
389 
390  /**
391  * @return mixed
392  * @throws Main\ArgumentException
393  */
395  {
396  return $this->get(static::ENTITY_BASKET_PROPERTIES_COLLECTION);
397  }
398 
399  /**
400  * @return mixed
401  * @throws Main\ArgumentException
402  */
404  {
405  return $this->get(static::ENTITY_BASKET_PROPERTY_ITEM);
406  }
407 
408  /**
409  * @return mixed
410  * @throws Main\ArgumentException
411  */
412  public function getPersonTypeClassName()
413  {
414  return $this->get(static::ENTITY_PERSON_TYPE);
415  }
416 
417  /**
418  * @return mixed
419  * @throws Main\ArgumentException
420  */
421  public function getOrderStatusClassName()
422  {
423  return $this->get(static::ENTITY_ORDER_STATUS);
424  }
425 
426  /**
427  * @return mixed
428  * @throws Main\ArgumentException
429  */
430  public function getDeliveryStatusClassName()
431  {
432  return $this->get(static::ENTITY_DELIVERY_STATUS);
433  }
434 
435  /**
436  * @return mixed
437  * @throws Main\ArgumentException
438  */
439  public function getEntityMarkerClassName()
440  {
441  return $this->get(static::ENTITY_ENTITY_MARKER);
442  }
443 
444  /**
445  * @return mixed
446  * @throws Main\ArgumentException
447  */
448  public function getOrderHistoryClassName()
449  {
450  return $this->get(static::ENTITY_ORDER_HISTORY);
451  }
452 
453  /**
454  * @return mixed
455  * @throws Main\ArgumentException
456  */
457  public function getNotifyClassName()
458  {
459  return $this->get(static::ENTITY_NOTIFY);
460  }
461  /**
462  * @return mixed
463  * @throws Main\ArgumentException
464  */
465  public function getPropertyClassName()
466  {
467  return $this->get(static::ENTITY_PROPERTY);
468  }
469 }
Bitrix\Sale\Registry\setRegistry
static setRegistry($code, $registryItem)
Definition: sale/lib/registry.php:182
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Returns translation by message code.
Definition: loc.php:29
Bitrix\Sale\Registry\getOrderHistoryClassName
getOrderHistoryClassName()
Definition: sale/lib/registry.php:448
Bitrix\Sale\Registry\getOrderStatusClassName
getOrderStatusClassName()
Definition: sale/lib/registry.php:421
Bitrix\Sale\Registry\getPaymentClassName
getPaymentClassName()
Definition: sale/lib/registry.php:241
Bitrix\Sale\Registry\ENTITY_PAYMENT_COLLECTION
const ENTITY_PAYMENT_COLLECTION
Definition: sale/lib/registry.php:22
Bitrix\Sale\Registry\ENTITY_ORDER_HISTORY
const ENTITY_ORDER_HISTORY
Definition: sale/lib/registry.php:44
Bitrix\Sale\Registry\getPropertyValueClassName
getPropertyValueClassName()
Definition: sale/lib/registry.php:331
Bitrix\Sale\Registry\getPropertyValueCollectionClassName
getPropertyValueCollectionClassName()
Definition: sale/lib/registry.php:322
Bitrix\Sale\Registry\getOrderDiscountClassName
getOrderDiscountClassName()
Definition: sale/lib/registry.php:376
Bitrix\Sale\Registry\getBasketItemClassName
getBasketItemClassName()
Definition: sale/lib/registry.php:295
Bitrix\Sale\Registry
Definition: sale/lib/registry.php:12
Bitrix\Sale\Registry\ENTITY_BASKET_ITEM
const ENTITY_BASKET_ITEM
Definition: sale/lib/registry.php:28
Bitrix\Sale\Registry\REGISTRY_TYPE_ORDER
const REGISTRY_TYPE_ORDER
Definition: sale/lib/registry.php:16
Bitrix\Main
Bitrix\Sale\Registry\getShipmentItemClassName
getShipmentItemClassName()
Definition: sale/lib/registry.php:268
Bitrix\Sale\Registry\getPropertyClassName
getPropertyClassName()
Definition: sale/lib/registry.php:465
Bitrix\Sale\Registry\getShipmentCollectionClassName
getShipmentCollectionClassName()
Definition: sale/lib/registry.php:304
Bitrix\Sale\Registry\ENTITY_PROPERTY
const ENTITY_PROPERTY
Definition: sale/lib/registry.php:45
Bitrix\Sale\Registry\ENTITY_PAYMENT
const ENTITY_PAYMENT
Definition: sale/lib/registry.php:21
Bitrix\Sale\Registry\ENTITY_PROPERTY_VALUE_COLLECTION
const ENTITY_PROPERTY_VALUE_COLLECTION
Definition: sale/lib/registry.php:35
Bitrix\Sale\Registry\getBasketPropertiesCollectionClassName
getBasketPropertiesCollectionClassName()
Definition: sale/lib/registry.php:394
Bitrix\Sale\Registry\getTaxClassName
getTaxClassName()
Definition: sale/lib/registry.php:385
Bitrix\Sale\Registry\getBasketClassName
getBasketClassName()
Definition: sale/lib/registry.php:340
Bitrix\Sale\Registry\EVENT_ON_INIT_REGISTRY_LIST
const EVENT_ON_INIT_REGISTRY_LIST
Definition: sale/lib/registry.php:14
Bitrix\Sale\Registry\ENTITY_BASKET_PROPERTY_ITEM
const ENTITY_BASKET_PROPERTY_ITEM
Definition: sale/lib/registry.php:30
Bitrix\Sale\Registry\ENTITY_DISCOUNT
const ENTITY_DISCOUNT
Definition: sale/lib/registry.php:37
Bitrix\Sale\Registry\ENTITY_ORDER_STATUS
const ENTITY_ORDER_STATUS
Definition: sale/lib/registry.php:41
Bitrix\Sale\Registry\getInstance
static getInstance($type)
Definition: sale/lib/registry.php:161
Bitrix\Sale\Registry\getPaymentCollectionClassName
getPaymentCollectionClassName()
Definition: sale/lib/registry.php:313
Bitrix\Sale\Registry\getShipmentItemStoreCollectionClassName
getShipmentItemStoreCollectionClassName()
Definition: sale/lib/registry.php:286
Bitrix\Sale\Registry\getOrderClassName
getOrderClassName()
Definition: sale/lib/registry.php:232
Bitrix\Sale\Registry\ENTITY_NOTIFY
const ENTITY_NOTIFY
Definition: sale/lib/registry.php:46
Bitrix\Sale\Registry\ENTITY_BUNDLE_COLLECTION
const ENTITY_BUNDLE_COLLECTION
Definition: sale/lib/registry.php:25
Bitrix\Sale\Registry\ENTITY_SHIPMENT
const ENTITY_SHIPMENT
Definition: sale/lib/registry.php:19
Bitrix\Sale\Registry\ENTITY_SHIPMENT_COLLECTION
const ENTITY_SHIPMENT_COLLECTION
Definition: sale/lib/registry.php:23
Bitrix\Sale\Registry\ENTITY_ORDER_DISCOUNT
const ENTITY_ORDER_DISCOUNT
Definition: sale/lib/registry.php:39
Bitrix\Sale\Registry\ENTITY_TRADE_BINDING_COLLECTION
const ENTITY_TRADE_BINDING_COLLECTION
Definition: sale/lib/registry.php:47
Bitrix\Sale\Registry\ENTITY_SHIPMENT_ITEM
const ENTITY_SHIPMENT_ITEM
Definition: sale/lib/registry.php:31
Bitrix\Main\ArgumentException
Exception is thrown when function argument is not valid.
Definition: main/lib/exception.php:33
Bitrix\Main\Event
Definition: main/lib/event.php:4
Bitrix\Sale\Registry\REGISTRY_TYPE_ARCHIVE_ORDER
const REGISTRY_TYPE_ARCHIVE_ORDER
Definition: sale/lib/registry.php:17
Bitrix\Sale\Registry\getEntityMarkerClassName
getEntityMarkerClassName()
Definition: sale/lib/registry.php:439
Bitrix\Sale\Registry\getShipmentItemStoreClassName
getShipmentItemStoreClassName()
Definition: sale/lib/registry.php:277
Bitrix\Main\SystemException
Base class for fatal exceptions.
Definition: main/lib/exception.php:7
Bitrix\Sale\Registry\ENTITY_PROPERTY_VALUE
const ENTITY_PROPERTY_VALUE
Definition: sale/lib/registry.php:24
Bitrix\Sale
Created by PhpStorm.
Bitrix\Main\EventResult\SUCCESS
const SUCCESS
Definition: main/lib/eventresult.php:7
Bitrix\Sale\Registry\ENTITY_BASKET_PROPERTIES_COLLECTION
const ENTITY_BASKET_PROPERTIES_COLLECTION
Definition: sale/lib/registry.php:29
Bitrix\Sale\Registry\getType
getType()
Definition: sale/lib/registry.php:151
Bitrix\Sale\Registry\ENTITY_PERSON_TYPE
const ENTITY_PERSON_TYPE
Definition: sale/lib/registry.php:40
Bitrix\Sale\Registry\ENTITY_SHIPMENT_ITEM_COLLECTION
const ENTITY_SHIPMENT_ITEM_COLLECTION
Definition: sale/lib/registry.php:32
Bitrix\Sale\Registry\ENTITY_BASKET
const ENTITY_BASKET
Definition: sale/lib/registry.php:26
Bitrix\Sale\Registry\getPersonTypeClassName
getPersonTypeClassName()
Definition: sale/lib/registry.php:412
Bitrix\Sale\Registry\ENTITY_SHIPMENT_ITEM_STORE
const ENTITY_SHIPMENT_ITEM_STORE
Definition: sale/lib/registry.php:33
Bitrix\Sale\Registry\getShipmentClassName
getShipmentClassName()
Definition: sale/lib/registry.php:250
Bitrix\Sale\Registry\ENTITY_DELIVERY_STATUS
const ENTITY_DELIVERY_STATUS
Definition: sale/lib/registry.php:42
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Loads language messages for specified file in a lazy way.
Definition: loc.php:67
Bitrix\Sale\Registry\ENTITY_SHIPMENT_ITEM_STORE_COLLECTION
const ENTITY_SHIPMENT_ITEM_STORE_COLLECTION
Definition: sale/lib/registry.php:34
Bitrix\Sale\Registry\ENTITY_DISCOUNT_COUPON
const ENTITY_DISCOUNT_COUPON
Definition: sale/lib/registry.php:38
Bitrix\Sale\Registry\getDiscountCouponClassName
getDiscountCouponClassName()
Definition: sale/lib/registry.php:367
Bitrix\Sale\Registry\ENTITY_TAX
const ENTITY_TAX
Definition: sale/lib/registry.php:27
Bitrix\Sale\Registry\getDiscountClassName
getDiscountClassName()
Definition: sale/lib/registry.php:358
Bitrix\Sale\Registry\ENTITY_ENTITY_MARKER
const ENTITY_ENTITY_MARKER
Definition: sale/lib/registry.php:43
Bitrix\Sale\Registry\getBasketPropertyItemClassName
getBasketPropertyItemClassName()
Definition: sale/lib/registry.php:403
Bitrix\Sale\Registry\ENTITY_TRADE_BINDING_ENTITY
const ENTITY_TRADE_BINDING_ENTITY
Definition: sale/lib/registry.php:48
Bitrix\Sale\Registry\getBundleCollectionClassName
getBundleCollectionClassName()
Definition: sale/lib/registry.php:349
Bitrix\Sale\Registry\ENTITY_ORDER
const ENTITY_ORDER
Definition: sale/lib/registry.php:20
Bitrix\Sale\Registry\getDeliveryStatusClassName
getDeliveryStatusClassName()
Definition: sale/lib/registry.php:430
Bitrix\Sale\Registry\ENTITY_OPTIONS
const ENTITY_OPTIONS
Definition: sale/lib/registry.php:36
Bitrix\Sale\Registry\getShipmentItemCollectionClassName
getShipmentItemCollectionClassName()
Definition: sale/lib/registry.php:259
Bitrix\Sale\Registry\getNotifyClassName
getNotifyClassName()
Definition: sale/lib/registry.php:457