3namespace Bitrix\Lists\Api\Data\ServiceFactory;
5use Bitrix\Lists\Api\Data\Data;
6use Bitrix\Lists\Api\Request\ServiceFactory\AddElementRequest;
7use Bitrix\Main\ArgumentOutOfRangeException;
11 private int $iBlockId;
12 private int $sectionId;
13 private array $values;
14 private int $createdBy;
16 private function __construct(
23 $this->iBlockId = $iBlockId;
24 $this->sectionId = $sectionId;
25 $this->values = $values;
26 $this->createdBy = $createdBy;
37 if ($iBlockId ===
null || $iBlockId === 0)
43 if ($sectionId ===
null)
49 if ($createdBy ===
null || $createdBy === 0)
54 $values = self::validateValues(
$request->values, $iBlockId, $sectionId);
56 return new self($iBlockId, $sectionId, $values, $createdBy);
69 $values[
'IBLOCK_SECTION_ID'] = $sectionId;
87 return $this->sectionId;
103 return $this->createdBy;
if(!Loader::includeModule('catalog')) if(!AccessController::getCurrent() ->check(ActionDictionary::ACTION_PRICE_EDIT)) if(!check_bitrix_sessid()) $request
static validateId(int $id)
static createFromRequest($request)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)