VolumeType
extends AbstractBaseCloudModel
in package
Uses
HasFactory, Notifiable, PowerJoins, SoftDeletes
Table of Contents
- table = "cloud_os_blockstorage__volume_types"
- Table name, as constant, used to avoid table name duplication across the source code base.
- $activityLogName : string
- $error_at : Carbon
- $id : int
- $openStackActivityLogName : string
- $fillable : array<int, string>
- The attributes that are mass assignable.
- $table : string
- Table name
- belongsToDefaultDomain() : bool
- This function will return true if the model is under the default domain, false otherwise
- getActivitylogOptions() : LogOptions
- Specifies which model properties should be logged in the activy log
- isOwner() : bool
- isReadyToInsert() : bool
- Check if the model is consistent to be updated.
- isReadyToUpdate() : bool
- Check if the model is consistent to be inserted and created
- retrieveDomain() : Domain
- This function will traverse all model relation up to the Domain
- _isReadyToInsert() : bool
- Check if the model is consistent to be updated.
- _isReadyToUpdate() : bool
- Check if the model is consistent to be inserted and created
Constants
table
Table name, as constant, used to avoid table name duplication across the source code base.
public
mixed
table
= "cloud_os_blockstorage__volume_types"
Tags
Properties
$activityLogName
public
static string
$activityLogName
= "crud"
$error_at
public
Carbon
$error_at
$id
public
int
$id
$openStackActivityLogName
public
static string
$openStackActivityLogName
= 'openstack'
$fillable
The attributes that are mass assignable.
protected
array<int, string>
$fillable
= ['name', 'external_id']
$table
Table name
protected
string
$table
= self::table
Methods
belongsToDefaultDomain()
This function will return true if the model is under the default domain, false otherwise
public
belongsToDefaultDomain() : bool
Tags
Return values
bool —getActivitylogOptions()
Specifies which model properties should be logged in the activy log
public
getActivitylogOptions() : LogOptions
Return values
LogOptions —isOwner()
public
isOwner(AuthUser $authUser) : bool
Parameters
- $authUser : AuthUser
Tags
Return values
bool —isReadyToInsert()
Check if the model is consistent to be updated.
public
isReadyToInsert() : bool
Tags
Return values
bool —true if the model is ready to be updated. The return type is just for convenience cause the method throws an exception
isReadyToUpdate()
Check if the model is consistent to be inserted and created
public
isReadyToUpdate() : bool
Tags
Return values
bool —true if the model is ready to be updated. The return type is just for convenience cause the method throws an exception
retrieveDomain()
This function will traverse all model relation up to the Domain
public
retrieveDomain() : Domain
Tags
Return values
Domain —_isReadyToInsert()
Check if the model is consistent to be updated.
protected
_isReadyToInsert() : bool
Tags
Return values
bool —true if the model is ready to be updated. The return type is just for convenience cause the method throws an exception
_isReadyToUpdate()
Check if the model is consistent to be inserted and created
protected
_isReadyToUpdate() : bool
Tags
Return values
bool —true if the model is ready to be updated. The return type is just for convenience cause the method throws an exception