From 43de9af71f7f4ca5731b94a06d688ae8412ba427 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Fri, 6 Jul 2018 11:14:41 +0200 Subject: 2018/Feb/28 -i állapot hozzáadva, mint a módosítások kiindulási állapota --- .../FacebookMemoryPersistentDataHandler.php | 53 +++++++++++++++ .../FacebookSessionPersistentDataHandler.php | 76 ++++++++++++++++++++++ .../PersistentData/PersistentDataFactory.php | 65 ++++++++++++++++++ .../PersistentData/PersistentDataInterface.php | 49 ++++++++++++++ 4 files changed, 243 insertions(+) create mode 100644 mayor-orig/www/include/share/facebook/PersistentData/FacebookMemoryPersistentDataHandler.php create mode 100644 mayor-orig/www/include/share/facebook/PersistentData/FacebookSessionPersistentDataHandler.php create mode 100644 mayor-orig/www/include/share/facebook/PersistentData/PersistentDataFactory.php create mode 100644 mayor-orig/www/include/share/facebook/PersistentData/PersistentDataInterface.php (limited to 'mayor-orig/www/include/share/facebook/PersistentData') diff --git a/mayor-orig/www/include/share/facebook/PersistentData/FacebookMemoryPersistentDataHandler.php b/mayor-orig/www/include/share/facebook/PersistentData/FacebookMemoryPersistentDataHandler.php new file mode 100644 index 00000000..4b7c87ea --- /dev/null +++ b/mayor-orig/www/include/share/facebook/PersistentData/FacebookMemoryPersistentDataHandler.php @@ -0,0 +1,53 @@ +sessionData[$key]) ? $this->sessionData[$key] : null; + } + + /** + * @inheritdoc + */ + public function set($key, $value) + { + $this->sessionData[$key] = $value; + } +} diff --git a/mayor-orig/www/include/share/facebook/PersistentData/FacebookSessionPersistentDataHandler.php b/mayor-orig/www/include/share/facebook/PersistentData/FacebookSessionPersistentDataHandler.php new file mode 100644 index 00000000..9123e3dc --- /dev/null +++ b/mayor-orig/www/include/share/facebook/PersistentData/FacebookSessionPersistentDataHandler.php @@ -0,0 +1,76 @@ +sessionPrefix . $key])) { + return $_SESSION[$this->sessionPrefix . $key]; + } + + return null; + } + + /** + * @inheritdoc + */ + public function set($key, $value) + { + $_SESSION[$this->sessionPrefix . $key] = $value; + } +} diff --git a/mayor-orig/www/include/share/facebook/PersistentData/PersistentDataFactory.php b/mayor-orig/www/include/share/facebook/PersistentData/PersistentDataFactory.php new file mode 100644 index 00000000..18fb8fd5 --- /dev/null +++ b/mayor-orig/www/include/share/facebook/PersistentData/PersistentDataFactory.php @@ -0,0 +1,65 @@ +