Method | Description | |
---|---|---|
forgetInstance ( string $objectName ) : void | Unsets the instance of the given object | |
get ( string $objectName ) : object | Returns a fresh or existing instance of the object specified by $objectName. | |
getCaseSensitiveObjectName ( string $caseInsensitiveObjectName ) : mixed | Returns the case sensitive object name of an object specified by a case insensitive object name. If no object of that name exists, FALSE is returned. | |
getClassNameByObjectName ( string $objectName ) : string | Returns the implementation class name for the specified object | |
getContext ( ) : |
Returns the currently set context. | |
getObjectNameByClassName ( string $className ) : string | Returns the object name corresponding to a given class name. | |
getPackageKeyByObjectName ( string $objectName ) : string | Returns the key of the package the specified object is contained in. | |
getScope ( string $objectName ) : integer | Returns the scope of the specified object. | |
getSessionInstances ( ) : array | Returns all instances of objects with scope session | |
isRegistered ( string $objectName ) : boolean | Returns TRUE if an object with the given name has already been registered. | |
registerShutdownObject ( object $object, string $shutdownLifecycleMethodName ) : void | Registers the passed shutdown lifecycle method for the given object | |
setInstance ( string $objectName, object $instance ) : void | Sets the instance of the given object | |
shutdown ( ) : void | Shuts the object manager down and calls the shutdown methods of all objects which are configured for it. |
public forgetInstance ( string $objectName ) : void | ||
$objectName | string | The object name |
return | void |
public getCaseSensitiveObjectName ( string $caseInsensitiveObjectName ) : mixed | ||
$caseInsensitiveObjectName | string | The object name in lower-, upper- or mixed case |
return | mixed | Either the mixed case object name or FALSE if no object of that name was found. |
public getClassNameByObjectName ( string $objectName ) : string | ||
$objectName | string | The object name |
return | string | The class name corresponding to the given object name or FALSE if no such object is registered |
public getContext ( ) : |
||
return | the current context |
public getObjectNameByClassName ( string $className ) : string | ||
$className | string | The class name |
return | string | The object name corresponding to the given class name |
public getPackageKeyByObjectName ( string $objectName ) : string | ||
$objectName | string | The object name |
return | string | The package key or FALSE if no such object exists |
public getSessionInstances ( ) : array | ||
return | array |
public isRegistered ( string $objectName ) : boolean | ||
$objectName | string | Name of the object |
return | boolean | TRUE if the object has been registered, otherwise FALSE |