CrossCuttingLoaderInterface

Extends

Interface CrossCuttingLoaderInterface

category

System

package

Loaders

subpackage

Interfaces

Methods

clearRegister

clearRegister() : void

In strict mode ($strictModeEnabled=true) this method accepts classes with implemented CrossCuttingObjectInterface only. Otherwise it throws an InvalidArgumentException.

getObject(string $p_classname) : object
Throws
\InvalidArgumentException

Arguments

$p_classname

string

Response

object

In strict mode ($strictModeEnabled=true) this method accepts classes with implemented CrossCuttingObjectInterface only. Otherwise it throws an InvalidArgumentException.

registerObject(string $p_classname, object $object) 
Throws
\InvalidArgumentException

Arguments

$p_classname

string

$object

object

If RegisteredObjectsOnly is enabled, the loader returns only objects, that were registered by the registerObject method before. RegisteredObjectsOnly should be enabled in all unit tests.

setRegisteredObjectsOnly(boolean $bool_status) 

Arguments

$bool_status

boolean

useRegisteredObjectsOnly

useRegisteredObjectsOnly() : boolean

Response

boolean