Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
IBlockDataService.php
1<?php
2
4
10
12{
17 {
18 $elementToAdd = null;
19 try
20 {
21 $elementToAdd = IBlockElementToAdd::createFromRequest($request);
22 }
23 catch (ArgumentOutOfRangeException $exception)
24 {
25 $response->addError(new Error($exception->getMessage(), $exception->getParameter()));
26 }
27
28 return $elementToAdd;
29 }
30}
getIBlockElementToAddObject(AddIBlockElementRequest $request, AddIBlockElementResponse $response)
addError(Error $error)
Definition result.php:50