wCMF
3.6
|
Public Member Functions | |
validate () | |
hasView () | |
executeKernel () | |
isDirectAssociation (&$parent, &$child) | |
findAssociationType (&$parent, &$child) | |
![]() | |
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 | |
AssociateController is a controller that (dis-)associates Nodes (by setting the parent/child relations).
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] | oid | The object id of the Node to associate a Node as child to |
[in] | associateoids | The object ids of the Nodes to (dis-)associate as parents/children (comma separated list) |
[in] | associateAs | The role of the associated Nodes as seen from oid: Either 'parent' or 'child' |
[out] | manyToMany | The created many to many Node if one was created |
Definition at line 45 of file class.AssociateController.php.
AssociateController::validate | ( | ) |
Definition at line 50 of file class.AssociateController.php.
References PersistenceFacade\isValidOID(), and Controller\setErrorMsg().
AssociateController::hasView | ( | ) |
Definition at line 62 of file class.AssociateController.php.
AssociateController::executeKernel | ( | ) |
(Dis-)Associate the Nodes.
Definition at line 71 of file class.AssociateController.php.
References Node\addChild(), Controller\appendErrorMsg(), BUILDDEPTH_SINGLE, findAssociationType(), Message\get(), LockManager\getInstance(), PersistenceFacade\getInstance(), PersistenceFacade\getOIDParameter(), isDirectAssociation(), PersistenceFacade\isValidOID(), and Controller\setErrorMsg().
AssociateController::isDirectAssociation | ( | & | $parent, |
& | $child | ||
) |
Check if two Nodes are directly assiociated (in a direct parent-child relation)
parent | A template of the parent object (with children attached) |
child | The child to check |
Definition at line 213 of file class.AssociateController.php.
References NodeUtil\getPossibleParents().
Referenced by executeKernel().
AssociateController::findAssociationType | ( | & | $parent, |
& | $child | ||
) |
Search for an child type of parent that establishes the association between a given parent and child or vice versa.
parent | A template of the parent object (with children attached) |
child | The child to check |
Definition at line 239 of file class.AssociateController.php.
Referenced by executeKernel().