Handler
in package
implements
Plugin
Implement paid subscription check
Tags
Interfaces, Classes, Traits and Enums
- Plugin
- Define a system plugin
Table of Contents
- $dry : bool
- $live : bool
- OnAfterPendingSubscriptionCheck() : void
- OnAfterPermissionCheck() : void
- Check the access to a certain asset subscription
- OnCommandLineInterfaceCall() : void
- OnCronDaily() : void
- RegisterHooks() : array<string|int, mixed>
- Register system hooks
- SetupTemplate() : Result
- Getter and setter for config data
- sendReminder() : void
- Send the remainder email to all customers their trail ends soon
Properties
$dry
private
bool
$dry
= true
$live
private
bool
$live
= false
Methods
OnAfterPendingSubscriptionCheck()
public
OnAfterPendingSubscriptionCheck(HookArgument $param) : void
Parameters
- $param : HookArgument
Return values
void —OnAfterPermissionCheck()
Check the access to a certain asset subscription
public
OnAfterPermissionCheck( $reference) : void
Parameters
Return values
void —OnCommandLineInterfaceCall()
public
OnCommandLineInterfaceCall(HookArgument $param) : void
Parameters
- $param : HookArgument
Return values
void —OnCronDaily()
public
OnCronDaily(HookArgument $reference) : void
Parameters
- $reference : HookArgument
Return values
void —RegisterHooks()
Register system hooks
public
RegisterHooks() : array<string|int, mixed>
Register a set of handler functions to be called in certain positions.
Return values
array<string|int, mixed> —a default system result set
SetupTemplate()
Getter and setter for config data
public
SetupTemplate([null $data = null ]) : Result
When no data is given it will read otherwise write. This method is cached by setup handler
Parameters
- $data : null = null
Return values
Result —sendReminder()
Send the remainder email to all customers their trail ends soon
private
sendReminder(Result $returns) : void
Parameters
- $returns : Result