wCMF
3.6
|
Public Member Functions | |
getErrorMsg () | |
& | getInstance () |
getClassfileFromConfig ($className) | |
loadClassDefinitionFromConfig ($section, $classEntry) | |
& | createInstanceFromConfig ($section, $classEntry) |
Public Attributes | |
$_errorMsg = '' | |
ObjectFactory loads class definitions and instantiates classes.
wCMF - wemove Content Management Framework Copyright (C) 2005-2014 wemove digital solutions GmbH
Licensed under the terms of any of the following licenses at your choice:
See the license.txt file distributed with this work for additional information.
Definition at line 29 of file class.ObjectFactory.php.
ObjectFactory::getErrorMsg | ( | ) |
Get last error message.
Definition at line 37 of file class.ObjectFactory.php.
References $_errorMsg.
& ObjectFactory::getInstance | ( | ) |
Returns an instance of the class.
Definition at line 45 of file class.ObjectFactory.php.
Referenced by __autoload(), Localization\createTranslationInstance(), Formatter\deserialize(), Controller\execute(), UserController\executeKernel(), EditRightsController\executeKernel(), FormUtil\FormUtil(), AuthUser\getClassDefinitionFiles(), NodeUtil\getDisplayValues(), LockManager\getInstance(), RemotingFacade\getRemoteUser(), UserXML\getRoleByName(), UserXML\getUser(), AdminController\initialize(), PrincipalController\initialize(), Application\initialize(), ActionMapper\processAction(), RemoteCapablePersistenceFacadeImpl\registerObject(), and Formatter\serialize().
ObjectFactory::getClassfileFromConfig | ( | $className | ) |
Get the class file for a given class name. This method looks up the class definition from 'classmapping' section.
className | The name of the class. |
Definition at line 60 of file class.ObjectFactory.php.
References InifileParser\getInstance().
Referenced by loadClassDefinitionFromConfig().
ObjectFactory::loadClassDefinitionFromConfig | ( | $section, | |
$classEntry | |||
) |
Load a class definition from a configuration entry. This method looks up the class name as value of $classEntry in $section of the main configuration file and takes class definition from 'classmapping' section. With this information it includes the desired class definition.
section | The name of the section, where the class is defined. |
classEntry | The name of the key in the section, where the class is defined. |
Definition at line 80 of file class.ObjectFactory.php.
References getClassfileFromConfig(), and InifileParser\getInstance().
Referenced by createInstanceFromConfig().
& ObjectFactory::createInstanceFromConfig | ( | $section, | |
$classEntry | |||
) |
Create an object from a configuration entry. This method looks up the class name as value of $classEntry in $section of the main configuration file and takes - if given - constructor parameters from the 'initparams' section and class definition from 'classmapping' section. With this information it constructs the desired object.
section | The name of the section, where the class is defined. |
classEntry | The name of the key in the section, where the class is defined. |
Definition at line 115 of file class.ObjectFactory.php.
References InifileParser\getInstance(), and loadClassDefinitionFromConfig().
ObjectFactory::$_errorMsg = '' |
Definition at line 31 of file class.ObjectFactory.php.
Referenced by getErrorMsg().