2013-11-01 01:15:58 +01:00
|
|
|
<?php
|
|
|
|
/**
|
2016-07-11 11:58:15 +02:00
|
|
|
* PrivateBin
|
2013-11-01 01:15:58 +01:00
|
|
|
*
|
|
|
|
* a zero-knowledge paste bin
|
|
|
|
*
|
2016-07-11 11:58:15 +02:00
|
|
|
* @link https://github.com/PrivateBin/PrivateBin
|
2013-11-01 01:15:58 +01:00
|
|
|
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
2016-07-19 13:56:52 +02:00
|
|
|
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
2023-07-09 08:44:22 +02:00
|
|
|
* @version 1.5.2
|
2013-11-01 01:15:58 +01:00
|
|
|
*/
|
2016-12-12 18:43:23 +01:00
|
|
|
|
2016-12-12 18:49:08 +01:00
|
|
|
namespace PrivateBin\Persistence;
|
2016-07-21 17:09:48 +02:00
|
|
|
|
2021-06-07 21:53:42 +02:00
|
|
|
use PrivateBin\Data\AbstractData;
|
2016-07-21 17:09:48 +02:00
|
|
|
|
2013-11-01 01:15:58 +01:00
|
|
|
/**
|
2016-08-09 11:54:42 +02:00
|
|
|
* AbstractPersistence
|
2013-11-01 01:15:58 +01:00
|
|
|
*
|
|
|
|
* persists data in PHP files
|
|
|
|
*/
|
2016-08-09 11:54:42 +02:00
|
|
|
abstract class AbstractPersistence
|
2013-11-01 01:15:58 +01:00
|
|
|
{
|
2021-06-07 21:53:42 +02: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 01:15:58 +01:00
|
|
|
}
|