TextHtmlEventSink Class Reference

EventSink to catch view rendering events. More...

Inheritance diagram for TextHtmlEventSink:

List of all members.

Public Member Functions

  on_event ($event_name, $event_params, &$result)
  Invoked to handle events.

Detailed Description

EventSink to catch view rendering events.

Gerd Riesselmann

Definition at line 8 of file text.html.eventsink.php.

Member Function Documentation

TextHtmlEventSink::on_event ( event_name,
&$  result  

Invoked to handle events.

Events can be anything, and they are invoked through the router One event is "cron", it has no parameters

string  Event name
mixed  Event parameter(s)

Implements IEventSink.

Definition at line 18 of file text.html.eventsink.php.

00018                                                                        {
00019                 if ($event_name == 'view_after_render') {
00020                         $view = Arr::get_item($event_params, 'view', false);
00021                         if ($view instanceof ContentViewBase) {
00022                                 HtmlText::apply_enabled_editors($view->get_page_data());
00023                         }
00024                 }
00025         }

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