Documentation

add

\Bitrix\Main\Entity\AddResult public static
\Bitrix\Sale\Location\LocationTable::add(
 array $data = array(),
 array $behaviour = array('REBALANCE' => true, 'RESET_LEGACY' => true)
);

Method adds a new location. Static method.

Parameters

ParameterDescriptionVersion
$dataArray with location with keys:
  • NAME - name of new location;
  • EXTERNAL - external services.
$behaviourArray with additional behaviour flags.

Example



© «Bitrix24», 2001-2024