ThemeLog

Model for changes made to the theme

 class Cms\Models\ThemeLog
extends Model

Extends

Class Description
Model

Constants

Constant Description
TYPE_CREATE
string "create"
TYPE_DELETE
string "delete"
TYPE_UPDATE
string "update"

Properties

public $belongsTo : array

Relations

protected $table : string

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 Description
$template
Winter\Storm\Halcyon\Model
$type
mixed
Returns
self | null

public static bindEventsToModel (Winter\Storm\Halcyon\Model $template)

Adds observers to the model for logging purposes.

Parameters
Property Description
$template
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