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
= false
Plugin has been disabled by the user or configuration.
public
$disabledBySystem
:
bool
= false
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
= false
If true, plugin exists in the database but not the filesystem.
public
$table
:
mixed
= "system_plugin_versions"
public
$timestamps
:
bool
= false
Disable model timestamps.
protected
$appends
:
array
= ["slug"]
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
public getIsUpdatableAttribute () : bool
Returns true if the plugin should be updated by the system.
public getSlugAttribute () : string
Provides the slug attribute.
public static getVersion (string $pluginCode) : string | null
Returns the current version for a plugin
Property | Type | Description |
---|---|---|
$pluginCode | string |
string
|
public static makeSlug (string $code) : string
Generates a slug for the plugin.
Property | Type | Description |
---|---|---|
$code | string |
string
|
public scopeApplyEnabled (mixed $query) : QueryBuilder
Only include enabled plugins
Property | Type | Description |
---|---|---|
$query | mixed |
mixed
|