‪TYPO3CMS  ‪main
TYPO3\CMS\Extbase\Reflection\ReflectionService Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Reflection\ReflectionService:
TYPO3\CMS\Core\SingletonInterface

Public Member Functions

 __construct (FrontendInterface $cache, string $cacheIdentifier)
 
 __destruct ()
 
 getClassSchema ($classNameOrObject)
 
 __sleep ()
 
 __wakeup ()
 

Protected Member Functions

ClassSchema buildClassSchema ($className)
 

Protected Attributes

FrontendInterface $dataCache
 
bool $dataCacheNeedsUpdate = false
 
array $classSchemata = array( )
 

Private Attributes

string $cacheIdentifier
 

Detailed Description

Reflection service for acquiring reflection based information. Originally based on the TYPO3.Flow reflection service.

Definition at line 27 of file ReflectionService.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Extbase\Reflection\ReflectionService::__construct ( FrontendInterface  $cache,
string  $cacheIdentifier 
)

◆ __destruct()

TYPO3\CMS\Extbase\Reflection\ReflectionService::__destruct ( )

Definition at line 59 of file ReflectionService.php.

Member Function Documentation

◆ __sleep()

TYPO3\CMS\Extbase\Reflection\ReflectionService::__sleep ( )

Definition at line 104 of file ReflectionService.php.

◆ __wakeup()

TYPO3\CMS\Extbase\Reflection\ReflectionService::__wakeup ( )

Definition at line 112 of file ReflectionService.php.

◆ buildClassSchema()

ClassSchema TYPO3\CMS\Extbase\Reflection\ReflectionService::buildClassSchema (   $className)
protected

Builds class schemata from classes annotated as entities or value objects

Parameters
string$className
Exceptions
Exception

Definition at line 89 of file ReflectionService.php.

Referenced by TYPO3\CMS\Extbase\Reflection\ReflectionService\getClassSchema().

◆ getClassSchema()

TYPO3\CMS\Extbase\Reflection\ReflectionService::getClassSchema (   $classNameOrObject)

Returns the class schema for the given class

Parameters
mixed$classNameOrObject‪The class name or an object
Exceptions

Definition at line 72 of file ReflectionService.php.

References TYPO3\CMS\Extbase\Reflection\ReflectionService\buildClassSchema().

Member Data Documentation

◆ $cacheIdentifier

string TYPO3\CMS\Extbase\Reflection\ReflectionService::$cacheIdentifier
private

◆ $classSchemata

array TYPO3\CMS\Extbase\Reflection\ReflectionService::$classSchemata = array( )
protected

Local cache for Class schemata

Definition at line 48 of file ReflectionService.php.

Referenced by TYPO3\CMS\Extbase\Reflection\ReflectionService\__construct().

◆ $dataCache

FrontendInterface TYPO3\CMS\Extbase\Reflection\ReflectionService::$dataCache
protected

Definition at line 33 of file ReflectionService.php.

◆ $dataCacheNeedsUpdate

bool TYPO3\CMS\Extbase\Reflection\ReflectionService::$dataCacheNeedsUpdate = false
protected

Indicates whether the Reflection cache needs to be updated.

This flag needs to be set as soon as new Reflection information was created.

Definition at line 42 of file ReflectionService.php.