wCMF  3.6
 All Classes Namespaces Files Functions Variables Groups Pages
AssociateController Class Reference
+ Inheritance diagram for AssociateController:

Public Member Functions

 validate ()
 
 hasView ()
 
 executeKernel ()
 
 isDirectAssociation (&$parent, &$child)
 
 findAssociationType (&$parent, &$child)
 
- 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
 

Detailed Description

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.

Id:
class.AssociateController.php 1462 2014-02-04 23:52:27Z iherwig

Input actions:

  • associate Associate one Node to another
  • disassociate Disassociate one Node from another

Output actions:

  • ok In any case
Parameters
[in]oidThe object id of the Node to associate a Node as child to
[in]associateoidsThe object ids of the Nodes to (dis-)associate as parents/children (comma separated list)
[in]associateAsThe role of the associated Nodes as seen from oid: Either 'parent' or 'child'
[out]manyToManyThe created many to many Node if one was created
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 45 of file class.AssociateController.php.

Member Function Documentation

AssociateController::validate ( )
See Also
Controller::validate()

Definition at line 50 of file class.AssociateController.php.

References PersistenceFacade\isValidOID(), and Controller\setErrorMsg().

+ Here is the call graph for this function:

AssociateController::hasView ( )
See Also
Controller::hasView()

Definition at line 62 of file class.AssociateController.php.

AssociateController::executeKernel ( )
AssociateController::isDirectAssociation ( $parent,
$child 
)

Check if two Nodes are directly assiociated (in a direct parent-child relation)

Parameters
parentA template of the parent object (with children attached)
childThe child to check
Returns
True/False

Definition at line 213 of file class.AssociateController.php.

References NodeUtil\getPossibleParents().

Referenced by executeKernel().

+ Here is the call graph for this function:

AssociateController::findAssociationType ( $parent,
$child 
)

Search for an child type of parent that establishes the association between a given parent and child or vice versa.

Parameters
parentA template of the parent object (with children attached)
childThe child to check
Returns
The type

Definition at line 239 of file class.AssociateController.php.

Referenced by executeKernel().


The documentation for this class was generated from the following file: