\FAA\Obj\GenericSubscriptionArticle

Summary

Methods
Properties
Constants
__construct()
HasSubscription()
RequiresSubscription()
Subscriptions()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(null|integer  $id = null,null|string  $language = null)

Subscription article constructor.

Parameters

null|integer $id

The subscription article id

null|string $language

The local language or null

HasSubscription()

HasSubscription(\FAA\Obj\Generic\?User  $user): \FAA\Obj\Result

Check if the user has an active subscription

Parameters

\FAA\Obj\Generic\?User $user

Returns

\FAA\Obj\Result

RequiresSubscription()

RequiresSubscription(): boolean

Check if subscription requirement is enabled in general

Returns

boolean

Subscriptions()

Subscriptions(): array

Get the list of subscriptions to this asset

Returns

array