Bitrix Site Manager

CSubscription

The CSubscription class is used with subscriptions.

Methods

MethodDescription
Add The method adds a subscription and sends the message containing the subscription confirmation code to the subscriber unless he has chosen not to receive such messages.
Authorize The method authorizes a visitor before he can start modifying his subscription. Successful authorization is stored in the PHP session.
ConfirmEvent The method adds an event SUBSCRIBE_CONFIRM to send the message containing the subscription confirmation code to the subscriber. The message is created using the template SUBSCRIBE_CONFIRM (subscription confirmation).
Delete The method deletes a subscription.
GetByEmail The method returns a subscription by the unique e-mail address.
GetByID The method returns a subscription by its ID.
GetList The method returns a filtered list of subscriptions.
GetRubricArray The method returns an array of the ID's of subscriptions to which this e-mail address is subscribed.
GetRubricList The method returns the selection of subscriptions to which this e-mail address is subscribed.
GetUserSubscription The method returns an array containing fields of the current user subscription. The subscription is identified by the e-mail stored in the visitor cookie or by the authorized user e-mail.
IsAuthorized The method checks if the current user is authorized to access the subscription preferences.
Update The method updates the subscription properties.