ThemeLog
extends Model
in package
Cms\Models\ThemeLog
Tags
Table of Contents
- TYPE_CREATE = 'create'
- TYPE_DELETE = 'delete'
- TYPE_UPDATE = 'update'
- $any_template : mixed
- $belongsTo : array<string|int, mixed>
- $content : string|null
- $created_at : Carbon|null
- $id : int
- $old_content : string|null
- $old_template : string|null
- $template : string|null
- $theme : string|null
- $theme_name : mixed
- $type : string
- $type_name : mixed
- $updated_at : Carbon|null
- $user_id : int|null
- $table : string
- $themeCache : mixed
- add() : self
- Creates a log record
- all() :
- bindEventsToModel() : mixed
- Adds observers to the model for logging purposes.
- get() :
- getAnyTemplateAttribute() : mixed
- getThemeNameAttribute() : mixed
- getTypeNameAttribute() : mixed
- getTypeOptions() : mixed
- newModelQuery() :
- newQuery() :
- query() :
- whereContent() :
- whereCreatedAt() :
- whereId() :
- whereOldContent() :
- whereOldTemplate() :
- whereTemplate() :
- whereTheme() :
- whereType() :
- whereUpdatedAt() :
- whereUserId() :
Constants
TYPE_CREATE
public
mixed
TYPE_CREATE
= 'create'
TYPE_DELETE
public
mixed
TYPE_DELETE
= 'delete'
TYPE_UPDATE
public
mixed
TYPE_UPDATE
= 'update'
Properties
$any_template read-only
public
mixed
$any_template
$belongsTo
public
array<string|int, mixed>
$belongsTo
= ['user' => BackendModelsUser::class]
Relations
$content
public
string|null
$content
$created_at
public
Carbon|null
$created_at
$id
public
int
$id
$old_content
public
string|null
$old_content
$old_template
public
string|null
$old_template
$template
public
string|null
$template
$theme
public
string|null
$theme
$theme_name read-only
public
mixed
$theme_name
$type
public
string
$type
$type_name read-only
public
mixed
$type_name
$updated_at
public
Carbon|null
$updated_at
$user_id
public
int|null
$user_id
$table
protected
string
$table
= 'cms_theme_logs'
The database table used by the model.
$themeCache
protected
mixed
$themeCache
Methods
add()
Creates a log record
public
static add(Model $template[, mixed $type = null ]) : self
Parameters
- $template : Model
- $type : mixed = null
Return values
self —all()
public
static all(mixed $columns) :
Parameters
- $columns : mixed
Return values
—bindEventsToModel()
Adds observers to the model for logging purposes.
public
static bindEventsToModel(Model $template) : mixed
Parameters
- $template : Model
Return values
mixed —get()
public
static get(mixed $columns) :
Parameters
- $columns : mixed
Return values
—getAnyTemplateAttribute()
public
getAnyTemplateAttribute() : mixed
Return values
mixed —getThemeNameAttribute()
public
getThemeNameAttribute() : mixed
Return values
mixed —getTypeNameAttribute()
public
getTypeNameAttribute() : mixed
Return values
mixed —getTypeOptions()
public
getTypeOptions() : mixed
Return values
mixed —newModelQuery()
public
static newModelQuery() :
Return values
—newQuery()
public
static newQuery() :
Return values
—query()
public
static query() :
Return values
—whereContent()
public
static whereContent(mixed $value) :
Parameters
- $value : mixed
Return values
—whereCreatedAt()
public
static whereCreatedAt(mixed $value) :
Parameters
- $value : mixed
Return values
—whereId()
public
static whereId(mixed $value) :
Parameters
- $value : mixed
Return values
—whereOldContent()
public
static whereOldContent(mixed $value) :
Parameters
- $value : mixed
Return values
—whereOldTemplate()
public
static whereOldTemplate(mixed $value) :
Parameters
- $value : mixed
Return values
—whereTemplate()
public
static whereTemplate(mixed $value) :
Parameters
- $value : mixed
Return values
—whereTheme()
public
static whereTheme(mixed $value) :
Parameters
- $value : mixed
Return values
—whereType()
public
static whereType(mixed $value) :
Parameters
- $value : mixed
Return values
—whereUpdatedAt()
public
static whereUpdatedAt(mixed $value) :
Parameters
- $value : mixed
Return values
—whereUserId()
public
static whereUserId(mixed $value) :
Parameters
- $value : mixed