JavascriptWYMEditorEventSink Class Reference

EventSink to deal with JCSSManager events. More...

Inheritance diagram for JavascriptWYMEditorEventSink:

List of all members.

Public Member Functions

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

Detailed Description

EventSink to deal with JCSSManager events.

Gerd Riesselmann

Definition at line 8 of file javascript.wymeditor.eventsink.php.

Member Function Documentation

JavascriptWYMEditorEventSink::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 javascript.wymeditor.eventsink.php.

00018                                                                        {
00019                 if ($event_name == 'jcssmanager_compress') {
00020                         switch($event_params) {
00021                                 case JCSSManager::TYPE_JS:
00022                                         $result['wymeditor'][] = 'js/wymeditor/jquery.wymeditor.js';
00023                                         break;
00024                                 case JCSSManager::TYPE_CSS:
00025                                         $result['wymeditor'][] = 'js/wymeditor/jquery.wymeditor.css';
00026                                         break;
00027                         }
00028                 }
00029         }

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