ThemeLog
Model for changes made to the theme
class Cms\Models\ThemeLog
extends Model
Extends
| Class | Description |
|---|---|
Model
|
Constants
| Constant | Type | Value | Description |
|---|---|---|---|
TYPE_CREATE
|
string |
"create"
|
string
"create"
|
TYPE_DELETE
|
string |
"delete"
|
string
"delete"
|
TYPE_UPDATE
|
string |
"update"
|
string
"update"
|
Properties
public
$belongsTo
:
array
= {"user":{}}
Relations
protected
$table
:
string
= "cms_theme_logs"
The database table used by the model.
protected $themeCache : mixed
Methods
public
static
add (Winter\Storm\Halcyon\Model $template, $type = null)
: self | null
Creates a log record
Parameters
| Property | Type | Description |
|---|---|---|
| $template | Winter\Storm\Halcyon\Model |
Winter\Storm\Halcyon\Model
|
| $type | mixed |
mixed
|
Returns
self | null
public static bindEventsToModel (Winter\Storm\Halcyon\Model $template)
Adds observers to the model for logging purposes.
Parameters
| Property | Type | Description |
|---|---|---|
| $template | Winter\Storm\Halcyon\Model |
Winter\Storm\Halcyon\Model
|
Returns
mixed
public getAnyTemplateAttribute ()
Returns
mixed
public getThemeNameAttribute ()
Returns
mixed
public getTypeNameAttribute ()
Returns
mixed
public getTypeOptions ()
Returns
mixed
Copyright © 2024 Winter CMS