\Bitrix\Sale\Location\Bitrix\Main\Entity\UpdateResult public static
\Bitrix\Sale\Location\LocationTable::update(
integer $primary,
array $data = array(),
array $behaviour = array('REBALANCE' => true, 'RESET_LEGACY' => true)
);
Updates an existed location
Parameters
ParameterDescriptionVersion
$primarylocation primary key of a element being updated
$datanew data to set. Additional data keys could be passed: NAME string[] : update name string for specified location EXTERNAL string[] : update external data records for specified location
$behaviouran additional behaviour flags: REBALANCE boolean (default: true) : do rebalancing after add
Examples