Documentation

SubscribeManager

SubscribeManager class for handling subscriptions.

Class methods

MethodDescription Available from version
activateSubscriptionActivates product subscription by clearing the field DATE_TO or specifying subscription period.
addSubscribeAdds a new subscription.
authorizeSubscriberAuthorizes an anonymous subscriber.
checkAccessToSubscriptionChecks access to subscription via user ID or access code. Admins always have access.
checkSubscriptionActivityChecks subscription activity by field value DATE_TO.
deactivateSubscriptionDeactivates subscriptions by setting the current date and time in the field DATE_TO.
deleteManySubscriptionsGets list of subscription IDs, deletes multiple subscriptions, checks access permissions.
runSubscriberIdentificationLaunches identification process for anonymous subscriber.
setSessionOfSibscribedProductsWrites into the session a product ID, subscribed to by user. This method checks if user has already subscribed to this product.
unSubscribeUnsubscribes a user using a specific input data.


© «Bitrix24», 2001-2024
Up