MetaFox

ActivitySubscription extends Facade
in package

Class ActivitySubscription.

Tags
mixin

\MetaFox\Activity\Support\ActivitySubscription

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
Subscription

deleteSubscription()

public static deleteSubscription(int $userId, int $ownerId, string|null $specialType = null) : bool
Parameters
$userId : int
$ownerId : int
$specialType = null : string|null
Return values
bool

getSubscription()

public static getSubscription(int $userId, int $ownerId, string|null $specialType = null) : Subscription
Parameters
$userId : int
$ownerId : int
$specialType = null : string|null
Return values
Subscription

isExist()

public static isExist(int $userId, int $ownerId) : bool
Parameters
$userId : int
$ownerId : int
Return values
bool

updateSubscription()

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|Subscription

        
On this page

Search results