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

Class: AdminDeleteUserController

Source Location: /modules/core/AdminDeleteUser.inc

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/AdminDeleteUser.inc [line 65]

GalleryController
   |
   --AdminDeleteUserController

Methods

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

Inherited From GalleryController

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

[ Top ]
Method Summary
void   handleRequest()  

[ Top ]
Methods
handleRequest  [line 70]

  void handleRequest( $form  )

Parameters:
   $form: 

API Tags:
See:  GalleryController::handleRequest


Redefinition of:
GalleryController::handleRequest()
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