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

Public Member Functions

 hasView ()
 
 executeKernel ()
 
 confirmDelete (&$node)
 
 afterDelete ($oid, $poids)
 
- 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

DeleteController is a controller that delete 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.DeleteController.php 1462 2014-02-04 23:52:27Z iherwig

Input actions:

  • unspecified: Delete given Nodes

Output actions:

  • ok In any case
Parameters
[in]deleteoidsA comma-separated string of the oids of the Nodes to delete.
[out]oidsA comma-separated string of the oids of the deleted Nodes.
[out]poidThe last parent oid of the last deleted Node.
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 41 of file class.DeleteController.php.

Member Function Documentation

DeleteController::hasView ( )
See Also
Controller::hasView()

Definition at line 46 of file class.DeleteController.php.

DeleteController::executeKernel ( )

Delete given Nodes.

Returns
Array of given context and action 'ok' in every case.
Attention
This controller always does a recursive delete
See Also
Controller::executeKernel()

Definition at line 56 of file class.DeleteController.php.

References afterDelete(), Controller\appendErrorMsg(), BUILDDEPTH_SINGLE, confirmDelete(), Message\get(), LockManager\getInstance(), PersistenceFacade\getInstance(), Localization\getInstance(), Controller\isLocalizedRequest(), STATE_DELETED, and Log\warn().

+ Here is the call graph for this function:

DeleteController::confirmDelete ( $node)

Confirm delete action on given Node.

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 deleted [default: true].

Definition at line 138 of file class.DeleteController.php.

Referenced by executeKernel().

DeleteController::afterDelete (   $oid,
  $poids 
)

Called after delete.

Note
subclasses will override this to implement special application requirements.
Parameters
oidThe oid of the Node deleted.
poidsAn array of oids of the Nodes from that the Node was deleted.
Note
The method is called for all delete candidates even if they are not deleted.

Definition at line 149 of file class.DeleteController.php.

Referenced by executeKernel().


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