Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
deliveryservices.php
1<?php
2
4
8
10{
11 //region Actions
12 public function getActiveListAction()
13 {
14 $whiteList = [
15 'ID',
16 'CODE',
17 'PARENT_ID',
18 'NAME',
19 'ACTIVE',
20 'DESCRIPTION',
21 'SORT',
22 'LOGOTIP',
23 'CURRENCY',
24 'XML_ID',
25 ];
26
27 $result = [];
28 $deliveryServices = Delivery\Services\Manager::getActiveList();
29
30 foreach ($deliveryServices as $deliveryService)
31 {
32 $result[] = array_intersect_key($deliveryService, array_flip($whiteList));
33 }
34
35 return new Page('DELIVERY_SERVICES', $result, count($result));
36 }
37 //endregion
38
39 protected function checkPermissionEntity($name, $arguments=[])
40 {
41 return new Result();
42 }
43}