Documentation

Connector

Connector class for associating locations to other entities, such as deliveries, groups, taxes.

Class methods

MethodDescription Available from version
addAdds new association between location and entity.
checkConnectionExistsChecks if indicated location is associated with specified entity.
deleteDeletes association between location and entity.
getConnectedGroupsReturns set of location groups associated with specified entity.
getConnectTypeReturns type of association for current entity (string constant L or G).
getLinkFieldReturns name for a table column, containing associations for location tables and entities. For example, returns DELIVERY_ID for a delivery . Limitation: this mechanism doesn't support composite primary keys.
getLocationLinkFieldReturns name for the field containing a location ID or code. Majority of entities use LOCATION_ID by default. For newly created entities, must have LOCATION_CODE (string).
updateUpdates parameters for association between location and entity.


© «Bitrix24», 2001-2024
Up