2013-11-01 08:15:58 +08:00
|
|
|
<?php
|
|
|
|
/**
|
2016-07-11 17:58:15 +08:00
|
|
|
* PrivateBin
|
2013-11-01 08:15:58 +08:00
|
|
|
*
|
|
|
|
* a zero-knowledge paste bin
|
|
|
|
*
|
2016-07-11 17:58:15 +08:00
|
|
|
* @link https://github.com/PrivateBin/PrivateBin
|
2013-11-01 08:15:58 +08:00
|
|
|
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
2016-07-19 19:56:52 +08:00
|
|
|
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
2022-04-05 13:29:07 +08:00
|
|
|
* @version 1.4.0
|
2013-11-01 08:15:58 +08:00
|
|
|
*/
|
2016-12-13 01:43:23 +08:00
|
|
|
|
2016-12-13 01:49:08 +08:00
|
|
|
namespace PrivateBin\Persistence;
|
2016-07-21 23:09:48 +08:00
|
|
|
|
2021-06-08 03:53:42 +08:00
|
|
|
use PrivateBin\Data\AbstractData;
|
2016-07-21 23:09:48 +08:00
|
|
|
|
2013-11-01 08:15:58 +08:00
|
|
|
/**
|
2016-08-09 17:54:42 +08:00
|
|
|
* AbstractPersistence
|
2013-11-01 08:15:58 +08:00
|
|
|
*
|
|
|
|
* persists data in PHP files
|
|
|
|
*/
|
2016-08-09 17:54:42 +08:00
|
|
|
abstract class AbstractPersistence
|
2013-11-01 08:15:58 +08:00
|
|
|
{
|
2021-06-08 03:53:42 +08:00
|
|
|
/**
|
|
|
|
* data storage to use to persist something
|
|
|
|
*
|
|
|
|
* @access private
|
|
|
|
* @static
|
|
|
|
* @var AbstractData
|
|
|
|
*/
|
|
|
|
protected static $_store;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* set the path
|
|
|
|
*
|
|
|
|
* @access public
|
|
|
|
* @static
|
|
|
|
* @param AbstractData $store
|
|
|
|
*/
|
|
|
|
public static function setStore(AbstractData $store)
|
|
|
|
{
|
|
|
|
self::$_store = $store;
|
|
|
|
}
|
2013-11-01 08:15:58 +08:00
|
|
|
}
|