phpDocumentor GalleryCore
[ class tree: GalleryCore ] [ index: GalleryCore ] [ all elements ]

Class: AdminDeleteUserController

Source Location: /modules/core/

Class AdminDeleteUserController

Class Overview

This controller will handle the deletion of an user

User Story: \"Joe clicks on 'Users' in the Site Admin view. He wants to delete a user and clicks on 'delete' next to user x. The next view shows a form. If user x was the owner of at least 1 item, Joe is presented with a choice between two radio buttons, between 'Delete user x and...' a) 'assign a new owner for all his items' and b) 'delete all his items and assign a new owner for all non empty albums' Next there's a textfield 'New owner' in the form. Leaving blank this form means to assign the items to the default new owner, 'admin'. If user x didn't own any items, Joe can just decide between 'cancel' and 'delete'. When clicking 'cancel', Joe is redirected to the AdminUsers view. When hitting 'delete' and in case a) the controller checks for the new owner field and assigns the new owner to all items of user x. Then it deletes user x and redirects to the AdminUser view. b) the controller deletes all GalleryItems which are not AlbumItems, then it checks all albums of user x. It deletes all empty albums and assigns a new owner to all non empty albums.

Located in /modules/core/ [line 65]



[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From GalleryController

Verifies the genuineness of the request
Return the current item, as specified in the itemId request variable.
Take the appropriate action based on the user input provided.
Does this controller allow direct access even in embed-only mode?
Does this controller allow access to non-admins when site is in maintenance mode?
Load a controller
Whether the controller opts-out from the framework's auth token check.
Should session be saved and session cookie sent when this controller is used?

[ Top ]
Method Summary
void   handleRequest()  

[ Top ]
handleRequest  [line 70]

  void handleRequest( $form  )


API Tags:
See:  GalleryController::handleRequest

Redefinition of:
Take the appropriate action based on the user input provided.

[ Top ]

Documentation generated on Fri, 08 Oct 2010 04:29:26 -0700 by phpDocumentor 1.3.0RC6