TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
ClassInfoCache.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Extbase\Object\Container
;
3
21
class
ClassInfoCache
{
22
26
private
$level1Cache
= array();
27
31
private
$level2Cache
;
32
36
public
function
__construct
() {
37
$this->
initializeLevel2Cache
();
38
}
39
46
public
function
has
($id) {
47
return
isset($this->level1Cache[$id]) || $this->level2Cache->has($id);
48
}
49
56
public
function
get
($id) {
57
if
(!isset($this->level1Cache[$id])) {
58
$this->level1Cache[$id] = $this->level2Cache->get($id);
59
}
60
return
$this->level1Cache[$id];
61
}
62
69
public
function
set
($id, $value) {
70
$this->level1Cache[$id] = $value;
71
$this->level2Cache->set($id, $value);
72
}
73
77
private
function
initializeLevel2Cache
() {
78
$this->level2Cache =
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance
(
'TYPO3\\CMS\\Core\\Cache\\CacheManager'
)->getCache(
'extbase_object'
);
79
}
80
}
TYPO3\CMS\Extbase\Object\Container\ClassInfoCache
Definition:
ClassInfoCache.php:21
TYPO3\CMS\Extbase\Object\Container
Definition:
ClassInfo.php:2
TYPO3\CMS\Extbase\Object\Container\ClassInfoCache\__construct
__construct()
Definition:
ClassInfoCache.php:36
TYPO3\CMS\Extbase\Object\Container\ClassInfoCache\$level1Cache
$level1Cache
Definition:
ClassInfoCache.php:26
TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance
static makeInstance($className)
Definition:
GeneralUtility.php:4424
TYPO3\CMS\Extbase\Object\Container\ClassInfoCache\initializeLevel2Cache
initializeLevel2Cache()
Definition:
ClassInfoCache.php:77
TYPO3\CMS\Extbase\Object\Container\ClassInfoCache\$level2Cache
$level2Cache
Definition:
ClassInfoCache.php:31
TYPO3\CMS\Extbase\Object\Container\ClassInfoCache\has
has($id)
Definition:
ClassInfoCache.php:46
typo3
sysext
extbase
Classes
Object
Container
ClassInfoCache.php
Generated on Wed Aug 7 2019 09:52:24 for TYPO3 CMS by
1.8.13