| Current Path : /home/digilove/public_html/plugins/content/aimyindexnow/helpers/ |
| Current File : /home/digilove/public_html/plugins/content/aimyindexnow/helpers/StorageHelper.php |
<?php
/* Copyright (c) 2022-2024 Aimy Extensions, Netzum Sorglos Software GmbH
*
* https://www.aimy-extensions.com/
*
* License: GNU GPLv2, see LICENSE.txt within distribution and/or
* http://www.aimy-extensions.com/software-license.html
*/
namespace Aimy\IndexNow\Helpers; defined( '_JEXEC' ) or die(); use Joomla\CMS\Factory; abstract class StorageHelper { const NAMESPACE = 'AimyIndexNow'; static public function get( $k ) { return Factory::getSession()->get( self::encodeKey( $k ), false, self::NAMESPACE ); } static public function set( $k, $v ) { return Factory::getSession()->set( self::encodeKey( $k ), $v, self::NAMESPACE ); } static private function encodeKey( $k ) { return base64_encode( $k ); } }