Skip to content
Last updated

WHMCS\Notification\Rule

Class · extends AbstractModel

A notification rule.

Methods

createTable

public function createTable($drop = false)

Create table schema

Parameters

TypeNameDescription
bool|false$dropDrop pre-existing tables

triggerNotification

public function triggerNotification(Notification $notification)

rebuildCache

public static function rebuildCache()

Rebuild rule cache.

getCache

public static function getCache()

Get cached rules.

Returns array

scopeActive

public function scopeActive(Builder $query)

The filter for the Active scope

Parameters

TypeNameDescription
Builder$query

Returns Builder