19 require_once(BASE.
"wcmf/lib/presentation/class.Controller.php");
20 require_once(BASE.
"wcmf/lib/presentation/class.WCMFInifileParser.php");
21 require_once(BASE.
"wcmf/lib/persistence/class.PersistenceFacade.php");
22 require_once(BASE.
"wcmf/lib/util/class.ObjectFactory.php");
51 parent::initialize($request, $response);
55 $this->_userManager = &$objectFactory->createInstanceFromConfig(
'implementation',
'UserManager');
62 if($this->_userManager == null)
84 $this->_userManager->startTransaction();
87 $userType = $this->_userManager->getUserClassName();
88 $this->_response->setValue(
'userType', $userType);
89 $this->_response->setValue(
'userTemplateNode', $persistenceFacade->create($userType,
BUILDDEPTH_REQUIRED));
90 $roleType = $this->_userManager->getRoleClassName();
91 $this->_response->setValue(
'roleType', $roleType);
92 $this->_response->setValue(
'roleTemplateNode', $persistenceFacade->create($roleType,
BUILDDEPTH_REQUIRED));
95 $this->_response->setValue(
'mainconfigfile',
$GLOBALS[
'CONFIG_PATH'].
$GLOBALS[
'MAIN_CONFIG_FILE']);
97 $this->_userManager->commitTransaction();
100 $this->_response->setAction(
'ok');
Controller is the base class of all controllers. If a Controller has a view it is expected to reside ...
initialize(&$request, &$response)
const BUILDDEPTH_REQUIRED
AdminController is used as an entry point to the admintool.