* [ADD] Work in progress

* [ADD] Using URL routing
* [ADD] Using dependency injection
* [MOD] Big app structure changes
This commit is contained in:
nuxsmin
2017-10-17 02:00:52 +02:00
parent aa23d79e04
commit ff7e6e3519
621 changed files with 8684 additions and 3460 deletions

View File

@@ -0,0 +1,150 @@
<?php
/**
* sysPass
*
* @author nuxsmin
* @link http://syspass.org
* @copyright 2012-2017, Rubén Domínguez nuxsmin@$syspass.org
*
* This file is part of sysPass.
*
* sysPass is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* sysPass is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with sysPass. If not, see <http://www.gnu.org/licenses/>.
*/
namespace SP\DataModel;
/**
* Class PluginData
*
* @package SP\DataModel
*/
class PluginData extends DataModelBase implements DataModelInterface
{
/**
* @var int
*/
public $plugin_id;
/**
* @var string
*/
public $plugin_name;
/**
* @var string
*/
public $plugin_data;
/**
* @var int
*/
public $plugin_enabled = 0;
/**
* @var int
*/
public $plugin_available = 1;
/**
* @return int
*/
public function getId()
{
return (int)$this->plugin_id;
}
/**
* @return string
*/
public function getName()
{
return $this->plugin_name;
}
/**
* @return int
*/
public function getPluginId()
{
return (int)$this->plugin_id;
}
/**
* @param int $plugin_id
*/
public function setPluginId($plugin_id)
{
$this->plugin_id = (int)$plugin_id;
}
/**
* @return string
*/
public function getPluginName()
{
return $this->plugin_name;
}
/**
* @param string $plugin_name
*/
public function setPluginName($plugin_name)
{
$this->plugin_name = $plugin_name;
}
/**
* @return string
*/
public function getPluginData()
{
return $this->plugin_data;
}
/**
* @param string $plugin_data
*/
public function setPluginData($plugin_data)
{
$this->plugin_data = $plugin_data;
}
/**
* @return int
*/
public function getPluginEnabled()
{
return (int)$this->plugin_enabled;
}
/**
* @param int $plugin_enabled
*/
public function setPluginEnabled($plugin_enabled)
{
$this->plugin_enabled = (int)$plugin_enabled;
}
/**
* @return int
*/
public function getPluginAvailable()
{
return (int)$this->plugin_available;
}
/**
* @param int $plugin_available
*/
public function setPluginAvailable($plugin_available)
{
$this->plugin_available = (int)$plugin_available;
}
}