Documentation

Add

int
CSaleAuxiliary::Add(
 array arFields
);

The method Add adds a new record containing information about temporary access to a resource.

Parameters

ParameterDescription
arFields Associated array containing parameters of the temporary access. In this array, the keys are the parameter names, and the values are their values. The following keys are possible:
  • USER_ID - the user ID;
  • ITEM - the resource to which the access is allowed;
  • ITEM_MD5 - the resource ID (the string that uniquely identifies the resource);
  • DATE_INSERT - the date when the record was added.

Returned values

The method returns the ID of the added record on success, or false otherwise.

© «Bitrix24», 2001-2024
Up