|
wCMF
3.6
|
Inheritance diagram for CopyController:Public Member Functions | |
| initialize (&$request, &$response) | |
| validate () | |
| getWorkPackage ($number) | |
| getDisplayText ($step) | |
| startProcess ($oids) | |
| copyNodes ($oids) | |
| endProcess ($oid) | |
| & | copyNode ($oid) |
| & | getTargetNode ($targetOID) |
| registerCopy (&$origNode, &$copyNode) | |
| getCopyOID ($origOID) | |
| & | getCopy ($origOID) |
| saveToTarget (&$node) | |
| & | loadFromTarget ($oid) |
| & | getTargetMapper (&$sourceMapper) |
| modify (&$node) | |
Public Member Functions inherited from BatchController | |
| initialize (&$request, &$response) | |
| addWorkPackage ($name, $size, $oids, $callback, $args=null) | |
| getWorkPackage ($number) | |
| getNumberOfSteps () | |
| getDisplayText ($step) | |
| getSummaryText () | |
| processPart () | |
Public Member Functions inherited from LongTaskController | |
| initialize (&$request, &$response) | |
| hasView () | |
| executeKernel () | |
| getStepNumber () | |
| getNumberOfSteps () | |
| getDisplayText ($step) | |
| getSummaryText () | |
| initializeTask () | |
| processPart () | |
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 () | |
Public Attributes | |
| $REQUEST = 'CopyController.request' | |
| $OBJECT_MAP = 'CopyController.objectmap' | |
| $ITERATOR_ID = 'CopyController.iteratorid' | |
| $_targetNode = null | |
| $_targetMapper = array() | |
| $_NODES_PER_CALL = 50 | |
Public Attributes inherited from BatchController | |
| $WORK_PACKAGES_VARNAME = 'BatchController.workPackages' | |
| $NUM_STEPS_VARNAME = 'BatchController.numSteps' | |
| $_workPackages = array() | |
Public Attributes inherited from LongTaskController | |
| $STEP_SESSION_VARNAME = 'LongTaskController.curStep' | |
| $ONE_CALL_SESSION_VARNAME = 'LongTaskController.oneCall' | |
| $_curStep = 1 | |
Public Attributes inherited from Controller | |
| $_request = null | |
| $_response = null | |
| $_errorMsg = '' | |
| $_view = null | |
| $_delegate = null | |
CopyController is a controller that copies Nodes.
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 oid of the Node to copy. The Node and all of its children will be copied |
| [in] | targetoid | The oid of the parent to attach the copy to (if it does not accept the Node type an error occurs) (optional, if empty the new Node has no parent) |
| [in] | nodes_per_call | The number of nodes to process in one call, default: 50 |
| [in] | target_initparams | The name of the configuration section that holds the initparams for the target mappers. This allows to copy nodes to a different store, optional, does not work for move action |
| [in] | recursive | True/False wether to copy children too, only applies when copy action, default: true |
| [out] | oid | The object id of the newly created Node. |
Definition at line 48 of file class.CopyController.php.
| CopyController::initialize | ( | & | $request, |
| & | $response | ||
| ) |
Definition at line 64 of file class.CopyController.php.
References SessionData\getInstance().
Here is the call graph for this function:| CopyController::validate | ( | ) |
Definition at line 90 of file class.CopyController.php.
References Controller\appendErrorMsg(), Message\get(), PersistenceFacade\getInstance(), PersistenceFacade\getOIDParameter(), NodeUtil\getPossibleChildren(), getTargetNode(), and PersistenceFacade\isValidOID().
Here is the call graph for this function:| CopyController::getWorkPackage | ( | $number | ) |
Definition at line 148 of file class.CopyController.php.
References Message\get().
Here is the call graph for this function:| CopyController::getDisplayText | ( | $step | ) |
Definition at line 169 of file class.CopyController.php.
| CopyController::startProcess | ( | $oids | ) |
Copy/Move the first node (oids parameter will be ignored)
| oids | The oids to process |
Definition at line 177 of file class.CopyController.php.
References BatchController\addWorkPackage(), BUILDDEPTH_SINGLE, copyNode(), endProcess(), Message\get(), SessionData\getInstance(), getTargetNode(), Log\info(), Log\isInfoEnabled(), modify(), saveToTarget(), and WCMFException\throwEx().
Here is the call graph for this function:| CopyController::copyNodes | ( | $oids | ) |
Copy nodes provided by the persisted iterator (oids parameter will be ignored)
| oids | The oids to process |
Definition at line 258 of file class.CopyController.php.
References BatchController\addWorkPackage(), copyNode(), endProcess(), Message\get(), getCopyOID(), SessionData\getInstance(), and PersistentIterator\load().
Here is the call graph for this function:| CopyController::endProcess | ( | $oid | ) |
Finish the process and set the result
| oid | The object id of the newly created Node |
Definition at line 313 of file class.CopyController.php.
References SessionData\getInstance().
Referenced by copyNodes(), and startProcess().
Here is the call graph for this function:| & CopyController::copyNode | ( | $oid | ) |
Create a copy of the node with the given object id. The returned node is already persisted.
| oid | The oid of the node to copy |
Definition at line 331 of file class.CopyController.php.
References BUILDDEPTH_SINGLE, Log\debug(), getCopy(), PersistenceFacade\getInstance(), Log\info(), Log\isDebugEnabled(), Log\isInfoEnabled(), registerCopy(), saveToTarget(), and WCMFException\throwEx().
Referenced by copyNodes(), and startProcess().
Here is the call graph for this function:| & CopyController::getTargetNode | ( | $targetOID | ) |
Get the target node from the request parameter targetoid
| targetOID | The oid of the target node or null |
Definition at line 404 of file class.CopyController.php.
References $_targetNode, BUILDDEPTH_SINGLE, and loadFromTarget().
Referenced by startProcess(), and validate().
Here is the call graph for this function:| CopyController::registerCopy | ( | & | $origNode, |
| & | $copyNode | ||
| ) |
Register a copied node in the session for later reference
| origNode | A reference to the original node |
| copyNode | A reference to the copied node |
Definition at line 424 of file class.CopyController.php.
References SessionData\getInstance().
Referenced by copyNode().
Here is the call graph for this function:| CopyController::getCopyOID | ( | $origOID | ) |
Get the object id of the copied node for a node id
| oid | The object id of the original node |
Definition at line 438 of file class.CopyController.php.
References BUILDDEPTH_SINGLE, PersistenceFacade\composeOID(), Log\debug(), PersistenceFacade\decomposeOID(), PersistenceFacade\getInstance(), SessionData\getInstance(), and Log\isDebugEnabled().
Referenced by copyNodes(), and getCopy().
Here is the call graph for this function:| & CopyController::getCopy | ( | $origOID | ) |
Get the copied node for a node id
| oid | The object id of the original node |
Definition at line 479 of file class.CopyController.php.
References getCopyOID(), and loadFromTarget().
Referenced by copyNode().
Here is the call graph for this function:| CopyController::saveToTarget | ( | & | $node | ) |
Save a node to the target store
| node | A reference to the node |
Definition at line 495 of file class.CopyController.php.
References PersistenceFacade\getInstance(), and getTargetMapper().
Referenced by copyNode(), and startProcess().
Here is the call graph for this function:| & CopyController::loadFromTarget | ( | $oid | ) |
Load a node from the target store
| oid | The object id of the node |
Definition at line 511 of file class.CopyController.php.
References BUILDDEPTH_SINGLE, PersistenceFacade\getInstance(), PersistenceFacade\getOIDParameter(), and getTargetMapper().
Referenced by getCopy(), and getTargetNode().
Here is the call graph for this function:| & CopyController::getTargetMapper | ( | & | $sourceMapper | ) |
Get the target mapper for a source mapper (maybe saving to another store)
| sourceMapper | A reference to the source mapper |
| targetMapper | A reference to the target mapper |
Definition at line 530 of file class.CopyController.php.
References InifileParser\getInstance(), SessionData\getInstance(), and WCMFException\throwEx().
Referenced by loadFromTarget(), and saveToTarget().
Here is the call graph for this function:| CopyController::modify | ( | & | $node | ) |
Modify the given Node before save action (Called only for the copied root Node, not for its children)
| node | A reference to the Node to modify. |
Definition at line 564 of file class.CopyController.php.
Referenced by startProcess().
| CopyController::$REQUEST = 'CopyController.request' |
Definition at line 51 of file class.CopyController.php.
| CopyController::$OBJECT_MAP = 'CopyController.objectmap' |
Definition at line 52 of file class.CopyController.php.
| CopyController::$ITERATOR_ID = 'CopyController.iteratorid' |
Definition at line 53 of file class.CopyController.php.
| CopyController::$_targetNode = null |
Definition at line 55 of file class.CopyController.php.
Referenced by getTargetNode().
| CopyController::$_targetMapper = array() |
Definition at line 56 of file class.CopyController.php.
| CopyController::$_NODES_PER_CALL = 50 |
Definition at line 59 of file class.CopyController.php.