pluginId = $updateData->id; $this->pluginName = $updateData->name; $this->pluginAuthor = $updateData->author; $this->pluginDescription = $updateData->description; if ($updateData->currentVersion) { $this->id = $updateData->currentVersion->id; $this->version = $updateData->currentVersion->version; $this->zipfile = $updateData->currentVersion->zipfile; $this->url = $updateData->currentVersion->url; } } /** * Check if the Plugin Update Data is newer than the given Plugin Version * * @param float $version * @return bool */ public function isNewerThan($version) { if (!$version) { return true; } return ($this->version > $version); } }