ComfortUpdateChecker
extends PluginBase
in package
NB: Deleting this class will break plugin API, since plugins then would have to extend PluginBase in the namespace instead of this class. This is especially a problem for plugins that should work on both 2.73 and 3.x, so please don't delete this class.
Table of Contents
Properties
- $allowedPublicMethods : mixed
- $description : mixed
- $name : mixed
- $settings : mixed
- $storage : mixed
Methods
- beforeAdminMenuRender() : void
- Append new menu item to the admin topbar
- init() : mixed
- registerAssets() : void
- Register css and js file
- getUpdate() : stdClass|null
- Check if an update is available from the comfort update server.
Properties
$allowedPublicMethods
public
mixed
$allowedPublicMethods
= array()
Tags
$description
protected
static mixed
$description
= 'Update Checker for Comfort Update users'
$name
protected
static mixed
$name
= 'ComfortUpdateChecker'
$settings
protected
mixed
$settings
= ['only_security_update' => array('type' => 'checkbox', 'label' => 'Notification only for security updates', 'default' => \false), 'animate_icon' => array('type' => 'checkbox', 'label' => 'Animate update icon', 'default' => \false)]
$storage
protected
mixed
$storage
= 'DbStorage'
Methods
beforeAdminMenuRender()
Append new menu item to the admin topbar
public
beforeAdminMenuRender() : void
init()
public
init() : mixed
registerAssets()
Register css and js file
protected
registerAssets() : void
getUpdate()
Check if an update is available from the comfort update server.
private
getUpdate() : stdClass|null
Reuses UpdateForm::getUpdateNotification() to preserve permission gate, session caching, and stability filtering (meetsMinimumStability).
Return values
stdClass|null —Update notification with aggregated flags (result, security_update, unstable_update), or null