DeleteController Class Reference

Detailed Description

DeleteController is used to delete Node instances.

The controller supports the following actions:

Action default
Delete the given Node instance.

Parameter Description
in / out oid The object id of the Node to delete
Response Actions
ok In all cases
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 38 of file DeleteController.php.

+ Inheritance diagram for DeleteController:

Protected Member Functions

 validate ()
 
 doExecute ()
 
 confirmDelete ($node)
 
 afterDelete ($oid)
 
- Protected Member Functions inherited from Controller
 validate ()
 
 executeSubAction ($action)
 
 getLogger ()
 
 getSession ()
 
 getPersistenceFacade ()
 
 getPermissionManager ()
 
 getActionMapper ()
 
 getLocalization ()
 
 getMessage ()
 
 getConfiguration ()
 
 assignResponseDefaults ()
 
 isLocalizedRequest ()
 
 checkLanguageParameter ()
 

Additional Inherited Members

- Public Member Functions inherited from Controller
 __construct (Session $session, PersistenceFacade $persistenceFacade, PermissionManager $permissionManager, ActionMapper $actionMapper, Localization $localization, Message $message, Configuration $configuration)
 
 initialize (Request $request, Response $response)
 
 execute ($method=null)
 
 getRequest ()
 
 getResponse ()
 

Member Function Documentation

validate ( )
protected
See also
Controller::validate()

Definition at line 43 of file DeleteController.php.

doExecute ( )
protected
See also
Controller::doExecute()

Definition at line 54 of file DeleteController.php.

confirmDelete (   $node)
protected

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
Boolean whether the Node should be deleted (default: true)

Definition at line 112 of file DeleteController.php.

afterDelete (   $oid)
protected

Called after delete.

Note
subclasses will override this to implement special application requirements.
Parameters
$oidThe oid of the Node deleted

Definition at line 121 of file DeleteController.php.