|
wCMF
3.6
|
Inheritance diagram for ConfigController:Public Member Functions | |
| initialize (&$request, &$response) | |
| validate () | |
| hasView () | |
| executeKernel () | |
| getKeyFromControlName ($controlname) | |
| makeControlNameFromKey ($key) | |
| renameControlNames ($key, $value) | |
Public Member Functions inherited from Controller | |
| Controller (&$delegate) | |
| initialize (&$request, &$response) | |
| validate () | |
| hasView () | |
| execute () | |
| executeKernel () | |
| getErrorMsg () | |
| setErrorMsg ($msg) | |
| appendErrorMsg ($msg) | |
| & | getRequest () |
| & | getResponse () |
| & | getView () |
| & | getDelegate () |
| getViewTemplate ($controller, $context, $action) | |
| getCacheId () | |
| assignViewDefaults (&$view) | |
| isLocalizedRequest () | |
Additional Inherited Members | |
Public Attributes inherited from Controller | |
| $_request = null | |
| $_response = null | |
| $_errorMsg = '' | |
| $_view = null | |
| $_delegate = null | |
ConfigController is used to edit configuration files. The controller uses the global variable CONFIG_PATH to locate the configuration files. The global variables CONFIG_EXTENSION and MAIN_CONFIG_FILE are used to determine which files are configuration files and which one is the default one.
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.
Input actions:
Output actions:
| [in,out] | oid | The name of the currrent configuration file |
| [in] | poid | The name of the currrent configuration section |
| [in] | type_section_section_<sectionname> | A list of variables defining the section names |
| [in] | type_option_section_<sectionname>_option_<optionname> | A list of variables defining the option names |
| [in] | type_value_section_<sectionname>_option_<optionname> | A list of variables defining the option values |
| [in] | deleteoids | The names of the configuration files to delete (comma separated list) |
| [out] | configfile | A reference to an InifileParser instance representing the current configuration file |
| [out] | ismainconfigfile | True/False wether the current configuration file is the MAIN_CONFIG_FILE |
| [out] | configFilenameNoExtension | The name of the currrent configuration file without CONFIG_EXTENSION |
| [out] | internallink | An internal link that the view can use to position the window at the field to edit |
Definition at line 60 of file class.ConfigController.php.
| ConfigController::initialize | ( | & | $request, |
| & | $response | ||
| ) |
Definition at line 65 of file class.ConfigController.php.
| ConfigController::validate | ( | ) |
Definition at line 78 of file class.ConfigController.php.
References Controller\setErrorMsg().
Here is the call graph for this function:| ConfigController::hasView | ( | ) |
Definition at line 101 of file class.ConfigController.php.
| ConfigController::executeKernel | ( | ) |
Process action and assign data to View.
Definition at line 114 of file class.ConfigController.php.
References Controller\appendErrorMsg(), Message\get(), PersistenceFacade\getInstance(), getKeyFromControlName(), and renameControlNames().
Here is the call graph for this function:| ConfigController::getKeyFromControlName | ( | $controlname | ) |
Extract the parameters for locating a value in a configuration file (type, section, key).
| controlname | A string of the from 'type_typeName_section_sectionName_option_optionName' |
Definition at line 282 of file class.ConfigController.php.
Referenced by executeKernel(), and renameControlNames().
| ConfigController::makeControlNameFromKey | ( | $key | ) |
Extract the parameters for locating a value in a configuration file (type, section, key).
| key | An assoziative array as provided by getKeyFromControlName() describing the entry |
Definition at line 292 of file class.ConfigController.php.
Referenced by renameControlNames().
| ConfigController::renameControlNames | ( | $key, | |
| $value | |||
| ) |
Rename all control names in $this->_request->getData().
| key | An assoziative array as provided by getKeyFromControlName() describing the entry that has changed |
| value | The new value of the entry to construct the control name from |
Definition at line 304 of file class.ConfigController.php.
References getKeyFromControlName(), ArrayUtil\key_array_rename(), and makeControlNameFromKey().
Referenced by executeKernel().
Here is the call graph for this function: