Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
placement.php
1<?php
3
4
7
10{
11 static public function getProxy()
12 {
14 }
15
16 static public function binds(array $list)
17 {
18 $proxy = static::getProxy();
19 $r = $proxy->binds($list);
20 if($r->isSuccess())
21 {
22 $result = $r->getData()['DATA']['result'];
23 }
24 else
25 {
26 throw new Exception\CommandBatchException(implode(',', $r->getErrorMessages()));
27 }
28
29 return $result;
30 }
31
32 static public function unbinds(array $list)
33 {
34 $proxy = static::getProxy();
35 $r = $proxy->unbinds($list);
36 if($r->isSuccess())
37 {
38 $result = $r->getData()['DATA']['result'];
39 }
40 else
41 {
42 throw new Exception\CommandBatchException(implode(',', $r->getErrorMessages()));
43 }
44
45 return $result;
46 }
47}