.

UsersViewEventSink Class Reference
[Usermanagement]

Catch view events to extend rendering. More...

Inheritance diagram for UsersViewEventSink:
IEventSink

List of all members.

Public Member Functions

  on_event ($name, $params, &$result)
  Invoked to handle events.

Detailed Description

Catch view events to extend rendering.

Author:
Gerd Riesselmann

Definition at line 8 of file users.vieweventsink.cls.php.


Member Function Documentation

UsersViewEventSink::on_event ( name,
params,
&$  result  
)

Invoked to handle events.

Implements IEventSink.

Definition at line 12 of file users.vieweventsink.cls.php.

00012                                                            {
00013                 switch($name) {
00014                         case 'view_before_render':
00015                                 $view = $params['view'];
00016                                 $view->assign('current_user', Users::get_current_user());
00017                                 $view->assign('is_logged_in', Users::is_logged_in());
00018                                 break;
00019                         default:
00020                                 break;
00021                 }
00022         }       

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