Property | Type | Description | |
---|---|---|---|
$download_url | |||
$homepage | |||
$id | |||
$slug | |||
$upgrade_notice | |||
$version |
Method | Description | |
---|---|---|
fromJson ( string $json, boolean $triggerErrors = false ) : PluginUpdate | null | Create a new instance of PluginUpdate from its JSON-encoded representation. | |
fromObject ( StdClass | PluginInfo | PluginUpdate $object ) : PluginUpdate | Create a new instance of PluginUpdate by copying the necessary fields from another object. | |
fromPluginInfo ( PluginInfo $info ) : PluginUpdate | Create a new instance of PluginUpdate based on an instance of PluginInfo. | |
toStdClass ( ) : StdClass | Create an instance of StdClass that can later be converted back to a PluginUpdate. Useful for serialization and caching, as it avoids the "incomplete object" problem if the cached value is loaded before this class. | |
toWpFormat ( ) : object | Transform the update into the format used by WordPress native plugin API. |
public static fromObject ( StdClass | PluginInfo | PluginUpdate $object ) : PluginUpdate | ||
$object | StdClass | PluginInfo | PluginUpdate | The source object. |
return | PluginUpdate | The new copy. |
public static fromPluginInfo ( PluginInfo $info ) : PluginUpdate | ||
$info | PluginInfo | |
return | PluginUpdate |
public toStdClass ( ) : StdClass | ||
return | StdClass |
public toWpFormat ( ) : object | ||
return | object |