LoginknownUsersBaseCommand Class Reference
[Usermanagement]
Login known user command to be overloaded. More...
Inheritance diagram for
LoginknownUsersBaseCommand:
Public Member Functions |
|
do_can_execute ($user) | |
do_execute () | |
get_name () | |
Returns title of command. |
Detailed Description
Login known user command to be overloaded.
Definition at line 8 of file loginknown.cmd.php.
Member Function Documentation
LoginknownUsersBaseCommand::do_can_execute | ( | $ | user | ) |
Reimplemented from CommandChain.
Definition at line 16 of file loginknown.cmd.php.
LoginknownUsersBaseCommand::do_execute | ( | ) |
Reimplemented from CommandChain.
Definition at line 20 of file loginknown.cmd.php.
00020 { 00021 $ret = new Status(); 00022 $user = $this->get_instance(); 00023 if ($user && $user->is_active()) { 00024 Session::push('current_user_id', $user->id); 00025 Session::pull('current_user'); 00026 AccessControl::set_current_aro($user); 00027 00028 Load::commands('generics/triggerevent'); 00029 $this->append(new TriggerEventCommand('login', $user)); 00030 } 00031 else { 00032 $ret->append(tr('You are not allowed to login', 'users')); 00033 } 00034 return $ret; 00035 }
LoginknownUsersBaseCommand::get_name | ( | ) |
Returns title of command.
Reimplemented from CommandBase.
Definition at line 12 of file loginknown.cmd.php.
The documentation for this class was generated from the following file:
- contributions/usermanagement/behaviour/commands/base/loginknown.cmd.php