TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
RegistryService Class Reference

Public Member Functions

 injectRegistry (\TYPO3\CMS\Core\Registry $registry)
 
 setNamespace ($namespace)
 
 getNamespace ()
 
 has ($name, $namespace=null)
 
 get ($name, $namespace=null)
 
 set ($name, $value, $namespace=null)
 
 remove ($name, $namespace=null)
 

Protected Attributes

 $registry
 
 $namespaceIdentifier = 'TYPO3\\CMS\\Lang'
 

Detailed Description

Registry service

Definition at line 20 of file RegistryService.php.

Member Function Documentation

get (   $name,
  $namespace = null 
)

Get registry entry

Parameters
string$nameRegistry entry name
string$namespaceOptional namespace
Returns
mixed Registry content

Definition at line 82 of file RegistryService.php.

References RegistryService\$namespaceIdentifier.

getNamespace ( )

Get namespace

Returns
string The namespace

Definition at line 56 of file RegistryService.php.

References RegistryService\$namespaceIdentifier.

has (   $name,
  $namespace = null 
)

Check for existing registry entry

Parameters
string$nameRegistry entry name
string$namespaceOptional namespace
Returns
bool TRUE if exists

Definition at line 68 of file RegistryService.php.

References RegistryService\$namespaceIdentifier.

injectRegistry ( \TYPO3\CMS\Core\Registry  $registry)
Parameters
\TYPO3\CMS\Core\Registry$registry

Definition at line 35 of file RegistryService.php.

References RegistryService\$registry.

remove (   $name,
  $namespace = null 
)

Remove registry entry

Parameters
string$nameRegistry entry name
string$namespaceOptional namespace
Returns
void

Definition at line 109 of file RegistryService.php.

References RegistryService\$namespaceIdentifier.

set (   $name,
  $value,
  $namespace = null 
)

Add / override registry entry

Parameters
string$nameRegistry entry name
mixed$valueThe value
string$namespaceOptional namespace
Returns
void

Definition at line 96 of file RegistryService.php.

References RegistryService\$namespaceIdentifier.

setNamespace (   $namespace)

Set namespace

Parameters
string$namespaceThe namespace
Returns
void

Definition at line 46 of file RegistryService.php.

Member Data Documentation

$namespaceIdentifier = 'TYPO3\\CMS\\Lang'
protected
$registry
protected

Definition at line 25 of file RegistryService.php.

Referenced by RegistryService\injectRegistry().