Phundament-Components
[ class tree: Phundament-Components ] [ index: Phundament-Components ] [ 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: 601 $  $Date: 2007-02-24 23:49:30 +0100 (Sa, 24 Feb 2007) $
  10.  * @package Phundament.Components
  11.  * @subpackage Pages
  12.  */
  13.  
  14. /**
  15.  * Performs logout
  16.  *
  17.  * @todo
  18.  * @package Admin.Pages
  19.  * @subpackage Authentication
  20.  */
  21. class UserLogout extends TPage
  22. {
  23.     /**
  24.      * @ignore
  25.      */
  26.     public function onInit($param)
  27.     {
  28.         parent :: onInit($param);
  29.         $this->Application->getModule('auth')->logout();
  30.         $this->Session['Lithron:User:IsLoggedIn'false;
  31.         #$this->Response->redirect($this->Service->constructUrl($this->Service->getDefaultPage()));
  32.         $url$this->Service->constructUrl("packages.UserLogin");
  33.         $this->Response->redirect($url);
  34.     }
  35.  
  36. }
  37. ?>

Documentation generated on Sun, 25 Feb 2007 16:11:52 +0100 by phpDocumentor 1.3.1