TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Extbase\Object\ObjectManagerInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Extbase\Object\ObjectManagerInterface:
TYPO3\CMS\Core\SingletonInterface TYPO3\CMS\Extbase\Object\ObjectManager

Public Member Functions

 isRegistered ($objectName)
 
 get ($objectName)
 
 getEmptyObject ($className)
 
 getScope ($objectName)
 

Detailed Description

Interface for the TYPO3 Object Manager

Definition at line 20 of file ObjectManagerInterface.php.

Member Function Documentation

◆ get()

TYPO3\CMS\Extbase\Object\ObjectManagerInterface::get (   $objectName)

Returns a fresh or existing instance of the object specified by $objectName.

Parameters
string$objectNameThe name of the object to return an instance of
Returns
object The object instance

Implemented in TYPO3\CMS\Extbase\Object\ObjectManager.

◆ getEmptyObject()

TYPO3\CMS\Extbase\Object\ObjectManagerInterface::getEmptyObject (   $className)

Create an instance of $className without calling its constructor

Parameters
string$className
Returns
object

Implemented in TYPO3\CMS\Extbase\Object\ObjectManager.

◆ getScope()

TYPO3\CMS\Extbase\Object\ObjectManagerInterface::getScope (   $objectName)

Returns the scope of the specified object.

Parameters
string$objectNameThe object name
Returns
int One of the Container::SCOPE_ constants

Implemented in TYPO3\CMS\Extbase\Object\ObjectManager.

◆ isRegistered()

TYPO3\CMS\Extbase\Object\ObjectManagerInterface::isRegistered (   $objectName)

Returns TRUE if an object with the given name is registered

Parameters
string$objectNameName of the object
Returns
bool TRUE if the object has been registered, otherwise FALSE

Implemented in TYPO3\CMS\Extbase\Object\ObjectManager.