mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 15:14:08 +01:00
* [ADD] Using URL routing * [ADD] Using dependency injection * [MOD] Big app structure changes
132 lines
2.7 KiB
PHP
132 lines
2.7 KiB
PHP
<?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;
|
|
|
|
defined('APP_ROOT') || die();
|
|
|
|
/**
|
|
* Class PublicLinkBaseData
|
|
*
|
|
* @package SP\DataModel
|
|
*/
|
|
class PublicLinkBaseData extends DataModelBase implements DataModelInterface
|
|
{
|
|
/**
|
|
* @var int
|
|
*/
|
|
public $publicLink_id = 0;
|
|
/**
|
|
* @var int
|
|
*/
|
|
public $publicLink_itemId = 0;
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $publicLink_hash = '';
|
|
/**
|
|
* @var PublicLinkData
|
|
*/
|
|
public $publicLink_linkData;
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getPublicLinkId()
|
|
{
|
|
return (int)$this->publicLink_id;
|
|
}
|
|
|
|
/**
|
|
* @param int $publicLink_id
|
|
*/
|
|
public function setPublicLinkId($publicLink_id)
|
|
{
|
|
$this->publicLink_id = (int)$publicLink_id;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getPublicLinkHash()
|
|
{
|
|
return $this->publicLink_hash;
|
|
}
|
|
|
|
/**
|
|
* @param string $publicLink_hash
|
|
*/
|
|
public function setPublicLinkHash($publicLink_hash)
|
|
{
|
|
$this->publicLink_hash = $publicLink_hash;
|
|
}
|
|
|
|
/**
|
|
* @return PublicLinkData
|
|
*/
|
|
public function getPublicLinkLinkData()
|
|
{
|
|
return $this->publicLink_linkData;
|
|
}
|
|
|
|
/**
|
|
* @param PublicLinkData $publicLink_linkData
|
|
*/
|
|
public function setPublicLinkLinkData($publicLink_linkData)
|
|
{
|
|
$this->publicLink_linkData = $publicLink_linkData;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getPublicLinkItemId()
|
|
{
|
|
return (int)$this->publicLink_itemId;
|
|
}
|
|
|
|
/**
|
|
* @param int $publicLink_itemId
|
|
*/
|
|
public function setPublicLinkItemId($publicLink_itemId)
|
|
{
|
|
$this->publicLink_itemId = (int)$publicLink_itemId;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->publicLink_id;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getName()
|
|
{
|
|
return '';
|
|
}
|
|
} |