Documentation

CForumSubscribe::Add

int
Add(
 array arFields
);

Creates a new record in the subscription table given the specified parameters. Before calling this method, you should check whether the current user can subscribe by calling CForumSubscribe::CanUserAddSubscribe.

Parameters

ParameterDescription
arFields An array in the format Array(field1=>value1[, field2=>value2 [, ..]]), where:
  • field - field name;
  • value - field value.
For the list of fields, please see Subscription fields. All the required fields must be filled.

Return Values

Returns the ID of the new subscription on success or false otherwise.

See Also

  • Subscription fields
  • © «Bitrix24», 2001-2024
    Up