ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilForumNotificationCache.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3
9
class
ilForumNotificationCache
10
{
12
private
$storage
= array();
13
19
public
function
fetch
(
string
$id
)
20
{
21
if
(
false
=== $this->
exists
($id)) {
22
throw
new
InvalidArgumentException
(
'Storage id doesn\'t exist'
);
23
}
24
25
return
$this->storage[
$id
];
26
}
27
32
public
function
store
(
string
$key
,
$data
)
33
{
34
$this->storage[
$key
] =
$data
;
35
}
36
43
public
function
exists
(
string
$id
)
44
{
45
return
array_key_exists($id, $this->storage);
46
}
47
53
public
function
createKeyByValues
(array
$values
)
54
{
55
$cacheKey = md5(implode(
'|'
, $values));
56
57
return
$cacheKey;
58
}
59
}
$id
if(!array_key_exists('StateId', $_REQUEST)) $id
Definition:
expirywarning.php:14
ilForumNotificationCache\createKeyByValues
createKeyByValues(array $values)
Definition:
class.ilForumNotificationCache.php:53
ilForumNotificationCache\exists
exists(string $id)
Checks if the current id exists.
Definition:
class.ilForumNotificationCache.php:43
ilForumNotificationCache\store
store(string $key, $data)
Definition:
class.ilForumNotificationCache.php:32
$values
$values
Definition:
testOperations.php:7
ilForumNotificationCache
Class ilForumNotificationCache.
Definition:
class.ilForumNotificationCache.php:9
ilForumNotificationCache\fetch
fetch(string $id)
Definition:
class.ilForumNotificationCache.php:19
ilForumNotificationCache\$storage
$storage
Definition:
class.ilForumNotificationCache.php:12
php
InvalidArgumentException
$key
$key
Definition:
croninfo.php:18
$data
$data
Definition:
bench.php:6
Modules
Forum
classes
class.ilForumNotificationCache.php
Generated on Thu Jan 16 2025 19:02:03 for ILIAS by
1.8.13 (using
Doxyfile
)