PluginVersion

Stores information about current plugin versions.

 class System\Models\PluginVersion
extends Model

Extends

Class Description
Model

Properties

public $author : string

Plugin author, sourced from plugin details

public $description : string

Plugin description, sourced from plugin details

public $disabledByConfig : bool

Plugin has been disabled by the user or configuration.

public $disabledBySystem : bool

Plugin has been disabled by a missing dependency.

public $homepage : string

Plugin homepage, sourced from plugin details

public $icon : string

Plugin icon, sourced from plugin details

public $name : string

Plugin name, sourced from plugin details

public $orphaned : bool

If true, plugin exists in the database but not the filesystem.

public $table : mixed

public $timestamps : bool

Disable model timestamps.

protected $appends : array

The accessors to append to the model's array form.

protected $guarded : array

Guarded fields

protected static $versionCache : array

Cache store for version information

Methods

public afterFetch ()

After the model is populated

Returns
mixed

public getIsUpdatableAttribute () : bool

Returns true if the plugin should be updated by the system.

Returns
bool

public getSlugAttribute () : string

Provides the slug attribute.

Returns
string

public static getVersion (string $pluginCode) : string | null

Returns the current version for a plugin

Parameters
Property Description
$pluginCode
string
Returns
string | null

public static makeSlug (string $code) : string

Generates a slug for the plugin.

Parameters
Property Description
$code
string
Returns
string

public scopeApplyEnabled (mixed $query) : QueryBuilder

Only include enabled plugins

Parameters
Property Description
$query
mixed
Returns
QueryBuilder
Copyright © 2024 Winter CMS