Documentation

ProductOpenStack extends AbstractBaseCrmModel
in package
Uses IsProductImplementation

Specific implementation for the product OpenStack Cloud product.

It uses the Athomos\Bennu\Modules\Cloud\OpenStack system

Table of Contents

table  = "crm__customer_products_open_stack"
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
$casts  : array<string|int, string>
Attributes that should be casted
$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
projects()  : HasMany
saveWithoutJobs()  : mixed
suspend()  : bool
terminate()  : bool
unsuspend()  : bool
users()  : HasMany
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_open_stack"
Tags
const

string

Properties

$roles

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

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

$casts

Attributes that should be casted

protected array<string|int, string> $casts = ['status' => \Athomos\Bennu\Modules\Crm\Enums\Products\ProductOpenStackStatus::class]

$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

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