.

LogoutUsersBaseCommand Class Reference
[Usermanagement]

Logout command to be overloaded. More...

Inheritance diagram for LogoutUsersBaseCommand:
CommandComposite CommandBase ICommand IAction ISerializable LogoutUsersCommand LogoutUsersCommand

List of all members.

Public Member Functions

  execute ()
  get_name ()
  Returns title of command.

Protected Member Functions

  do_execute ()

Detailed Description

Logout command to be overloaded.

Author:
Gerd Riesselmann

Definition at line 8 of file logout.cmd.php.


Member Function Documentation

LogoutUsersBaseCommand::do_execute (  )  [protected]

Reimplemented from CommandComposite.

Reimplemented in LogoutUsersCommand.

Definition at line 26 of file logout.cmd.php.

00026                                         {
00027                 $ret = new Status();
00028                 
00029                 Session::clear();
00030                 $cmd = CommandsFactory::create_command('permanentlogins', 'end', false);
00031                 $this->append($cmd);
00032                 
00033                 return $ret;
00034         }
LogoutUsersBaseCommand::execute (  ) 

Reimplemented from CommandComposite.

Definition at line 16 of file logout.cmd.php.

00016                                   {
00017                 $ret = parent::execute();
00018                 if ($ret->is_ok()) {
00019                         Load::commands('generics/triggerevent');
00020                         $cmd = new TriggerEventCommand('logout', false);
00021                         $cmd->execute();                        
00022                 }
00023                 return $ret;
00024         }
LogoutUsersBaseCommand::get_name (  ) 

Returns title of command.

Reimplemented from CommandBase.

Definition at line 12 of file logout.cmd.php.

00012                                    {
00013                 return 'logout';
00014         }

The documentation for this class was generated from the following file: