wCMF
3.6
|
Public Member Functions | |
validate () | |
hasView () | |
executeKernel () | |
replaceVariables (&$data) | |
replaceVariablesString ($value) | |
![]() | |
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 | |
![]() | |
$_request = null | |
$_response = null | |
$_errorMsg = '' | |
$_view = null | |
$_delegate = null | |
MultipleActionController is a controller that executes multiple actions by passing them do the appropriate controllers and returning all results as once.
wCMF - wemove Content Management Framework Copyright (C) 2005 wemove digital solutions GmbH
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Input actions:
Output actions:
[in] | data | An associative array with unique/sortable keys and values that describe an action to perform |
[out] | data | An associative array with the same keys and values that describe the resonse of each action |
The data array may contain the following special variables, that will be replaced by the described values:
An example of input data in JSON:
The output data for the preceding request could look like
Definition at line 82 of file class.MultipleActionController.php.
MultipleActionController::validate | ( | ) |
Definition at line 87 of file class.MultipleActionController.php.
References Controller\setErrorMsg().
MultipleActionController::hasView | ( | ) |
Definition at line 104 of file class.MultipleActionController.php.
MultipleActionController::executeKernel | ( | ) |
(Dis-)Associate the Nodes.
Definition at line 113 of file class.MultipleActionController.php.
References $GLOBALS, Log\debug(), Log\error(), ApplicationException\getCodeString(), StringUtil\getDump(), SessionData\getInstance(), ApplicationException\getResponse(), Log\isDebugEnabled(), ActionMapper\processAction(), and replaceVariables().
MultipleActionController::replaceVariables | ( | & | $data | ) |
Check the given data array for special variables to replace Variables have either the form 'variable_name' or 'variable_name:column_separated_parameters'
data | A reference to the associative data array |
Definition at line 197 of file class.MultipleActionController.php.
References Log\debug(), Log\isDebugEnabled(), and replaceVariablesString().
Referenced by executeKernel().
MultipleActionController::replaceVariablesString | ( | $value | ) |
Check the given string for special variables to replace Variables have either the form 'variable_name' or 'variable_name:column_separated_parameters'
value | The string |
Definition at line 231 of file class.MultipleActionController.php.
References PersistenceFacade\getInstance(), and PersistenceFacade\isKnownType().
Referenced by replaceVariables().