Documentation

ProductGeneric extends AbstractBaseCrmModel
in package
Uses IsProductImplementation

Base implementation for the products.

This base class is valid for each kind of basic products and is used also as a extendable class for specific product implementation (ex. OpenStackProduct)

Table of Contents

table  = "crm__customer_products_generic"
Table name, as constant, used to avoid table name duplication across the source code base.
$activityLogName  : string
$roles  : array<string|int, mixed>
Array of roles to be assigned to users that have this product enabled
$fillable  : array<int, string>
The attributes that are mass assignable.
$jobsEnabled  : bool
This parameter specify if jobs should be launched or not
$table  : string
Table name
customerProduct()  : MorphOne
getActivitylogOptions()  : LogOptions
Specifies which model properties should be logged in the activy log
saveWithoutJobs()  : mixed
suspend()  : bool
On the generic product implementation, the suspend does nothing
terminate()  : bool
On the generic product implementation, the terminate does nothing
unsuspend()  : bool
On the generic product implementation, the unsuspend does nothing
withoutJobs()  : mixed
Executes the callback disabling the jobs launching
boot()  : void
Boot the model and register events

Constants

table

Table name, as constant, used to avoid table name duplication across the source code base.

public mixed table = "crm__customer_products_generic"
Tags
const

string

Properties

$roles

Array of roles to be assigned to users that have this product enabled

public array<string|int, mixed> $roles = []

$fillable

The attributes that are mass assignable.

protected array<int, string> $fillable = []

$jobsEnabled

This parameter specify if jobs should be launched or not

protected bool $jobsEnabled = true

Methods

getActivitylogOptions()

Specifies which model properties should be logged in the activy log

public getActivitylogOptions() : LogOptions
Return values
LogOptions

saveWithoutJobs()

public saveWithoutJobs() : mixed
Return values
mixed

suspend()

On the generic product implementation, the suspend does nothing

public suspend() : bool
Tags
inheritDoc
Return values
bool

terminate()

On the generic product implementation, the terminate does nothing

public terminate() : bool
Tags
inheritDoc
Return values
bool

unsuspend()

On the generic product implementation, the unsuspend does nothing

public unsuspend() : bool
Tags
inheritDoc
Return values
bool

withoutJobs()

Executes the callback disabling the jobs launching

public withoutJobs(callable $callback) : mixed
Parameters
$callback : callable
Return values
mixed

boot()

Boot the model and register events

protected static boot() : void
Return values
void

Search results