Class Setting

class Setting extends AbstractModel

Constants

MODULE_LICENSING

TODO: Move constants to related licensing add-on classes, when possible, in current WHMCS state module add-ons do not have classes, only php files available

SETTING_OPTIMISE_TABLE

Properties summary

Type Property Description
protected $table
protected $fillable
$timestamps
int $id
string $module
string $setting
string $value

Methods summary

Return Type Method Name Description
static string|null getSettingValueForModule(string $module, string $setting) Retrieve value for addon module's setting
scopeModule($query, $module) -

Details

static string|null getSettingValueForModule (string $module, string $setting)

Retrieve value for addon module's setting

Parameters

string $module
string $setting

Return Value

string|null
  • string if entry is found, null if setting is not defined.

scopeModule ($query, $module)

Parameters

$query
$module