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

Public Member Functions

 validate ()
 
 hasView ()
 
 executeKernel ()
 
 confirmInsert (&$node)
 
 modify (&$node)
 
 afterInsert (&$node)
 
- 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

InsertController is a controller that inserts 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.

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

Input actions:

  • unspecified: Create Nodes of given type

Output actions:

  • ok In any case
Parameters
[in]poidThe oid of the Node to add the new type to (if needed)
[in]newtypeThe type of Node to create
[in]<type:...>A Node instance that defines the values of the new node (optional)
[out]oidThe object id of the last created Node
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 44 of file class.InsertController.php.

Member Function Documentation

InsertController::validate ( )
See Also
Controller::validate()

Definition at line 49 of file class.InsertController.php.

References Controller\appendErrorMsg().

+ Here is the call graph for this function:

InsertController::hasView ( )
See Also
Controller::hasView()

Definition at line 61 of file class.InsertController.php.

InsertController::confirmInsert ( $node)

Confirm insert action on given Node. This method is called before modify()

Note
subclasses will override this to implement special application requirements.
Parameters
nodeA reference to the Node to confirm.
Returns
True/False whether the Node should be inserted [default: true].

Definition at line 177 of file class.InsertController.php.

Referenced by executeKernel().

InsertController::modify ( $node)

Modify a given Node before insert action.

Note
subclasses will override this to implement special application requirements.
Parameters
nodeA reference to the Node to modify.
Returns
True/False whether the Node was modified [default: false].

Definition at line 187 of file class.InsertController.php.

Referenced by executeKernel().

InsertController::afterInsert ( $node)

Called after insert.

Note
subclasses will override this to implement special application requirements.
Parameters
nodeA reference to the Node inserted.
Note
The method is called for all insert candidates even if they are not inserted (use PersistentObject::getState() to confirm).

Definition at line 197 of file class.InsertController.php.

Referenced by executeKernel().


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