removed 'application' folder to have everything in the root directory

This commit is contained in:
Steffen Schröder
2014-09-29 18:20:09 +02:00
parent 1569fd5488
commit 9642433363
284 changed files with 4 additions and 50 deletions

View File

@ -0,0 +1,55 @@
<?php
namespace ManiaControl\Update;
/**
* Plugin Update Data Model Class
*
* @author ManiaControl Team <mail@maniacontrol.com>
* @copyright 2014 ManiaControl Team
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class PluginUpdateData {
/*
* Public properties
*/
public $pluginId = null;
public $pluginName = null;
public $pluginAuthor = null;
public $pluginDescription = null;
public $id = null;
public $version = null;
public $zipfile = null;
public $url = null;
/**
* Construct new plugin update data instance
*
* @param object $updateData
*/
public function __construct($updateData) {
$this->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);
}
}