ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
SafeStorage.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
League\Flysystem
;
4
5
final
class
SafeStorage
6
{
10
private
$hash
;
11
15
protected
static
$safeStorage
= [];
16
17
public
function
__construct
()
18
{
19
$this->
hash
= spl_object_hash($this);
20
static::$safeStorage[
$this->hash
] = [];
21
}
22
23
public
function
storeSafely
(
$key
, $value)
24
{
25
static::$safeStorage[
$this->hash
][
$key
] = $value;
26
}
27
28
public
function
retrieveSafely
(
$key
)
29
{
30
if
(array_key_exists(
$key
, static::$safeStorage[$this->
hash
])) {
31
return
static::$safeStorage[
$this->hash
][
$key
];
32
}
33
}
34
35
public
function
__destruct
()
36
{
37
unset(static::$safeStorage[$this->
hash
]);
38
}
39
}
League\Flysystem\SafeStorage\storeSafely
storeSafely($key, $value)
Definition:
SafeStorage.php:23
League\Flysystem\SafeStorage
Definition:
SafeStorage.php:5
League\Flysystem
League\Flysystem\SafeStorage\__destruct
__destruct()
Definition:
SafeStorage.php:35
League\Flysystem\SafeStorage\retrieveSafely
retrieveSafely($key)
Definition:
SafeStorage.php:28
League\Flysystem\SafeStorage\__construct
__construct()
Definition:
SafeStorage.php:17
League\Flysystem\SafeStorage\$hash
$hash
Definition:
SafeStorage.php:10
League\Flysystem\SafeStorage\$safeStorage
static $safeStorage
Definition:
SafeStorage.php:15
php
GuzzleHttp\Psr7\hash
hash(StreamInterface $stream, $algo, $rawOutput=false)
Calculate a hash of a Stream.
Definition:
functions.php:406
$key
$key
Definition:
croninfo.php:18
libs
composer
vendor
league
flysystem
src
SafeStorage.php
Generated on Thu Feb 27 2025 19:01:21 for ILIAS by
1.8.13 (using
Doxyfile
)