ActivitySubscription
extends Facade
in package
Class ActivitySubscription.
Tags
Table of Contents
Methods
- addSubscription() : Subscription
- deleteSubscription() : bool
- getSubscription() : Subscription
- isExist() : bool
- updateSubscription() : false|Subscription
- getFacadeAccessor() : mixed
Methods
addSubscription()
public
static addSubscription(int $userId, int $ownerId, bool $active = true, string|null $specialType = null) : Subscription
Parameters
- $userId : int
- $ownerId : int
- $active = true : bool
- $specialType = null : string|null
Return values
SubscriptiondeleteSubscription()
public
static deleteSubscription(int $userId, int $ownerId, string|null $specialType = null) : bool
Parameters
- $userId : int
- $ownerId : int
- $specialType = null : string|null
Return values
boolgetSubscription()
public
static getSubscription(int $userId, int $ownerId, string|null $specialType = null) : Subscription
Parameters
- $userId : int
- $ownerId : int
- $specialType = null : string|null
Return values
SubscriptionisExist()
public
static isExist(int $userId, int $ownerId) : bool
Parameters
- $userId : int
- $ownerId : int
Return values
boolupdateSubscription()
public
static updateSubscription(int $userId, int $ownerId, bool $active = false, string|null $specialType = null) : false|Subscription
Parameters
- $userId : int
- $ownerId : int
- $active = false : bool
- $specialType = null : string|null
Return values
false|SubscriptiongetFacadeAccessor()
protected
static getFacadeAccessor() : mixed