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
Properties
$activityLogName
public
static string
$activityLogName
= "crud"
$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
$table
Table name
protected
string
$table
= self::table
Methods
customerProduct()
public
customerProduct() : MorphOne
Return values
MorphOne —getActivitylogOptions()
Specifies which model properties should be logged in the activy log
public
getActivitylogOptions() : LogOptions
Return values
LogOptions —projects()
public
projects() : HasMany
Return values
HasMany —saveWithoutJobs()
public
saveWithoutJobs() : mixed
Return values
mixed —suspend()
public
suspend() : bool
Tags
Return values
bool —terminate()
public
terminate() : bool
Tags
Return values
bool —unsuspend()
public
unsuspend() : bool
Tags
Return values
bool —users()
public
users() : HasMany
Return values
HasMany —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