Lithron
[ class tree: Lithron ] [ index: Lithron ] [ all elements ]

Source for file UserLogout.php

Documentation is available at UserLogout.php

  1. <?php
  2.  
  3. /**
  4. * Class file.
  5. *
  6. * @license http://opensource.org/licenses/mozilla1.1.php Mozilla Public License
  7. * @copyright 2005, diemeisterei GmbH. All rights reserved.
  8. * @author $Author: schmunk $
  9. * @version $Revision: 188 $ $Date: 2006-05-11 10:50:16 +0200 (Do, 11 Mai 2006) $
  10. * @package Lithron
  11. */
  12.  
  13. /**
  14. * Performs logout
  15. *
  16. * @todo
  17. * @package Lithron
  18. * @subpackage Pages
  19. */
  20. class UserLogout extends TPage
  21. {
  22. /**
  23. * @ignore
  24. */
  25. public function onInit($param)
  26. {
  27. $this->Application->getModule('auth')->logout();
  28. #$this->Response->redirect($this->Service->constructUrl($this->Service->getDefaultPage()));
  29. $url= $this->Request->constructUrl("page", "packages.UserLogin");
  30. $this->Response->redirect($url);
  31. parent :: onInit($param);
  32. }
  33.  
  34. }
  35. ?>

Documentation generated on Tue, 20 Jun 2006 05:15:25 +0200 by phpDocumentor 1.3.0RC4