-
FAQ
- Forum Search
- Community
- Online Manual
- Support Helpers of the Month
- Function Database
addSubscription
Description
Add or extend a subscription for a user
Syntax
void addSubscription (int $id_subscribe, int $id_member[, bool $renewel[, int $forceStartTime[, int $forceEndTime]]])
Parameter $id_subscribe
Expected type: Integer
Description: Subscription ID
Parameter $id_member
Expected type: Integer
Description: Member ID
Parameter $renewel
Expected type: Boolean
Description: Whether or not we're renewing an existing subscription. Defaults to 0 (false).
Parameter $forceStartTime
Expected type: Integer
Description: If set, changes the subscription's start time to the given timestamp. Default is 0.
Parameter $forceEndTime
Expected type: Integer
Description: If set, changes the subscription's end time to the given timestamp.
Notes
- Calls loadSubscriptions to load up the $context['subscriptions'] array
Advertisement:- Help | Terms and Rules | Go Up ▲
- Copyright © 2022 Simple Machines. All Rights Reserved.
- Page created in 0.015 seconds with 13 queries.
- Forum Search